|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="领用仓库:">
|
|
|
|
|
<el-select v-model="filterQuery.invCode" placeholder="请选择领用仓库" style="width: 90%;">
|
|
|
|
|
<el-select v-model="filterQuery.targetInvCode" placeholder="请选择领用仓库" style="width: 90%;">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in invList"
|
|
|
|
|
:key="item.code"
|
|
|
|
@ -91,7 +91,6 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
|
<el-button-group style="display:flex;">
|
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
|
|
|
@ -102,7 +101,8 @@
|
|
|
|
|
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row="true" @current-change="handleDetail"
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row="true"
|
|
|
|
|
@current-change="handleDetail"
|
|
|
|
|
:default-sort="defaultSort" @sort-change="handleSortChange">
|
|
|
|
|
<el-table-column label="序号" type="index" width="60"></el-table-column>
|
|
|
|
|
<el-table-column label="领用单号" prop="billNo"></el-table-column>
|
|
|
|
@ -122,6 +122,9 @@
|
|
|
|
|
sortable="custom" :sort-orders="['ascending', 'descending']"></el-table-column>
|
|
|
|
|
<el-table-column label="操作">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="printOrder(scope.row)"
|
|
|
|
|
>打印
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)"
|
|
|
|
|
>删除
|
|
|
|
|
</el-button>
|
|
|
|
@ -167,7 +170,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
import {getOrderDetail, getReceiveOrder} from "@/api/inout/receiveOrder";
|
|
|
|
|
import {getOrderDetail, getReceiveOrder, printOrder} from "@/api/inout/receiveOrder";
|
|
|
|
|
import auditDetail from "@/views/inout/receive/receiveAuditDetail"
|
|
|
|
|
import {delReceive} from "@/api/thrsys/thrOrderReceive";
|
|
|
|
|
import {filterSubAll, findInvByUser} from "@/api/system/invSubWarehouse";
|
|
|
|
@ -186,7 +189,7 @@ export default {
|
|
|
|
|
limit: 10,
|
|
|
|
|
corpName: null,
|
|
|
|
|
type: 3,
|
|
|
|
|
invCode:null
|
|
|
|
|
targetInvCode: null,
|
|
|
|
|
},
|
|
|
|
|
statusMap: {
|
|
|
|
|
1: "草稿",
|
|
|
|
@ -296,7 +299,7 @@ export default {
|
|
|
|
|
limit: 10,
|
|
|
|
|
corpName: null,
|
|
|
|
|
type: 3,
|
|
|
|
|
invCode: this.invCodebe,
|
|
|
|
|
targetInvCode: this.invCodebe,
|
|
|
|
|
};
|
|
|
|
|
this.actDateRange = [];
|
|
|
|
|
this.actAuditDateRange = [];
|
|
|
|
@ -422,8 +425,8 @@ export default {
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.invList = response.data || [];
|
|
|
|
|
if (this.invList.length > 0) {
|
|
|
|
|
this.filterQuery.invCode=this.invList[0].code
|
|
|
|
|
this.invCodebe=this.filterQuery.invCode
|
|
|
|
|
this.filterQuery.targetInvCode = this.invList[0].code
|
|
|
|
|
this.invCodebe = this.filterQuery.targetInvCode
|
|
|
|
|
}
|
|
|
|
|
this.getList();
|
|
|
|
|
})
|
|
|
|
@ -431,6 +434,27 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printOrder(row) {
|
|
|
|
|
printOrder(row)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
const binaryData = [];
|
|
|
|
|
binaryData.push(response);
|
|
|
|
|
//获取blob链接。
|
|
|
|
|
let url = window.URL.createObjectURL(
|
|
|
|
|
new Blob(binaryData, {type: "application/pdf"})
|
|
|
|
|
);
|
|
|
|
|
this.loading = false;
|
|
|
|
|
window.open(url);//打开新标签页,预览pdf。
|
|
|
|
|
this.getList();
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
closeDialog() {
|
|
|
|
|
this.newSpDistributionVisible = false;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
auditDetail
|
|
|
|
|