2024-06-04 02:03:39 +00:00
|
|
|
<template>
|
2024-06-11 11:49:02 +00:00
|
|
|
<XdPageContainer class="dashboard-container" >
|
2024-06-04 02:03:39 +00:00
|
|
|
|
2024-06-11 11:49:02 +00:00
|
|
|
<!-- class="app-container" -->
|
|
|
|
|
<SearchForm style="background: white; padding: 10px;" slot="pageHeader" class="queryForm" :model="queryParams" ref="queryForm" size="mini" :maxShow="9" label-width="100px" @search="handleQuery" @reset="resetQuery">
|
2024-06-04 02:03:39 +00:00
|
|
|
<!-- label-width="100px" -->
|
|
|
|
|
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
|
|
|
|
<!-- :span="6" -->
|
2024-06-05 10:50:25 +00:00
|
|
|
<el-col :span="6">
|
2024-06-04 02:03:39 +00:00
|
|
|
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
|
|
|
|
<el-col :span="24">
|
2024-06-05 10:50:25 +00:00
|
|
|
<el-form-item label="按运单号查询" prop="billCode">
|
2024-06-04 02:03:39 +00:00
|
|
|
<XdTextareaInput
|
|
|
|
|
v-model="queryParams.billCode"
|
|
|
|
|
:placeholder="$t('多个流水号逗号或换行隔开')"
|
|
|
|
|
clearable
|
|
|
|
|
:rows="4"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
2024-06-21 17:54:53 +00:00
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="" prop="blSubBill">
|
|
|
|
|
<el-checkbox style="font-size:400;margin-right:10px;" v-model="queryParams.blSubBill" :true-label="'1'" :false-label="'0'">显示子单</el-checkbox>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
2024-06-04 02:03:39 +00:00
|
|
|
</el-row>
|
2024-06-21 17:54:53 +00:00
|
|
|
|
2024-06-04 02:03:39 +00:00
|
|
|
</el-col>
|
2024-06-05 10:50:25 +00:00
|
|
|
<el-col :span="18">
|
|
|
|
|
|
|
|
|
|
</el-col>
|
2024-06-04 02:03:39 +00:00
|
|
|
</el-row>
|
2024-06-07 08:19:39 +00:00
|
|
|
|
2024-06-04 02:03:39 +00:00
|
|
|
</SearchForm>
|
|
|
|
|
|
2024-06-11 11:49:02 +00:00
|
|
|
<div style="display:inline-flex;width: 100%;border-bottom: 1px solid #d9d9d9;margin-bottom: 20px;">
|
|
|
|
|
<div class="form-group-title"><span class="title">{{ $t('跟踪信息') }}</span></div>
|
|
|
|
|
</div>
|
2024-06-04 02:03:39 +00:00
|
|
|
|
2024-06-11 11:49:02 +00:00
|
|
|
<div style="min-height: 100%;padding: 0px 10px 5px 0px;">
|
|
|
|
|
<el-scrollbar style="height: 1000px">
|
2024-06-14 12:22:05 +00:00
|
|
|
<CardWithHeader v-for="(item,index) in emisWaybillList" :key="resetRefreshId+'.'+index" :header="'运单号:'+item.billCode" >
|
2024-06-11 11:49:02 +00:00
|
|
|
<template v-slot:body>
|
2024-06-21 17:54:53 +00:00
|
|
|
<TraceWaybillDetailView :scanBillCode="item.billCode" :billDetail="item.waybillDetail" :key="resetRefreshId+'.d.'+index" ></TraceWaybillDetailView>
|
2024-06-11 11:49:02 +00:00
|
|
|
</template>
|
|
|
|
|
</CardWithHeader>
|
|
|
|
|
</el-scrollbar>
|
|
|
|
|
</div>
|
2024-06-04 02:03:39 +00:00
|
|
|
|
|
|
|
|
</XdPageContainer>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2024-06-21 17:54:53 +00:00
|
|
|
// import 'element-ui/lib/theme-chalk/display.css';
|
|
|
|
|
import { queryScanWaybillList } from "@/api/emis/emisTmsScanRecord";
|
|
|
|
|
|
2024-06-04 02:03:39 +00:00
|
|
|
import { formatSearchStr,deepClone } from '@/utils/index'
|
|
|
|
|
|
2024-06-11 11:49:02 +00:00
|
|
|
import CardWithHeader from '@/components/CardWithHeader/index.vue';
|
|
|
|
|
import TraceWaybillDetailView from './traceWaybillDetailView.vue';
|
2024-06-04 02:03:39 +00:00
|
|
|
export default {
|
2024-06-11 11:49:02 +00:00
|
|
|
name: "WaybillTracking",
|
2024-06-04 02:03:39 +00:00
|
|
|
|
|
|
|
|
components: {
|
2024-06-11 11:49:02 +00:00
|
|
|
CardWithHeader,TraceWaybillDetailView
|
2024-06-04 02:03:39 +00:00
|
|
|
},
|
2024-06-11 11:49:02 +00:00
|
|
|
dicts: [],
|
2024-06-04 02:03:39 +00:00
|
|
|
data() {
|
|
|
|
|
return {
|
2024-06-14 12:22:05 +00:00
|
|
|
resetRefreshId:null,
|
2024-06-04 02:03:39 +00:00
|
|
|
// 运单列表表格数据
|
|
|
|
|
emisWaybillList: [],
|
|
|
|
|
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
billCode: null,
|
2024-06-21 17:54:53 +00:00
|
|
|
blSubBill:0,
|
2024-06-04 02:03:39 +00:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2024-06-14 12:22:05 +00:00
|
|
|
getUUID() {
|
|
|
|
|
return Math.random().toString(36).substring(3,10);
|
|
|
|
|
},
|
2024-06-04 02:03:39 +00:00
|
|
|
/** 查询运单列表列表 */
|
|
|
|
|
getList() {
|
2024-06-14 12:22:05 +00:00
|
|
|
|
|
|
|
|
this.resetRefreshId="tracing-"+this.getUUID();
|
2024-06-04 02:03:39 +00:00
|
|
|
this.loading = true;
|
|
|
|
|
|
2024-06-11 11:49:02 +00:00
|
|
|
if(!this.queryParams.billCode){
|
|
|
|
|
return;
|
|
|
|
|
}
|
2024-06-04 02:03:39 +00:00
|
|
|
|
2024-06-11 11:49:02 +00:00
|
|
|
if(this.queryParams.billCode){
|
|
|
|
|
// 处理子单号
|
2024-06-21 17:54:53 +00:00
|
|
|
// let qBillCode=formatSearchStr(this.queryParams.billCode);
|
|
|
|
|
// let billArr = qBillCode.split(",");
|
|
|
|
|
// let newBillCodeStr="";
|
|
|
|
|
// billArr.forEach(item=>{
|
|
|
|
|
// if(item.startsWith("T")){
|
|
|
|
|
// let mainBillCode=item.substr(0,14);
|
|
|
|
|
// newBillCodeStr=newBillCodeStr+mainBillCode+",";
|
|
|
|
|
// }else{
|
|
|
|
|
// newBillCodeStr=newBillCodeStr+item+",";
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
this.queryParams.billCode=formatSearchStr(this.queryParams.billCode);
|
2024-06-04 02:03:39 +00:00
|
|
|
}
|
|
|
|
|
|
2024-06-21 17:54:53 +00:00
|
|
|
queryScanWaybillList(this.queryParams).then(response => {
|
2024-06-04 02:03:39 +00:00
|
|
|
this.emisWaybillList = response.rows;
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
handleQuery() {
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
resetQuery() {
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
2024-06-11 11:49:02 +00:00
|
|
|
|
2024-06-04 02:03:39 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
|
|
|
|
:deep .el-form-item__label-wrap {
|
|
|
|
|
margin-left: 0 !important;
|
|
|
|
|
}
|
|
|
|
|
.el-divider{
|
|
|
|
|
margin-top: 0px;
|
|
|
|
|
background: 0 0;
|
|
|
|
|
border-top: 1px solid #E6EBF5;
|
|
|
|
|
}
|
|
|
|
|
.el-divider__text {
|
|
|
|
|
color: #0955ee;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.query-label {
|
|
|
|
|
.el-radio{
|
|
|
|
|
display: block;
|
|
|
|
|
line-height: 23px;
|
|
|
|
|
white-space: normal;
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.queryForm .el-form-item {
|
|
|
|
|
margin-bottom: 0px !important;
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-11 11:49:02 +00:00
|
|
|
.tip ::v-deep.is-success > .el-step__line > i {
|
|
|
|
|
background-color: #67c23a;
|
|
|
|
|
}
|
|
|
|
|
.tip ::v-deep.is-error > .el-step__line > i {
|
|
|
|
|
background-color: #f56c6c;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-06-04 02:03:39 +00:00
|
|
|
</style>
|