查询记录页面调整

20240109-yw
anthonywj 1 year ago
parent 1837328302
commit e64296138e

@ -44,16 +44,16 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col type="flex" :span="8"> <!-- <el-col type="flex" :span="8">-->
<el-form-item label="查询场景:" prop="traceSource" class="query-form-item"> <!-- <el-form-item label="查询场景:" prop="traceSource" class="query-form-item">-->
<el-select v-model="filterQuery.traceSource" placeholder="请选择查询场景" style="width: 90%" @change="onSubmit" <!-- <el-select v-model="filterQuery.traceSource" placeholder="请选择查询场景" style="width: 90%" @change="onSubmit"-->
clearable> <!-- 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>-->
<!-- <el-option label="出库" value="3"></el-option>--> <!-- &lt;!&ndash; <el-option label="出库" value="3"></el-option>&ndash;&gt;-->
</el-select> <!-- </el-select>-->
</el-form-item> <!-- </el-form-item>-->
</el-col> <!-- </el-col>-->
<el-col type="flex" :span="8"> <el-col type="flex" :span="8">
<el-form-item label="查询方案:" prop="traceType" class="query-form-item"> <el-form-item label="查询方案:" prop="traceType" class="query-form-item">
<el-select v-model="filterQuery.traceType" placeholder="请选择查询方案" style="width: 90%" @change="onSubmit" <el-select v-model="filterQuery.traceType" placeholder="请选择查询方案" style="width: 90%" @change="onSubmit"
@ -94,11 +94,11 @@
<!-- <el-table-column label="收货单位" prop="toCorp" width="180"></el-table-column>--> <!-- <el-table-column label="收货单位" prop="toCorp" width="180"></el-table-column>-->
<!-- <el-table-column label="所属企业" prop="companyName" width="180"></el-table-column>--> <!-- <el-table-column label="所属企业" prop="companyName" width="180"></el-table-column>-->
<!-- <el-table-column label="查询场景" prop="traceSource" width="120"></el-table-column>--> <!-- <el-table-column label="查询场景" prop="traceSource" width="120"></el-table-column>-->
<el-table-column label="查询场景" prop="traceSource" width="120"> <!-- <el-table-column label="查询场景" prop="traceSource" width="120">-->
<template slot-scope="traceSource"> <!-- <template slot-scope="traceSource">-->
{{ formatTaskType(traceSource.row) }} <!-- {{ formatTaskType(traceSource.row) }}-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="查询方案" prop="traceType" width="120"> <el-table-column label="查询方案" prop="traceType" width="120">
<template slot-scope="traceType"> <template slot-scope="traceType">
{{ formatTaskType1(traceType.row) }} {{ formatTaskType1(traceType.row) }}
@ -977,6 +977,7 @@ export default {
// { value: 3, label: '3' }, // { value: 3, label: '3' },
], ],
showSearch: true, showSearch: true,
actionType: "remote",
} }
}, },
computed: { computed: {
@ -997,21 +998,21 @@ export default {
} }
if (this.orderFormView.inOutType == '1') { if (this.orderFormView.inOutType == '1') {
this.inOutType = "入库" this.inOutType = "入库"
}else { } else {
this.inOutType = "出库" this.inOutType = "出库"
} }
if (this.orderFormView.clientType == '1') { if (this.orderFormView.clientType == '1') {
this.clientType = "模拟测试客户端" this.clientType = "模拟测试客户端"
}else if (this.orderFormView.clientType == '2'){ } else if (this.orderFormView.clientType == '2') {
this.clientType = "UDI自助平台" this.clientType = "UDI自助平台"
}else if (this.orderFormView.clientType == '3'){ } else if (this.orderFormView.clientType == '3') {
this.clientType = "UDI管理系统" this.clientType = "UDI管理系统"
}else if (this.orderFormView.clientType == '4'){ } else if (this.orderFormView.clientType == '4') {
this.clientType = "UDIMS平台" this.clientType = "UDIMS平台"
} }
if (this.orderFormView.traceSource == '1') { if (this.orderFormView.traceSource == '1') {
this.traceSource = '源头查询' this.traceSource = '源头查询'
}else { } else {
this.traceSource = '现场检查查询' this.traceSource = '现场检查查询'
} }
@ -1216,6 +1217,11 @@ export default {
}, },
getList() { getList() {
this.loading = true; this.loading = true;
if (this.actionType === "remote") {
this.filterQuery.traceSource = 1;
} else {
this.filterQuery.traceSource = 2;
}
getTraceRecordList(this.filterQuery).then((res) => { getTraceRecordList(this.filterQuery).then((res) => {
this.loading = false; this.loading = false;
if (res.code === 20000) { if (res.code === 20000) {
@ -1236,6 +1242,7 @@ export default {
}, },
}, },
created() { created() {
this.actionType = this.$route.query.name;
this.getList() this.getList()
} }
} }

@ -839,6 +839,7 @@ export default {
formateInOutType: null, formateInOutType: null,
formateSourceType: null, formateSourceType: null,
searchIng: false, searchIng: false,
actionType:"remote",
} }
}, },
methods: { methods: {
@ -1137,6 +1138,7 @@ export default {
}, },
created() { created() {
this.actionType = this.$route.query.name;
this.geCompanyNameList(); this.geCompanyNameList();
}, },
mounted() { mounted() {

Loading…
Cancel
Save