查询记录接口调整

master
schry 2 years ago
parent 42a5ffe171
commit d7ef3296c3

@ -286,7 +286,7 @@
@row-click="handleSelectionChange"
highlight-current-row border>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="记录号" prop="recordCode" width="180"show-overflow-tooltip></el-table-column>
<!-- <el-table-column label="记录号" prop="recordCode" width="180"show-overflow-tooltip></el-table-column>-->
<el-table-column label="生产订单号" prop="billNo" width="220"show-overflow-tooltip></el-table-column>
<el-table-column label="订单日期" prop="billDate" width="180"show-overflow-tooltip></el-table-column>
<el-table-column label="DI标识" prop="nameCode" width="180"show-overflow-tooltip></el-table-column>
@ -313,7 +313,7 @@
highlight-current-row border>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="UDI码" prop="code" width="180"show-overflow-tooltip></el-table-column>
<el-table-column label="父码" prop="pcode" width="180"show-overflow-tooltip></el-table-column>
<!-- <el-table-column label="父码" prop="pcode" width="180"show-overflow-tooltip></el-table-column>-->
<el-table-column label="产品通用名称" prop="cpmctymc" width="160"show-overflow-tooltip></el-table-column>
<el-table-column label="DI标识" prop="nameCode" width="160"show-overflow-tooltip></el-table-column>
<el-table-column label="规格型号" prop="ggxh" width="180"show-overflow-tooltip></el-table-column>
@ -746,7 +746,7 @@
</el-row>
<el-row type="flex">
<el-col :span="11" type="flex">
<el-form-item label="单据源头类型" prop="sourceType"show-overflow-tooltip>
<el-form-item label="查询方式" prop="sourceType"show-overflow-tooltip>
<el-input v-model="this.formateSourceType" size="small" style="width: 90%" :disabled="true"
></el-input>
</el-form-item>
@ -839,7 +839,7 @@
<script>
import {getTraceRecordList,getTraceOrder,getManuOrder,getManuCodeRelList} from "@/api/udi/udiTrace";
import {getTraceRecordList,getTraceOrder,getManuOrder,getManuCodeRelList,getRecordResult} from "@/api/udi/udiTrace";
export default {
@ -977,10 +977,12 @@ export default {
this.codeRelTotal = 0;
})
},
recordhandleSelectionChange(val){
this.currentRow = val;
this.getTraceOrder();
this.getManuOrder();
//this.getTraceOrder();
//this.getManuOrder();
this.getRecordResult();
},
getTraceOrder() {
if (this.currentRow.id == null) {
@ -1032,6 +1034,33 @@ export default {
this.manuOrderTotal = 0;
})
},
getRecordResult() {
if (this.currentRow.id == null) {
this.$message.error("请先选择需要查询的单据!")
return;
}
this.orderLoading = true;
this.traceOrderQuery.recordCode = this.currentRow.recordCode;
getRecordResult(this.traceOrderQuery).then((res) => {
this.orderLoading = false;
if (res.code === 20000) {
this.traceOrderList = res.data.traceOrderEntities || [];
this.manuOrderList = res.data.traceManuOrderEntities || [];
//this.traceOrderTotal = res.data.total || 0;
console.log(this.traceOrderList)
console.log(this.manuOrderList)
} else {
this.$message.error(res.message);
this.traceOrderList = [];
this.traceOrderTotal = 0;
}
}).catch((error) => {
this.orderLoading = false;
this.$message.error(error.message);
this.traceOrderList = [];
this.traceOrderTotal = 0;
})
},
//
hideSearch() {
this.showSearch = !this.showSearch;

@ -627,7 +627,7 @@
</el-row>
<el-row type="flex">
<el-col :span="11" type="flex">
<el-form-item label="单据源头类型" prop="sourceType"show-overflow-tooltip>
<el-form-item label="查询方式" prop="sourceType"show-overflow-tooltip>
<el-input v-model="this.formateSourceType" size="small" style="width: 90%" :disabled="true"
></el-input>
</el-form-item>

@ -625,7 +625,7 @@
</el-row>
<el-row type="flex">
<el-col :span="11" type="flex">
<el-form-item label="单据源头类型" prop="sourceType"show-overflow-tooltip>
<el-form-item label="查询方式" prop="sourceType"show-overflow-tooltip>
<el-input v-model="this.formateSourceType" size="small" style="width: 90%" :disabled="true"
></el-input>
</el-form-item>

Loading…
Cancel
Save