UDI查询模块代码修改

master
schry 2 years ago
parent ba5a2f738f
commit 3354a47a90

@ -72,6 +72,14 @@ export function sourceSearch(query) {
});
}
export function filterylqxzcrbarmc(query) {
return axios({
url: "/udi/basic/dict/filterylqxzcrbarmc",
method: "get",
params: query
});
}
//任务列 表
export function getTraceTaskList(query) {

@ -98,6 +98,9 @@
remote
style="width: 100%"
clearable="true"
:disabled="filterQuery.ggxh==null || filterQuery.ggxh=='' ||
filterQuery.cpmctymc==null || filterQuery.cpmctymc=='' ||
filterQuery.ylqxzcrbarmc==null || filterQuery.ylqxzcrbarmc==''"
reserve-keyword
placeholder="请输入DI"
:remote-method="getNameCodeList"
@ -120,9 +123,10 @@
placeholder="请输入批次号"
style="width: 100%"
clearable="true"
:disabled="filterQuery.ggxh==null || filterQuery.ggxh=='' ||
:disabled="filterQuery.nameCode==null || filterQuery.nameCode=='' ||
filterQuery.ggxh==null || filterQuery.ggxh=='' ||
filterQuery.cpmctymc==null || filterQuery.cpmctymc=='' ||
filterQuery.ylqxzcrbarmc==null || filterQuery.ylqxzcrbarmc==''"
filterQuery.ylqxzcrbarmc==null || filterQuery.ylqxzcrbarmc==''"
></el-input>
</el-form-item>
</el-col>
@ -385,8 +389,9 @@
<script>
import {filterCpmctymc, filterGgxh, filterNameCode, sourceSearch,filterCompanyName} from "@/api/udi/udiTrace";
import {filterCompany} from "@/api/basic/udiInfo";
import {filterylqxzcrbarmc,filterCpmctymc,
filterGgxh, filterNameCode, sourceSearch,filterCompanyName} from "@/api/udi/udiTrace";
export default {
data() {
@ -520,10 +525,10 @@ export default {
page: 1,
limit: 10,
};
filterCompany(cQuery)
filterylqxzcrbarmc(cQuery)
.then((response) => {
this.loading = false;
this.fromOptions = response.data || [];
this.fromOptions = response.data.list || [];
console.log(this.fromOptions)
})
.catch(() => {

@ -14,7 +14,7 @@
<el-col type="flex" :span="6">
<el-form-item label="当前所在企业:" class="query-form-item">
<el-select
v-model="filterQuery.companyName"
v-model="filterQuery.companyId"
filterable
remote
style="width: 100%"
@ -26,9 +26,9 @@
>
<el-option
v-for="item in companyNameList"
:key="item.companyName"
:key="item.id"
:label="item.companyName"
:value="item.companyName"
:value="item.id"
>
</el-option>
</el-select>
@ -121,6 +121,9 @@
remote
style="width: 100%"
clearable="true"
:disabled="filterQuery.ggxh==null || filterQuery.ggxh=='' ||
filterQuery.cpmctymc==null || filterQuery.cpmctymc=='' ||
filterQuery.ylqxzcrbarmc==null || filterQuery.ylqxzcrbarmc==''"
reserve-keyword
placeholder="请输入DI"
:remote-method="getNameCodeList"
@ -143,9 +146,10 @@
placeholder="请输入批次号"
style="width: 100%"
clearable="true"
:disabled="filterQuery.ggxh==null || filterQuery.ggxh=='' ||
:disabled="filterQuery.nameCode==null || filterQuery.nameCode=='' ||
filterQuery.ggxh==null || filterQuery.ggxh=='' ||
filterQuery.cpmctymc==null || filterQuery.cpmctymc=='' ||
filterQuery.ylqxzcrbarmc==null || filterQuery.ylqxzcrbarmc==''"
filterQuery.ylqxzcrbarmc==null || filterQuery.ylqxzcrbarmc==''"
></el-input>
</el-form-item>
</el-col>
@ -408,8 +412,8 @@
<script>
import {filterCpmctymc, filterGgxh, filterNameCode, sourceSearch,filterCompanyName} from "@/api/udi/udiTrace";
import {filterCompany} from "@/api/basic/udiInfo";
import {filterylqxzcrbarmc,filterCpmctymc, filterGgxh, filterNameCode, sourceSearch,filterCompanyName} from "@/api/udi/udiTrace";
export default {
data() {
@ -421,7 +425,8 @@ export default {
ggxh: null,
nameCode: null,
batchNo: null,
companyName: "",
companyName: null,
companyId: null,
page: 1,
limit: 10,
},
@ -549,10 +554,10 @@ export default {
page: 1,
limit: 10,
};
filterCompany(cQuery)
filterylqxzcrbarmc(cQuery)
.then((response) => {
this.loading = false;
this.fromOptions = response.data || [];
this.fromOptions = response.data.list || [];
console.log(this.fromOptions)
})
.catch(() => {

Loading…
Cancel
Save