查询管理相关页面区分供应商

ywj_dev
anthonywj 2 years ago
parent 9b18a07007
commit 8b12a179c5

@ -22,7 +22,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="状态:"> <el-form-item label="余量状态:">
<el-select v-model="codeQuery.status" style="width: 90%" placeholder="请选择状态" clearable> <el-select v-model="codeQuery.status" style="width: 90%" placeholder="请选择状态" clearable>
<el-option label="在库" value="1"></el-option> <el-option label="在库" value="1"></el-option>
<el-option label="已使用" value="2"></el-option> <el-option label="已使用" value="2"></el-option>
@ -136,7 +136,8 @@
row-key="id" row-key="id"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="供应商" prop="fromName" v-if="showSup" show-overflow-tooltip
width="160"></el-table-column>
<el-table-column <el-table-column
label="收货时间" label="收货时间"
prop="auditTime" prop="auditTime"
@ -150,25 +151,7 @@
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column
label="预验收单号"
prop="orderId"
width="160"
show-overflow-tooltip
></el-table-column>
<el-table-column label="状态" prop="status">
<template slot-scope="scope">
<el-tag :type="(scope.row.status)">
{{ statusMap[scope.row.status] }}
</el-tag>
</template>
</el-table-column>
<el-table-column
label="收货仓库"
prop="invName"
width="120"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="物资名称" label="物资名称"
prop="productName" prop="productName"
@ -191,11 +174,41 @@
label="入库数量" label="入库数量"
prop="originReCount" width="100" prop="originReCount" width="100"
></el-table-column> ></el-table-column>
<el-table-column
label="使用数量"
width="100"
>
<template slot-scope="scope">
<span>{{ scope.row.originReCount - scope.row.reCount }}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
label="剩余数量" label="剩余数量"
prop="reCount" width="100" prop="reCount" width="100"
></el-table-column> ></el-table-column>
<el-table-column
label="退回数量"
prop="returnCount" width="100"
></el-table-column>
<el-table-column
label="计量单位"
prop="measname" width="100"
></el-table-column>
<el-table-column label="余量状态" prop="status">
<template slot-scope="scope">
<el-tag :type="(scope.row.status)">
{{ statusMap[scope.row.status] }}
</el-tag>
</template>
</el-table-column>
<el-table-column
label="收货仓库"
prop="invName"
width="120"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="生产日期" label="生产日期"
prop="produceDate" prop="produceDate"
@ -348,6 +361,7 @@ export default {
codeDetailList: [], codeDetailList: [],
fromOptions: [], fromOptions: [],
auditDateRange: [], auditDateRange: [],
showSup: false,
statusMap: { statusMap: {
1: "在库", 1: "在库",
2: "已使用", 2: "已使用",
@ -538,6 +552,11 @@ export default {
}; };
}, },
created() { created() {
let supId = this.$store.getters.customerId;
if (supId == "110") {
this.showSup = true;
}
this.getList(); this.getList();
}, },
}; };

