|
|
|
@ -110,6 +110,8 @@
|
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset">重置</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-document" @click="selectExport">选中导出Excel</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-document" @click="searchExport">结果导出Excel</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-printer" @click="optinPrint">选中打印</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-printer" @click="selectPrint">查询结果打印</el-button>
|
|
|
|
|
|
|
|
|
@ -137,7 +139,7 @@
|
|
|
|
|
<el-table-column label="出入库时间" prop="auditTime" width="170" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="生产企业" prop="manufacturer" width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="注册/备案号" prop="certCode" width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
|
<el-table-column label="打印状态" width="100" prop="inoutPrintStatus" >
|
|
|
|
|
<el-table-column label="打印状态" width="100" prop="inoutPrintStatus">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag :type="statusFilterType(scope.row.inoutPrintStatus)">{{
|
|
|
|
|
printMap[scope.row.inoutPrintStatus]
|
|
|
|
@ -159,9 +161,16 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {getResultDetailList, getResultOrderList, verifyTemplateFile, printOrder} from '@/api/inout/orderDetailResult'
|
|
|
|
|
import {
|
|
|
|
|
getResultDetailList,
|
|
|
|
|
getResultOrderList,
|
|
|
|
|
verifyTemplateFile,
|
|
|
|
|
printOrder,
|
|
|
|
|
excelInoutImport, postExcelInoutImport
|
|
|
|
|
} from '@/api/inout/orderDetailResult'
|
|
|
|
|
import {findByInvUser, getLocalJoinByUser} from "@/api/basic/busType";
|
|
|
|
|
import {getCorrespondence} from "@/api/basic/basicUnitMaintain";
|
|
|
|
|
import {excelImport} from "@/api/inout/statData";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "supInoutSearchOrder",
|
|
|
|
@ -386,8 +395,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
selectPrint() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$confirm("是否确定打印所有查询结果数据", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
@ -446,9 +453,74 @@ export default {
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
selectExport() {
|
|
|
|
|
this.$confirm("是否确定导出选中出入库明细, 是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
if (this.orderSelection == null || this.orderSelection.length <= 0) {
|
|
|
|
|
return this.$message.error("请选择需要导出的明细!");
|
|
|
|
|
}
|
|
|
|
|
let printParams = {
|
|
|
|
|
list: this.orderSelection
|
|
|
|
|
};
|
|
|
|
|
postExcelInoutImport(printParams).then((response) => {
|
|
|
|
|
let blob = new Blob([response], {type: "application/vnd.ms-excel"});
|
|
|
|
|
let url = window.URL.createObjectURL(blob); // 创建一个临时的url指向blob对象
|
|
|
|
|
let a = document.createElement("a");
|
|
|
|
|
a.href = url;
|
|
|
|
|
a.click();
|
|
|
|
|
this.$message("成功")
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
searchExport() {
|
|
|
|
|
this.$confirm("是否确定打印所有查询结果数据", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
|
|
|
|
|
let printParams = {
|
|
|
|
|
orderIdFk: this.filterQuery.orderIdFk,
|
|
|
|
|
nameCode: this.filterQuery.nameCode,
|
|
|
|
|
coName: this.filterQuery.coName,
|
|
|
|
|
spec: this.filterQuery.spec,
|
|
|
|
|
batchNo: this.filterQuery.batchNo,
|
|
|
|
|
zczbhhzbapzbh: this.filterQuery.zczbhhzbapzbh,
|
|
|
|
|
manufacturer: this.filterQuery.manufacturer,
|
|
|
|
|
actionType: this.filterQuery.actionType,
|
|
|
|
|
keyWords: this.filterQuery.keyWords,
|
|
|
|
|
mainAction: this.filterQuery.mainAction,
|
|
|
|
|
action: this.filterQuery.action
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
if (this.actDateRange !== null) {
|
|
|
|
|
printParams.startAduditTime = this.actDateRange[0];
|
|
|
|
|
printParams.endAduditTime = this.actDateRange[1];
|
|
|
|
|
} else {
|
|
|
|
|
printParams.startAduditTime = null;
|
|
|
|
|
printParams.endAduditTime = null;
|
|
|
|
|
}
|
|
|
|
|
excelInoutImport(printParams).then((response) => {
|
|
|
|
|
let blob = new Blob([response], {type: "application/vnd.ms-excel"});
|
|
|
|
|
let url = window.URL.createObjectURL(blob); // 创建一个临时的url指向blob对象
|
|
|
|
|
let a = document.createElement("a");
|
|
|
|
|
a.href = url;
|
|
|
|
|
a.click();
|
|
|
|
|
this.$message("成功")
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
document.body.ondrop = function (event) {
|
|
|
|
|
event.preventDefault();
|
|
|
|
|