|
|
@ -1,47 +1,68 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<el-form :inline="true" :model="filterQuery" class="query-form" size="mini">
|
|
|
|
<el-form :model="filterQuery" size="mini" label-width="100px" v-show="showSearch">
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
|
|
<el-form-item label="产品编码:">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="filterQuery.inventoryCode" clearable
|
|
|
|
v-model="filterQuery.inventoryCode" clearable
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
placeholder="请输入产品编码"
|
|
|
|
placeholder="请输入产品编码"
|
|
|
|
></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 label="产品名称:">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="filterQuery.inventoryName" clearable
|
|
|
|
v-model="filterQuery.inventoryName" clearable
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
placeholder="请输入产品名称"
|
|
|
|
placeholder="请输入产品名称"
|
|
|
|
></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 label="规格型号:">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="filterQuery.spec" clearable
|
|
|
|
v-model="filterQuery.spec" clearable
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
placeholder="请输入规格型号"
|
|
|
|
placeholder="请输入规格型号"
|
|
|
|
></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 label-width="120px" label="注册/备案凭证号:">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="filterQuery.registerCertNo" clearable
|
|
|
|
v-model="filterQuery.registerCertNo" clearable
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
placeholder="请输入注册/备案凭证号"
|
|
|
|
placeholder="请输入注册/备案凭证号"
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
|
|
<el-form-item label="生厂厂家:">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="filterQuery.manufactory" clearable
|
|
|
|
v-model="filterQuery.manufactory" clearable
|
|
|
|
|
|
|
|
style="width: 90%"
|
|
|
|
placeholder="请输入生厂厂家"
|
|
|
|
placeholder="请输入生厂厂家"
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
</el-col>
|
|
|
|
<el-select v-model="filterQuery.filterCount" placeholder="过滤条件">
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
|
|
<el-form-item label="库存:">
|
|
|
|
|
|
|
|
<el-select v-model="filterQuery.filterCount" style="width: 90%" placeholder="过滤条件">
|
|
|
|
<el-option label="全部" value="0"></el-option>
|
|
|
|
<el-option label="全部" value="0"></el-option>
|
|
|
|
<el-option label="库存等于0" value="1"></el-option>
|
|
|
|
<el-option label="库存等于0" value="1"></el-option>
|
|
|
|
<el-option label="库存大于0" value="2"></el-option>
|
|
|
|
<el-option label="库存大于0" value="2"></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item class="query-form-item">
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
|
|
|
<el-form-item label="外部系统:">
|
|
|
|
|
|
|
|
|
|
|
|
<el-select v-model="filterQuery.thirdSys" placeholder="请选择第三方系统">
|
|
|
|
<el-select v-model="filterQuery.thirdSys" style="width: 90%" placeholder="请选择第三方系统">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="item in thirdSys"
|
|
|
|
v-for="item in thirdSys"
|
|
|
|
:key="item.value"
|
|
|
|
:key="item.value"
|
|
|
@ -52,16 +73,23 @@
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
<el-button-group style="display:flex;">
|
|
|
|
<el-button-group style="display:flex;">
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
|
|
|
<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="getList">查询</el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="getList">查询</el-button>
|
|
|
|
<el-button type="primary" icon="search" @click="clearAll"
|
|
|
|
<el-button type="primary" icon="el-icon-delete-solid" @click="clearAll"
|
|
|
|
v-if="!this.thirdSysDetail.enabled">清空全部
|
|
|
|
v-if="!this.thirdSysDetail.enabled">清空全部
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</el-button-group>
|
|
|
|
</el-button-group>
|
|
|
|
</el-form-item>
|
|
|
|
</div>
|
|
|
|
</el-form>
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row>
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row>
|
|
|
|
<el-table-column label="序号" type="index" width="70"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index" width="70"></el-table-column>
|
|
|
|
<el-table-column label="产品编码" prop="code" show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column label="产品编码" prop="code" show-overflow-tooltip></el-table-column>
|
|
|
@ -77,8 +105,7 @@
|
|
|
|
<el-table-column label="货位" prop="spaceName" show-overflow-tooltip></el-table-column>
|
|
|
|
<el-table-column label="货位" prop="spaceName" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" v-if="thirdSysDetail.fromType!=0" width="60">
|
|
|
|
<el-table-column label="操作" v-if="thirdSysDetail.fromType!=0">
|
|
|
|
|
|
|
|
<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="deleteDialog(scope.row)"
|
|
|
|
>删除
|
|
|
|
>删除
|
|
|
@ -98,14 +125,15 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import {delInvProducts, delAll, downloadAll} from "@/api/thrsys/thrInvProducts";
|
|
|
|
import {delInvProducts, delAll, downloadAll} from "@/api/thrsys/thrInvProducts";
|
|
|
|
import {getBasicThirdSys, filterDetailByKey} from "@/api/basic/basicThirdSys";
|
|
|
|
import {getBasicThirdSys, filterDetailByKey} from "@/api/basic/basicThirdSys";
|
|
|
|
import {selectIp} from "@/api/param/systemParamConfig";
|
|
|
|
import {selectIp} from "@/api/param/systemParamConfig";
|
|
|
|
import {getOnhands} from "@/api/inventory/onHand.js";
|
|
|
|
import {getOnhands} from "@/api/inventory/onHand.js";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
showSearch: true,
|
|
|
|
filterQuery: {
|
|
|
|
filterQuery: {
|
|
|
|
inventoryCode: null,
|
|
|
|
inventoryCode: null,
|
|
|
|
inventoryName: null,
|
|
|
|
inventoryName: null,
|
|
|
@ -115,7 +143,7 @@
|
|
|
|
thirdSys: null,
|
|
|
|
thirdSys: null,
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 100,
|
|
|
|
limit: 100,
|
|
|
|
filterCount:null,
|
|
|
|
filterCount: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
list: [],
|
|
|
|
list: [],
|
|
|
@ -143,11 +171,13 @@
|
|
|
|
manufactory: null,
|
|
|
|
manufactory: null,
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 100,
|
|
|
|
limit: 100,
|
|
|
|
filterCount:null,
|
|
|
|
filterCount: null,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
hideSearch() {
|
|
|
|
|
|
|
|
this.showSearch = !this.showSearch;
|
|
|
|
|
|
|
|
},
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
if (this.filterQuery.thirdSys == null) {
|
|
|
|
if (this.filterQuery.thirdSys == null) {
|
|
|
|
this.$message.warning("请先选择第三方系统!")
|
|
|
|
this.$message.warning("请先选择第三方系统!")
|
|
|
@ -160,7 +190,7 @@
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
this.list = response.data.list || [];
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
this.total = response.data.total || 0;
|
|
|
|
}else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -303,11 +333,13 @@
|
|
|
|
this.getBasicThirdSys();
|
|
|
|
this.getBasicThirdSys();
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
.el-form-item--mini.el-form-item {
|
|
|
|
|
|
|
|
margin-bottom: 9px;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|