|
|
|
@ -3,7 +3,35 @@
|
|
|
|
|
<el-card class="el-card">
|
|
|
|
|
<el-form :model="filterQuery" class="query-form" size="mini" label-width="100px" v-show="showSearch">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item class="query-form-item" label="送货单位:">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="filterQuery.fromCorp"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
clearable="true"
|
|
|
|
|
reserve-keyword
|
|
|
|
|
placeholder="供应商名称"
|
|
|
|
|
:remote-method="findMethod"
|
|
|
|
|
size="mini"
|
|
|
|
|
:loading="corpLoading"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in fromOptions"
|
|
|
|
|
:key="item.name"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.erpId"
|
|
|
|
|
>
|
|
|
|
|
<span style="float: left">{{ item.name }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item class="query-form-item" label="送货单号:">
|
|
|
|
|
<el-input v-model="filterQuery.billNo" placeholder="请输入送货单号"
|
|
|
|
|
style="width: 90%"
|
|
|
|
@ -11,19 +39,9 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<!-- <el-col :span="6">-->
|
|
|
|
|
<!-- <el-form-item class="query-form-item" label="出入库类型:">-->
|
|
|
|
|
<!-- <el-select v-model="filterQuery.mainAction" placeholder="请选择出入库类型" style="width: 90%">-->
|
|
|
|
|
<!-- <el-option label="全部" value=""></el-option>-->
|
|
|
|
|
<!-- <el-option label="入库" value="WareHouseIn"></el-option>-->
|
|
|
|
|
<!-- <el-option label="出库" value="WareHouseOut"></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item class="query-form-item" label="送货仓库:">
|
|
|
|
|
<el-select v-model="filterQuery.invCode" placeholder="请选择送货仓库" clearable="true"
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item class="query-form-item" label="收货仓库:">
|
|
|
|
|
<el-select v-model="filterQuery.invCode" placeholder="请选择收货仓库" clearable="true"
|
|
|
|
|
style="width: 90%"
|
|
|
|
|
@change="invChange"
|
|
|
|
|
>
|
|
|
|
@ -37,7 +55,7 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item class="query-form-item" label="单据类型:">
|
|
|
|
|
<el-select v-model="filterQuery.action" placeholder="请选择单据类型"
|
|
|
|
|
style="width: 90%"
|
|
|
|
@ -55,7 +73,7 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item class="query-form-item" label="审核状态:">
|
|
|
|
|
<el-select v-model="filterQuery.status" placeholder="请选择出入库类型" style="width: 90%">
|
|
|
|
|
<el-option label="全部" value=""></el-option>
|
|
|
|
@ -65,7 +83,7 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item class="query-form-item" label="创建时间:">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
@ -82,7 +100,7 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item class="query-form-item" label="审核时间:">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
@ -120,29 +138,16 @@
|
|
|
|
|
border
|
|
|
|
|
@current-change="handleSelectionChange">
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
|
<el-table-column label="送货单号" prop="billNo" show-overflow-tooltip width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="单据类型" prop="billTypeName" width="150"></el-table-column>
|
|
|
|
|
<el-table-column label="送单号" prop="billNo" show-overflow-tooltip width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="送货单位" prop="fromName" width="220">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="采购部门" prop="deptName" width="120">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="收货仓库" prop="invName" width="120">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="来源单号" prop="corpOrderId" show-overflow-tooltip width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="来源" prop="fromType" width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ fromTypeMap[scope.row.fromType] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="创建时间" prop="createTime" show-overflow-tooltip width="150">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<i class="el-icon-time"></i>
|
|
|
|
|
<span>{{ scope.row.createTime }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="审核时间" prop="createTime" show-overflow-tooltip width="150">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<i class="el-icon-time"></i>
|
|
|
|
@ -150,6 +155,17 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="采购部门" prop="deptName" width="120">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="收货仓库" prop="invName" width="120">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="来源单号" prop="corpOrderId" show-overflow-tooltip width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="来源" prop="fromType" width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ fromTypeMap[scope.row.fromType] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="审核状态" prop="status" width="100">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -508,6 +524,7 @@ import {getCodeDetailList} from "@/api/inout/orderDetailCode";
|
|
|
|
|
import {getCodeList} from "@/api/inout/code";
|
|
|
|
|
import AcceptOrder from "@/views/inout/DialogReviewOrder";
|
|
|
|
|
import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint"
|
|
|
|
|
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const formJson = {
|
|
|
|
@ -527,7 +544,7 @@ export default {
|
|
|
|
|
billNo: null,
|
|
|
|
|
mainAction: null,
|
|
|
|
|
action: null,
|
|
|
|
|
status:10,
|
|
|
|
|
status: 10,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
startTime: null,
|
|
|
|
@ -583,6 +600,8 @@ export default {
|
|
|
|
|
formData: formJson,
|
|
|
|
|
deleteLoading: false,
|
|
|
|
|
busTypes: [],
|
|
|
|
|
corpLoading: false,
|
|
|
|
|
fromOptions: [],
|
|
|
|
|
currentRow: {
|
|
|
|
|
billNo: ""
|
|
|
|
|
},
|
|
|
|
@ -660,7 +679,7 @@ export default {
|
|
|
|
|
billNo: null,
|
|
|
|
|
mainAction: null,
|
|
|
|
|
action: null,
|
|
|
|
|
status:10,
|
|
|
|
|
status: 10,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
startTime: null,
|
|
|
|
@ -745,6 +764,29 @@ export default {
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
findMethod(key) {
|
|
|
|
|
this.corpLoading = true;
|
|
|
|
|
this.fromOptions = [];
|
|
|
|
|
let params = {
|
|
|
|
|
key: key,
|
|
|
|
|
corpType: 2,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20
|
|
|
|
|
};
|
|
|
|
|
getBasicUnitMaintains(params).then((res) => {
|
|
|
|
|
this.corpLoading = false;
|
|
|
|
|
this.fromOptions = res.data.list || [];
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.corpLoading = false;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
corpChange(value) {
|
|
|
|
|
if (!isBlank(value)) {
|
|
|
|
|
this.findMethod(value);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleSelectionChange(val) {
|
|
|
|
|
this.currentRow = val;
|
|
|
|
|
this.getOrderDetails();
|
|
|
|
|