|
|
|
@ -73,6 +73,34 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</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-form>
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
@ -84,7 +112,7 @@
|
|
|
|
|
@click="onReset"
|
|
|
|
|
>重置
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit"
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="onSubmit"
|
|
|
|
|
>查询
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
@ -94,6 +122,8 @@
|
|
|
|
|
<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="供应商" 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="物资名称" prop="cpmctymc" width="180" show-overflow-tooltip></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>
|
|
|
|
|
<el-table-column label="仓库" prop="invName" v-if="showSup"
|
|
|
|
|
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="productionDate" width="120"></el-table-column>
|
|
|
|
|
<el-table-column label="失效日期" prop="expireDate" width="120"></el-table-column>
|
|
|
|
@ -246,7 +274,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.filterQuery.supId = this.$store.getters.customerId;
|
|
|
|
|
|
|
|
|
|
getProduct(this.filterQuery).then((res) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
@ -349,6 +377,10 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
let supId = this.$store.getters.customerId;
|
|
|
|
|
if (supId == "110") {
|
|
|
|
|
this.showSup = true;
|
|
|
|
|
}
|
|
|
|
|
this.findMethod();
|
|
|
|
|
this.getInvList();
|
|
|
|
|
this.getList();
|
|
|
|
|