|
|
@ -2,23 +2,30 @@
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-card class="el-card" style="margin-top: -15px">
|
|
|
|
<el-card class="el-card" style="margin-top: -15px">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-form :inline="true" :model="listQuery" style="display: flex;" size="mini">
|
|
|
|
<el-form :model="listQuery" size="mini"
|
|
|
|
|
|
|
|
v-show="showSearch"
|
|
|
|
|
|
|
|
label-width="100px">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
|
|
<el-form-item class="query-form-item" label="单据号:">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="listQuery.billNo"
|
|
|
|
v-model="listQuery.billNo"
|
|
|
|
placeholder="单据号"
|
|
|
|
placeholder="单据号"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
|
|
<el-form-item class="query-form-item" label="往来单位:">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="listQuery.corpName"
|
|
|
|
v-model="listQuery.corpName"
|
|
|
|
placeholder="往来单位"
|
|
|
|
placeholder="往来单位"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
|
|
<el-form-item class="query-form-item" label="领用类型">
|
|
|
|
<el-select v-model="listQuery.billAction" placeholder="请选择领用类型" clearable="true">
|
|
|
|
<el-select v-model="listQuery.billAction" placeholder="请选择领用类型" clearable="true">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in originTypes"
|
|
|
|
v-for="item in originTypes"
|
|
|
@ -32,10 +39,11 @@
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
</el-col>
|
|
|
|
<span style="color: #000; margin-left: 10px; margin-right: 6px"
|
|
|
|
</el-row>
|
|
|
|
>单据日期:</span
|
|
|
|
<el-row>
|
|
|
|
>
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
|
|
<el-form-item class="query-form-item" label="单据日期:">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
v-model="actDateRange"
|
|
|
|
v-model="actDateRange"
|
|
|
@ -48,41 +56,48 @@
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item style="display: flex">
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
<el-button-group>
|
|
|
|
<el-button-group>
|
|
|
|
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch">显示/隐藏搜索栏</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
icon="el-icon-refresh"
|
|
|
|
icon="el-icon-refresh"
|
|
|
|
@click="onReset"
|
|
|
|
@click="onReset"
|
|
|
|
></el-button>
|
|
|
|
>重置
|
|
|
|
<el-button type="primary" icon="search" @click="submitFind">查询</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button type="primary" icon="search" @click="combine"
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="submitFind">查询</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" icon="el-icon-check" @click="combine"
|
|
|
|
>确定
|
|
|
|
>确定
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-button-group>
|
|
|
|
</el-button-group>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
</div>
|
|
|
|
<el-table
|
|
|
|
<el-table
|
|
|
|
:data="dataList"
|
|
|
|
:data="dataList"
|
|
|
|
style="width: 100%"
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
|
|
border
|
|
|
|
highlight-current-row="true"
|
|
|
|
highlight-current-row="true"
|
|
|
|
v-loading="loading"
|
|
|
|
v-loading="loading"
|
|
|
|
:row-class-name="tableRowClassName"
|
|
|
|
@current-change="handleDetail"
|
|
|
|
@current-change="handleChange"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index" width="60"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="领用类型" prop="billType"></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="corpName" width="300"
|
|
|
|
<el-table-column label="领用仓库" prop="invName"></el-table-column>
|
|
|
|
show-overflow-tooltip="true"></el-table-column>
|
|
|
|
<el-table-column label="往来信息" prop="targetInvName" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
<el-table-column label="单据类型" prop="billTypeName"></el-table-column>
|
|
|
|
<el-table-column label="单据日期" prop="billDate"></el-table-column>
|
|
|
|
<el-table-column label="单据状态" prop="billFlag" width="80"></el-table-column>
|
|
|
|
<el-table-column label="状态" prop="status">
|
|
|
|
<el-table-column label="单据日期" prop="billdate"></el-table-column>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-tag :type="(scope.row.status) | statusFilterType">
|
|
|
|
|
|
|
|
{{ statusMap[scope.row.status] }}
|
|
|
|
|
|
|
|
</el-tag>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
<el-pagination
|
|
|
|
<el-pagination
|
|
|
|
:page-size="listQuery.limit"
|
|
|
|
:page-size="listQuery.limit"
|
|
|
@ -97,9 +112,9 @@
|
|
|
|
<el-card class="el-card">
|
|
|
|
<el-card class="el-card">
|
|
|
|
<el-table v-loading="loading" :data="detailList" style="width: 100%">
|
|
|
|
<el-table v-loading="loading" :data="detailList" style="width: 100%">
|
|
|
|
<el-table-column label="序号" type="index" width="120"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index" width="120"></el-table-column>
|
|
|
|
<el-table-column label="产品编码" prop="productId"></el-table-column>
|
|
|
|
<el-table-column label="产品编码" prop="nameCode"></el-table-column>
|
|
|
|
<el-table-column label="产品通用名" prop="productName" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
<el-table-column label="产品通用名" prop="cpmctymc" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
<el-table-column label="规格型号" prop="spec" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
<el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
<el-table-column label="批次号" prop="batchNo"></el-table-column>
|
|
|
|
<el-table-column label="批次号" prop="batchNo"></el-table-column>
|
|
|
|
<el-table-column label="生产日期" prop="productDate"></el-table-column>
|
|
|
|
<el-table-column label="生产日期" prop="productDate"></el-table-column>
|
|
|
|
<el-table-column label="失效日期" prop="expireDate"></el-table-column>
|
|
|
|
<el-table-column label="失效日期" prop="expireDate"></el-table-column>
|
|
|
@ -132,7 +147,7 @@ import store from "../../store";
|
|
|
|
import {filterAllByUser} from "@/api/system/invWarehouse";
|
|
|
|
import {filterAllByUser} from "@/api/system/invWarehouse";
|
|
|
|
|
|
|
|
|
|
|
|
import selectInvDialog from "./DialogSelectInv";
|
|
|
|
import selectInvDialog from "./DialogSelectInv";
|
|
|
|
import {getReceiveOrder} from "@/api/inout/receiveOrder";
|
|
|
|
import {getOrderDetail, getReceiveOrder} from "@/api/inout/receiveOrder";
|
|
|
|
import {getBusChange} from "@/api/basic/busTypeChange";
|
|
|
|
import {getBusChange} from "@/api/basic/busTypeChange";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -162,6 +177,7 @@ export default {
|
|
|
|
allocateStatus: 0,
|
|
|
|
allocateStatus: 0,
|
|
|
|
customerId: null,
|
|
|
|
customerId: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
showSearch: true,
|
|
|
|
detailList: [],
|
|
|
|
detailList: [],
|
|
|
|
storageVisible: false,
|
|
|
|
storageVisible: false,
|
|
|
|
dataList: [],
|
|
|
|
dataList: [],
|
|
|
@ -176,6 +192,12 @@ export default {
|
|
|
|
originTypes: [],
|
|
|
|
originTypes: [],
|
|
|
|
storageList: [],
|
|
|
|
storageList: [],
|
|
|
|
actDateRange: [],
|
|
|
|
actDateRange: [],
|
|
|
|
|
|
|
|
statusMap: {
|
|
|
|
|
|
|
|
1: "草稿",
|
|
|
|
|
|
|
|
2: "未审核",
|
|
|
|
|
|
|
|
3: "已审核",
|
|
|
|
|
|
|
|
4: "已拒绝"
|
|
|
|
|
|
|
|
},
|
|
|
|
pickerOptions: {
|
|
|
|
pickerOptions: {
|
|
|
|
shortcuts: [
|
|
|
|
shortcuts: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -239,10 +261,21 @@ export default {
|
|
|
|
this.unionQuery.page = val;
|
|
|
|
this.unionQuery.page = val;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleChange(val) {
|
|
|
|
|
|
|
|
this.currentRow = val;
|
|
|
|
handleDetail(row) {
|
|
|
|
this.detailList = val.subErpOrders;
|
|
|
|
|
|
|
|
|
|
|
|
this.currentRow = row;
|
|
|
|
|
|
|
|
var query = {};
|
|
|
|
|
|
|
|
query.orderIdFk = row.billNo;
|
|
|
|
|
|
|
|
getOrderDetail(query) //查找该单号下的所有条码
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
this.detailList = response.data.list || [];
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
this.detailList = [];
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
handleErpPageChange(val) {
|
|
|
|
handleErpPageChange(val) {
|
|
|
|
this.listQuery.page = val;
|
|
|
|
this.listQuery.page = val;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
@ -287,14 +320,8 @@ export default {
|
|
|
|
if (this.$isBlank(this.currentRow.id)) {
|
|
|
|
if (this.$isBlank(this.currentRow.id)) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.curLocInv = this.currentRow.locStorageCode;
|
|
|
|
|
|
|
|
if (this.$isBlank(this.curLocInv)) {
|
|
|
|
|
|
|
|
this.storageVisible = true;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
let tQuery = {
|
|
|
|
let tQuery = {
|
|
|
|
id: this.currentRow.id,
|
|
|
|
id: this.currentRow.id,
|
|
|
|
locStorageCode: this.curLocInv,
|
|
|
|
|
|
|
|
invWarehouseCode: this.currentRow.invWarehouseCode,
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
addReceiveOrder(tQuery)
|
|
|
|
addReceiveOrder(tQuery)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
@ -306,8 +333,11 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
hideSearch() {
|
|
|
|
|
|
|
|
this.showSearch = !this.showSearch;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
submitFind() {
|
|
|
|
submitFind() {
|
|
|
|
this.listQuery.page = 1;
|
|
|
|
this.listQuery.page = 1;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|