@ -94,6 +94,8 @@
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row <el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
border> border>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="供应商" prop="supName" v-if="showSup" show-overflow-tooltip
width="120"></el-table-column>
<el-table-column label="DI/物资编码" prop="nameCode" width="150"></el-table-column> <el-table-column label="DI/物资编码" prop="nameCode" width="150"></el-table-column>
<el-table-column label="物资名称" prop="cpmctymc" width="180" show-overflow-tooltip></el-table-column> <el-table-column label="物资名称" prop="cpmctymc" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip width="180"></el-table-column> <el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip width="180"></el-table-column>
@ -105,8 +107,6 @@
show-overflow-tooltip width="120"></el-table-column> show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="仓库" prop="invName" v-if="showSup" <el-table-column label="仓库" prop="invName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column> show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="供应商" prop="supName" v-if="showSup" show-overflow-tooltip
width="120"></el-table-column>
<el-table-column label="计量单位" prop="measname" width="120"></el-table-column> <el-table-column label="计量单位" prop="measname" width="120"></el-table-column>
<el-table-column label="生产日期" prop="productionDate" width="120"></el-table-column> <el-table-column label="生产日期" prop="productionDate" width="120"></el-table-column>
<el-table-column label="失效日期" prop="expireDate" width="120"></el-table-column> <el-table-column label="失效日期" prop="expireDate" width="120"></el-table-column>
@ -349,6 +349,10 @@ export default {
}; };
}, },
created() { created() {
let supId = this.$store.getters.customerId;
if (supId == "110") {
this.showSup = true;
}
this.findMethod(); this.findMethod();
this.getInvList(); this.getInvList();
this.getList(); this.getList();

@ -73,6 +73,34 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="供应商名称:">
<el-select
v-model="filterQuery.supId"
filterable
remote
clearable="true"
reserve-keyword
placeholder="供应商名称"
:remote-method="findMethod"
size="mini"
:loading="corpLoading"
@change="corpChange"
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-row> </el-row>
</el-form> </el-form>
<div class="top-right-btn"> <div class="top-right-btn">
@ -84,7 +112,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit"
>查询 >查询
</el-button </el-button
> >
@ -94,6 +122,8 @@
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row <el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
border> border>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="供应商" prop="supName" v-if="showSup" show-overflow-tooltip
width="120"></el-table-column>
<el-table-column label="DI/物资编码" prop="nameCode" width="150"></el-table-column> <el-table-column label="DI/物资编码" prop="nameCode" width="150"></el-table-column>
<el-table-column label="物资名称" prop="cpmctymc" width="180" show-overflow-tooltip></el-table-column> <el-table-column label="物资名称" prop="cpmctymc" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip width="180"></el-table-column> <el-table-column label="规格型号" prop="ggxh" show-overflow-tooltip width="180"></el-table-column>
@ -105,8 +135,6 @@
show-overflow-tooltip width="120"></el-table-column> show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="仓库" prop="invName" v-if="showSup" <el-table-column label="仓库" prop="invName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column> show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="供应商" prop="supName" v-if="showSup" show-overflow-tooltip
width="120"></el-table-column>
<el-table-column label="计量单位" prop="measname" width="120"></el-table-column> <el-table-column label="计量单位" prop="measname" width="120"></el-table-column>
<el-table-column label="生产日期" prop="productionDate" width="120"></el-table-column> <el-table-column label="生产日期" prop="productionDate" width="120"></el-table-column>
<el-table-column label="失效日期" prop="expireDate" width="120"></el-table-column> <el-table-column label="失效日期" prop="expireDate" width="120"></el-table-column>
@ -246,7 +274,7 @@ export default {
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.filterQuery.supId = this.$store.getters.customerId;
getProduct(this.filterQuery).then((res) => { getProduct(this.filterQuery).then((res) => {
this.loading = false; this.loading = false;
if (res.code === 20000) { if (res.code === 20000) {
@ -349,6 +377,10 @@ export default {
}; };
}, },
created() { created() {
let supId = this.$store.getters.customerId;
if (supId == "110") {
this.showSup = true;
}
this.findMethod(); this.findMethod();
this.getInvList(); this.getInvList();
this.getList(); this.getList();

@ -84,6 +84,7 @@
<el-divider style="margin: 15px"></el-divider> <el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row border> <el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row border>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="供应商" prop="fromCorpName" width="160" v-if="showSup"></el-table-column>
<el-table-column label="出入库单号" prop="orderIdFk" width="160"></el-table-column> <el-table-column label="出入库单号" prop="orderIdFk" width="160"></el-table-column>
<el-table-column label="DI/物资编码" prop="nameCode" width="160"></el-table-column> <el-table-column label="DI/物资编码" prop="nameCode" width="160"></el-table-column>
<el-table-column label="物资名称" prop="coName" width="160" show-overflow-tooltip></el-table-column> <el-table-column label="物资名称" prop="coName" width="160" show-overflow-tooltip></el-table-column>
@ -130,13 +131,14 @@ export default {
limit: 10, limit: 10,
startAduditTime: null, startAduditTime: null,
endAduditTime: null, endAduditTime: null,
vueType: null, actionType: "norDetail",
}, },
loading: false, loading: false,
total: 0, total: 0,
showSup: false,
customerId: this.$store.getters.customerId, customerId: this.$store.getters.customerId,
actDateRange: [], actDateRange: [],
vueType: "normal", actionType: "norDetail",
auditDateRange: [], auditDateRange: [],
pickerOptions: { pickerOptions: {
shortcuts: [ shortcuts: [
@ -203,6 +205,7 @@ export default {
this.filterQuery.endAduditTime = null; this.filterQuery.endAduditTime = null;
} }
this.filterQuery.page = 1; this.filterQuery.page = 1;
this.getList(); this.getList();
}, },
hideSearch() { hideSearch() {
@ -210,7 +213,7 @@ export default {
}, },
getList() { getList() {
this.loading = true; this.loading = true;
this.filterQuery.vueType = this.vueType; this.filterQuery.actionType = this.actionType;
getResultOrderList(this.filterQuery) getResultOrderList(this.filterQuery)
.then((response) => { .then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
@ -237,7 +240,11 @@ export default {
} }
, ,
created() { created() {
this.vueType = this.$route.query.name; let supId = this.$store.getters.customerId;
if (supId == "110") {
this.showSup = true;
}
this.actionType = this.$route.query.name;
this.getList(); this.getList();
} }
, ,

@ -167,7 +167,7 @@ export default {
formName: null, formName: null,
formMap: { formMap: {
add: "新增采购订单", add: "新增采购订单",
update: "采购订单审核", update: "采购订单处理",
}, },
statusMap: { statusMap: {
1: "草稿", 1: "草稿",

Loading…
Cancel
Save