订单相关代码提交
This commit is contained in:
parent
f254838154
commit
c0517b4c2e
|
|
@ -36,6 +36,8 @@ export function stockInoutFlowingPageApi(data) {
|
|||
params:data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//出入库统计
|
||||
export function stockInoutStatisticsPageApi(data) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@
|
|||
<!-- 下载模板区域 -->
|
||||
<div style="margin-bottom: 30px; padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 8px; text-align: center;">
|
||||
<i class="el-icon-download" style="font-size: 48px; color: #fff; margin-bottom: 10px;"></i>
|
||||
<div style="color: #fff; font-size: 16px; margin-bottom: 15px;">下载补贴充值导入模板</div>
|
||||
<div style="color: #fff; font-size: 16px; margin-bottom: 15px;">下载采购订单导入模板</div>
|
||||
<el-button type="primary" size="mini" @click="downloadTemplate" style="background: #fff; color: #667eea; border: none;">
|
||||
<i class="el-icon-download"></i> 下载模板
|
||||
</el-button>
|
||||
|
|
@ -267,8 +267,8 @@
|
|||
|
||||
|
||||
<!-- 补贴充值预览对话框 -->
|
||||
<el-dialog title="补贴充值预览" :visible.sync="openImportPreview" width="1200px" append-to-body>
|
||||
<div style="margin-bottom: 10px; text-align: center;" v-if="importPreviewData.errMsg !=null && importPreviewData.errMsg !=''">
|
||||
<el-dialog title="订单导入预览" :visible.sync="openImportPreview" width="1200px" append-to-body>
|
||||
<div style="margin-bottom: 10px; text-align: center;color: red" v-if="importPreviewData.errMsg !=null && importPreviewData.errMsg !=''">
|
||||
表头错误日志:{{ importPreviewData.errMsg || '无' }}
|
||||
</div>
|
||||
<div style="margin-bottom: 10px; text-align: center;">
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="exportQuery">导出</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-row :gutter="10" class="mb8">
|
||||
|
|
@ -180,7 +181,11 @@
|
|||
<script>
|
||||
import { systemAreaTreeApi } from "@/api/base/stall";
|
||||
import { drpWareHousePageApi } from "@/api/foodManage/stockManage";
|
||||
import { stockInoutFlowingPageApi,stockInoutStatisticsPageApi } from "@/api/foodManage/stockReport";
|
||||
import {
|
||||
stockInoutFlowingPageApi,
|
||||
stockInoutFlowingPageApiExport,
|
||||
stockInoutStatisticsPageApi
|
||||
} from "@/api/foodManage/stockReport";
|
||||
|
||||
export default {
|
||||
name: "",
|
||||
|
|
@ -306,6 +311,9 @@ export default {
|
|||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
exportQuery() {
|
||||
this.getListExport();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.dateRange = this.defaultDateRange()
|
||||
|
|
@ -337,7 +345,23 @@ export default {
|
|||
this.loading = false;
|
||||
});
|
||||
},
|
||||
//-----出入库统计------
|
||||
getListExport() {
|
||||
// this.loading = true;
|
||||
let param = {
|
||||
"materialName": this.queryParams.materialName,
|
||||
}
|
||||
if(this.dateRange&&this.dateRange.length>0){
|
||||
param.startDate=this.formatDateTime(this.dateRange[0])
|
||||
param.endDate=this.formatDateTime(this.dateRange[1])
|
||||
}else{
|
||||
param.startDate=undefined;
|
||||
param.endDate=undefined;
|
||||
}
|
||||
this.download('/smart-canteen/ims_report_inventory_base/out_into/flowing/page/exprot', {
|
||||
...this.data
|
||||
}, `出入库流水_${new Date().getTime()}.xlsx`)
|
||||
},
|
||||
//-----出入库统计------
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery2() {
|
||||
this.queryParams2.pageNum = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue