|
|
@ -1,16 +1,16 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-card class="el-card">
|
|
|
|
<el-card class="el-card">
|
|
|
|
<el-form :model="filterQuery" class="query-form" label-width="100px" v-show="showSearch">
|
|
|
|
<el-form :model="filterQuery" class="query-form" label-width="100px" v-show="showSearch">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="8" >
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="领用单号:">
|
|
|
|
<el-form-item label="领用单号:">
|
|
|
|
<el-input v-model="filterQuery.billNo" style="width: 90%" placeholder="请输入单据号" clearable></el-input>
|
|
|
|
<el-input v-model="filterQuery.billNo" style="width: 90%" placeholder="请输入单据号" clearable></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="领用仓库:">
|
|
|
|
<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
|
|
|
|
<el-option
|
|
|
|
v-for="item in invList"
|
|
|
|
v-for="item in invList"
|
|
|
|
:key="item.code"
|
|
|
|
:key="item.code"
|
|
|
@ -22,7 +22,7 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="往来信息:">
|
|
|
|
<el-form-item label="往来信息:">
|
|
|
|
<el-select v-model="filterQuery.corpName" placeholder="请输入往来信息"
|
|
|
|
<el-select v-model="filterQuery.corpName" placeholder="请输入往来信息"
|
|
|
|
filterable
|
|
|
|
filterable
|
|
|
|
remote
|
|
|
|
remote
|
|
|
|
reserve-keyword
|
|
|
|
reserve-keyword
|
|
|
@ -91,7 +91,6 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
<div class="top-right-btn">
|
|
|
|
<el-button-group style="display:flex;">
|
|
|
|
<el-button-group style="display:flex;">
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
|
|
@ -102,8 +101,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
<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"
|
|
|
|
:default-sort="defaultSort" @sort-change="handleSortChange">
|
|
|
|
@current-change="handleDetail"
|
|
|
|
|
|
|
|
:default-sort="defaultSort" @sort-change="handleSortChange">
|
|
|
|
<el-table-column label="序号" type="index" width="60"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index" width="60"></el-table-column>
|
|
|
|
<el-table-column label="领用单号" prop="billNo"></el-table-column>
|
|
|
|
<el-table-column label="领用单号" prop="billNo"></el-table-column>
|
|
|
|
<el-table-column label="领用部门" prop="deptName"></el-table-column>
|
|
|
|
<el-table-column label="领用部门" prop="deptName"></el-table-column>
|
|
|
@ -117,12 +117,15 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="创建时间" prop="createTime"
|
|
|
|
<el-table-column label="创建时间" prop="createTime"
|
|
|
|
sortable="custom" :sort-orders="['ascending', 'descending']" ></el-table-column>
|
|
|
|
sortable="custom" :sort-orders="['ascending', 'descending']"></el-table-column>
|
|
|
|
<el-table-column label="审核时间" prop="auditTime"
|
|
|
|
<el-table-column label="审核时间" prop="auditTime"
|
|
|
|
sortable="custom" :sort-orders="['ascending', 'descending']"></el-table-column>
|
|
|
|
sortable="custom" :sort-orders="['ascending', 'descending']"></el-table-column>
|
|
|
|
<el-table-column label="操作" >
|
|
|
|
<el-table-column label="操作">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row)"
|
|
|
|
<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>
|
|
|
|
</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -167,7 +170,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
|
|
import {getOrderDetail, getReceiveOrder} from "@/api/inout/receiveOrder";
|
|
|
|
import {getOrderDetail, getReceiveOrder, printOrder} from "@/api/inout/receiveOrder";
|
|
|
|
import auditDetail from "@/views/inout/receive/receiveAuditDetail"
|
|
|
|
import auditDetail from "@/views/inout/receive/receiveAuditDetail"
|
|
|
|
import {delReceive} from "@/api/thrsys/thrOrderReceive";
|
|
|
|
import {delReceive} from "@/api/thrsys/thrOrderReceive";
|
|
|
|
import {filterSubAll, findInvByUser} from "@/api/system/invSubWarehouse";
|
|
|
|
import {filterSubAll, findInvByUser} from "@/api/system/invSubWarehouse";
|
|
|
@ -186,7 +189,7 @@ export default {
|
|
|
|
limit: 10,
|
|
|
|
limit: 10,
|
|
|
|
corpName: null,
|
|
|
|
corpName: null,
|
|
|
|
type: 3,
|
|
|
|
type: 3,
|
|
|
|
invCode:null
|
|
|
|
targetInvCode: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
statusMap: {
|
|
|
|
statusMap: {
|
|
|
|
1: "草稿",
|
|
|
|
1: "草稿",
|
|
|
@ -194,17 +197,17 @@ export default {
|
|
|
|
3: "已审核",
|
|
|
|
3: "已审核",
|
|
|
|
4: "已拒绝"
|
|
|
|
4: "已拒绝"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
idQuery:null,
|
|
|
|
idQuery: null,
|
|
|
|
invList:[],
|
|
|
|
invList: [],
|
|
|
|
invCodebe:null,
|
|
|
|
invCodebe: null,
|
|
|
|
newSpDistributionVisible:false,
|
|
|
|
newSpDistributionVisible: false,
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
thirdSys: [],
|
|
|
|
thirdSys: [],
|
|
|
|
thirdSysDetail: null,
|
|
|
|
thirdSysDetail: null,
|
|
|
|
busTypes: [],
|
|
|
|
busTypes: [],
|
|
|
|
originTypes: [],
|
|
|
|
originTypes: [],
|
|
|
|
list: [],
|
|
|
|
list: [],
|
|
|
|
corpList:[],
|
|
|
|
corpList: [],
|
|
|
|
detailList: [],
|
|
|
|
detailList: [],
|
|
|
|
uploadFileUrl: null,
|
|
|
|
uploadFileUrl: null,
|
|
|
|
fileList: [],
|
|
|
|
fileList: [],
|
|
|
@ -296,7 +299,7 @@ export default {
|
|
|
|
limit: 10,
|
|
|
|
limit: 10,
|
|
|
|
corpName: null,
|
|
|
|
corpName: null,
|
|
|
|
type: 3,
|
|
|
|
type: 3,
|
|
|
|
invCode: this.invCodebe,
|
|
|
|
targetInvCode: this.invCodebe,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.actDateRange = [];
|
|
|
|
this.actDateRange = [];
|
|
|
|
this.actAuditDateRange = [];
|
|
|
|
this.actAuditDateRange = [];
|
|
|
@ -325,7 +328,7 @@ export default {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.$message.success("删除成功");
|
|
|
|
this.$message.success("删除成功");
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
this.detailList=null;
|
|
|
|
this.detailList = null;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -364,7 +367,7 @@ export default {
|
|
|
|
this.filterQuery.endAuditTime = null;
|
|
|
|
this.filterQuery.endAuditTime = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
this.detailList=[]
|
|
|
|
this.detailList = []
|
|
|
|
getReceiveOrder(this.filterQuery)
|
|
|
|
getReceiveOrder(this.filterQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
@ -382,7 +385,7 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleDetail(row) {
|
|
|
|
handleDetail(row) {
|
|
|
|
var query={};
|
|
|
|
var query = {};
|
|
|
|
query.orderIdFk = row.billNo;
|
|
|
|
query.orderIdFk = row.billNo;
|
|
|
|
getOrderDetail(query) //查找该单号下的所有条码
|
|
|
|
getOrderDetail(query) //查找该单号下的所有条码
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
@ -396,11 +399,11 @@ export default {
|
|
|
|
this.filterQuery.page = val.page;
|
|
|
|
this.filterQuery.page = val.page;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
finCorpList(val){
|
|
|
|
finCorpList(val) {
|
|
|
|
let query ={
|
|
|
|
let query = {
|
|
|
|
name : val,
|
|
|
|
name: val,
|
|
|
|
page : 1,
|
|
|
|
page: 1,
|
|
|
|
limit : 10,
|
|
|
|
limit: 10,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
filterSubAll(query)
|
|
|
|
filterSubAll(query)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
@ -421,9 +424,9 @@ export default {
|
|
|
|
findInvByUser(query)
|
|
|
|
findInvByUser(query)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.invList = response.data || [];
|
|
|
|
this.invList = response.data || [];
|
|
|
|
if(this.invList.length>0){
|
|
|
|
if (this.invList.length > 0) {
|
|
|
|
this.filterQuery.invCode=this.invList[0].code
|
|
|
|
this.filterQuery.targetInvCode = this.invList[0].code
|
|
|
|
this.invCodebe=this.filterQuery.invCode
|
|
|
|
this.invCodebe = this.filterQuery.targetInvCode
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getList();
|
|
|
|
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: {
|
|
|
|
components: {
|
|
|
|
auditDetail
|
|
|
|
auditDetail
|
|
|
|