|
|
|
@ -2,14 +2,48 @@
|
|
|
|
|
<basic-container> |
|
|
|
|
<div class="avue-crud" v-loading="details.loadingObj.pageLoading"> |
|
|
|
|
<!-- 搜索模块 --> |
|
|
|
|
<div v-h5uShow="!search"> |
|
|
|
|
<div v-h5uShow="search"> |
|
|
|
|
<!-- 查询模块 --> |
|
|
|
|
<el-form :inline="true" :model="query" class="header_search"> |
|
|
|
|
<!-- <el-form-item label="车次号:"> |
|
|
|
|
<el-input v-model="query.serviceNumber" placeholder="请输入车次号" clearable></el-input> |
|
|
|
|
</el-form-item> --> |
|
|
|
|
|
|
|
|
|
<el-form-item label="实际发车:" class="el-times"> |
|
|
|
|
<el-form-item label="始发仓:"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="details.query.warehouseId" |
|
|
|
|
class="w100" |
|
|
|
|
clearable |
|
|
|
|
placeholder="请选择始发仓" |
|
|
|
|
filterable |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="value in details.warehouseOption" |
|
|
|
|
:key="value.dictKey" |
|
|
|
|
:label="value.dictValue" |
|
|
|
|
:value="value.dictKey" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="目的仓:"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="details.query.endWarehouseId" |
|
|
|
|
class="w100" |
|
|
|
|
clearable |
|
|
|
|
placeholder="请选择始发仓" |
|
|
|
|
filterable |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="value in details.warehouseOption" |
|
|
|
|
:key="value.dictKey" |
|
|
|
|
:label="value.dictValue" |
|
|
|
|
:value="value.dictKey" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="实际发车:"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="details.query.startArr" |
|
|
|
|
type="daterange" |
|
|
|
@ -23,7 +57,7 @@
|
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="到车时间:" class="el-times"> |
|
|
|
|
<el-form-item label="到车时间:"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="details.query.arriveTimeArr" |
|
|
|
|
type="daterange" |
|
|
|
@ -37,7 +71,7 @@
|
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="创建时间:" class="el-times"> |
|
|
|
|
<el-form-item label="创建时间:"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="details.query.createTimeArr" |
|
|
|
|
type="daterange" |
|
|
|
@ -50,8 +84,9 @@
|
|
|
|
|
clearable |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<!-- 查询按钮 --> |
|
|
|
|
<el-form-item class="el-btn"> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="searchChange">搜 索</el-button> |
|
|
|
|
<el-button icon="el-icon-delete" @click="searchReset">清 空</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
@ -584,6 +619,7 @@ import {
|
|
|
|
|
postManualLoadingloadId, |
|
|
|
|
postFindLoadingListData, |
|
|
|
|
} from '@/api/distribution/VehicleStowage'; |
|
|
|
|
import { getListName } from '@/api/basicdata/basicdataVehicle'; |
|
|
|
|
import { useStore } from 'vuex'; |
|
|
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'; |
|
|
|
@ -593,8 +629,10 @@ import print from '@/utils/print';
|
|
|
|
|
const $router = useRouter(); |
|
|
|
|
const $route = useRoute(); |
|
|
|
|
|
|
|
|
|
// vuex |
|
|
|
|
const $store = useStore(); |
|
|
|
|
|
|
|
|
|
/** 用户信息 */ |
|
|
|
|
const Mydata = ref<any>({}); |
|
|
|
|
|
|
|
|
|
Mydata.value = JSON.parse(localStorage.getItem('my_data')); //获取本地仓库信息 |
|
|
|
@ -698,6 +736,8 @@ const details = reactive<any>({
|
|
|
|
|
packageQuery: {}, |
|
|
|
|
/** 配载清单数据 */ |
|
|
|
|
listOfLoadedWagonsData: {}, |
|
|
|
|
/** 仓库信息 */ |
|
|
|
|
warehouseOption: [] as [{ dictKey: string; dictValue: string }] | [], |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const loadStatus = reactive([ |
|
|
|
@ -709,10 +749,6 @@ const loadStatus = reactive([
|
|
|
|
|
const { search, query, shortcuts, data, loadingObj, selectionList, drawerShow, page, popUpShow } = |
|
|
|
|
toRefs(details); |
|
|
|
|
|
|
|
|
|
/** vuex */ |
|
|
|
|
const permission = computed(() => mapGetters(['permission', 'tagWel', 'tagList'])); |
|
|
|
|
console.log('permission :>> ', permission); |
|
|
|
|
|
|
|
|
|
/** 权限按钮 */ |
|
|
|
|
const permissionObj = reactive({ |
|
|
|
|
/** 新增配载 */ |
|
|
|
@ -832,12 +868,25 @@ const onLoad = debounce(async (params = {}) => {
|
|
|
|
|
|
|
|
|
|
const initOnload = () => { |
|
|
|
|
details.page.pageNum = 1; |
|
|
|
|
onLoad(); |
|
|
|
|
return onLoad(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** 初始化请求仓库数据 */ |
|
|
|
|
getListName({ name: '' }).then(res => { |
|
|
|
|
const { code, data } = res.data; |
|
|
|
|
if (code !== 200 || getObjType(data) !== 'array') return; |
|
|
|
|
details.warehouseOption = data.map(val => { |
|
|
|
|
return { |
|
|
|
|
dictKey: val.id, |
|
|
|
|
dictValue: val.name, |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
initOnload(); |
|
|
|
|
/** 初始化请求数据 */ |
|
|
|
|
const init = async item => { |
|
|
|
|
|
|
|
|
|
/** 初始化请求节点数据 */ |
|
|
|
|
const initNextNode = async item => { |
|
|
|
|
const res = await postFindNextNodeList({ loadId: item.id }); |
|
|
|
|
|
|
|
|
|
// 下一步节点数据 |
|
|
|
@ -1143,7 +1192,7 @@ const handleStartCar = async () => {
|
|
|
|
|
|
|
|
|
|
// 初始化数据 |
|
|
|
|
const _item = details.selectionList[0]; |
|
|
|
|
init(_item); |
|
|
|
|
initNextNode(_item); |
|
|
|
|
|
|
|
|
|
await nextTick(); |
|
|
|
|
const _node = document.querySelector('.truckLoadingDetailPopUpTable'); |
|
|
|
|