2024-05-28 06:50:43 +00:00
|
|
|
|
<template>
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<XdPageContainer class="app-container">
|
2024-05-28 06:50:43 +00:00
|
|
|
|
<!-- <SearchForm :model="queryParams" ref="queryForm" size="small" :maxShow="3" label-width="68px" v-show="showSearch" @search="handleQuery" @reset="resetQuery"> -->
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-form slot="pageHeader" ref="form" size="mini" :model="queryParams" label-width="100px">
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
2024-05-28 06:50:43 +00:00
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="" prop="queryType">
|
|
|
|
|
|
<div slot="label">
|
2024-05-28 09:00:39 +00:00
|
|
|
|
<el-radio-group class="query-label" v-model="queryParams.queryType">
|
2024-05-28 06:50:43 +00:00
|
|
|
|
<el-radio label="1">合包号</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</div>
|
2024-06-06 17:04:22 +00:00
|
|
|
|
<!-- <el-input
|
2024-06-03 07:28:25 +00:00
|
|
|
|
v-model="queryParams.packNo"
|
2024-05-28 06:50:43 +00:00
|
|
|
|
:placeholder="$t('多个合包号逗号可换行隔开')"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
type="textarea"
|
|
|
|
|
|
rows="2"
|
2024-06-06 17:04:22 +00:00
|
|
|
|
/> -->
|
|
|
|
|
|
<XdTextareaInput
|
|
|
|
|
|
v-model="queryParams.packNo"
|
|
|
|
|
|
:placeholder="$t('多个流水号逗号或换行隔开')"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
:rows="2"
|
2024-05-28 06:50:43 +00:00
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
2024-06-11 11:49:02 +00:00
|
|
|
|
<el-form-item label="发货时间" prop="dateTimeRange">
|
2024-05-28 06:50:43 +00:00
|
|
|
|
<elDateAdvPicker clearable v-model="dateTimeRange" @dateTimeChange="onDateSelect" ></elDateAdvPicker>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<!-- </SearchForm> -->
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<div slot="pageContent"
|
|
|
|
|
|
slot-scope="slotProps"
|
|
|
|
|
|
:style="'height:'+(slotProps.contentHeight)+'px'"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<el-button style="margin-right: 5px;"
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
plain
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
v-hasPermi="['emis:emisTmsPack:query']"
|
|
|
|
|
|
@click="getQuery"
|
|
|
|
|
|
>查询</el-button>
|
|
|
|
|
|
<el-button style="margin-right: 5px;"
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
|
v-hasPermi="['emis:emisTmsPack:add']"
|
|
|
|
|
|
>去组包</el-button>
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<!-- <el-button style="margin-right: 5px;"
|
2024-06-05 08:34:26 +00:00
|
|
|
|
type="primary"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
|
v-hasPermi="['emis:emisTmsPack:add']"
|
2024-06-05 10:17:39 +00:00
|
|
|
|
>新增合包</el-button> -->
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-button style="margin-right: 5px;"
|
|
|
|
|
|
type="danger"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
|
@click="handleDeleteCoPack"
|
|
|
|
|
|
v-hasPermi="['emis:emisTmsPack:remove']"
|
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
|
<el-button style="margin-right: 5px;"
|
|
|
|
|
|
type="warning"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
|
v-hasPermi="['emis:emisTmsPack:export']"
|
|
|
|
|
|
>打印合包</el-button>
|
|
|
|
|
|
</div>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-tabs v-model="activeName" style="margin-top: 10px;" @tab-click="getQuery">
|
|
|
|
|
|
<el-tab-pane label="待合包" name="first">
|
|
|
|
|
|
<XdTable v-loading="loadingWait"
|
|
|
|
|
|
:height="(slotProps.contentHeight-200)+'px'"
|
|
|
|
|
|
border stripe
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
:data="emisTmsWaitPackList"
|
|
|
|
|
|
:showSearch.sync="showSearch"
|
|
|
|
|
|
:queryParams="queryWaitParams"
|
|
|
|
|
|
:total="waitTotal"
|
|
|
|
|
|
:showRightButton="false"
|
|
|
|
|
|
@queryTable="handleQueryWait"
|
|
|
|
|
|
@selection-change="handleWaitSelectionChange"
|
|
|
|
|
|
@sort-change="handleSortChange"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
|
<el-table-column :label="$t('运单号')" align="center" prop="billCode" min-width="170" />
|
|
|
|
|
|
<el-table-column :label="$t('订单号')" align="center" prop="orderSn" min-width="170" />
|
|
|
|
|
|
<el-table-column :label="$t('进仓单号')" align="center" prop="intoWarehouseCode" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('运单状态')" align="center" prop="waybillStatus" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('物流信息')" align="center" prop="xxx" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('当前网点')" align="center" prop="currentSiteName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('下一网点')" align="center" prop="nextSiteName" min-width="100" />
|
2024-06-07 06:57:14 +00:00
|
|
|
|
<el-table-column :label="$t('寄件国家')" align="center" prop="sendCountryName" min-width="100">
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<template slot-scope="scope">
|
2024-06-07 06:57:14 +00:00
|
|
|
|
<span class="ellipsis">{{ scope.row.sendCountryName }}</span>
|
2024-06-05 10:17:39 +00:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-11 13:15:24 +00:00
|
|
|
|
<el-table-column :label="$t('目的国家')" align="center" prop="receiveCountryName" min-width="100">
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<template slot-scope="scope">
|
2024-06-11 13:15:24 +00:00
|
|
|
|
<span class="ellipsis">{{ scope.row.receiveCountryName }}</span>
|
2024-06-05 10:17:39 +00:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('线路')" align="center" prop="transLineTypeName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('产品类型')" align="center" prop="productTypeName" min-width="100" />
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-table-column :label="$t('预计到达时间')" align="center" prop="estimateDate" min-width="170">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span>{{ parseTime(scope.row.estimateDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('件数')" align="center" prop="parcelQty" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('实际重量')" align="center" prop="billWeight" min-width="100" />
|
|
|
|
|
|
<!-- <el-table-column :label="$t('总重量')" align="center" prop="totalWeight" min-width="100" /> -->
|
|
|
|
|
|
<el-table-column :label="$t('总体积')" align="center" prop="totalVolume" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('体积重量')" align="center" prop="volumeWeight" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('结算重量')" align="center" prop="settlementWeight" min-width="100" />
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<el-table-column :label="$t('收件人')" align="center" prop="receiveName" min-width="150" />
|
|
|
|
|
|
<el-table-column :label="$t('收件公司')" align="center" prop="receiveCompany" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span class="ellipsis">{{ scope.row.receiveCompany }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-07 06:57:14 +00:00
|
|
|
|
<el-table-column :label="$t('取件员')" align="center" prop="takePieceEmployeeName" min-width="150" />
|
|
|
|
|
|
<el-table-column :label="$t('取件方式')" align="center" prop="pickupMethod" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<dict-tag :options="dict.type.emis_qujian_fangshi" :value="scope.row.pickupMethod"/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('付款方式')" align="center" prop="paymentType" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<dict-tag :options="dict.type.emis_payment_type" :value="scope.row.paymentType"/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-table-column :label="$t('运费')" align="center" prop="freight" min-width="100" />
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<el-table-column :label="$t('寄件人')" align="center" prop="sendName" min-width="150" />
|
|
|
|
|
|
<el-table-column :label="$t('寄件公司')" align="center" prop="sendCompany" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span class="ellipsis">{{ scope.row.sendCompany }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-table-column :label="$t('备注')" align="center" prop="remark" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span class="ellipsis">{{ scope.row.remark }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</XdTable>
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="已合包" name="second">
|
|
|
|
|
|
<XdTable v-loading="loadingDone"
|
|
|
|
|
|
:height="(slotProps.contentHeight-200)+'px'"
|
|
|
|
|
|
border stripe
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
:data="emisTmsDonePackList"
|
|
|
|
|
|
:showSearch.sync="showSearch"
|
|
|
|
|
|
:queryParams="queryDoneParams"
|
|
|
|
|
|
:total="doneTotal"
|
|
|
|
|
|
:showRightButton="false"
|
|
|
|
|
|
@queryTable="handleQueryDone"
|
|
|
|
|
|
@selection-change="handleDoneSelectionChange"
|
|
|
|
|
|
@sort-change="handleSortChange"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
|
<el-table-column :label="$t('合包号')" align="center" prop="packNo" min-width="170" />
|
|
|
|
|
|
<el-table-column :label="$t('运单号')" align="center" prop="billCode" min-width="170" />
|
|
|
|
|
|
<el-table-column :label="$t('订单号')" align="center" prop="orderSn" min-width="170" />
|
|
|
|
|
|
<el-table-column :label="$t('进仓单号')" align="center" prop="intoWarehouseCode" min-width="100" />
|
2024-06-08 07:20:21 +00:00
|
|
|
|
<el-table-column :label="$t('扫描状态')" align="center" prop="waybillStatus" width="100" >
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<dict-tag :options="dict.type.emis_waybill_status" :value="scope.row.waybillStatus"/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('物流信息')" align="center" prop="lastTraceInfo" min-width="100" :show-overflow-tooltip="true"/>
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-table-column :label="$t('当前网点')" align="center" prop="currentSiteName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('下一网点')" align="center" prop="nextSiteName" min-width="100" />
|
2024-06-07 06:57:14 +00:00
|
|
|
|
<el-table-column :label="$t('寄件国家')" align="center" prop="sendCountryName" min-width="100">
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<template slot-scope="scope">
|
2024-06-07 06:57:14 +00:00
|
|
|
|
<span class="ellipsis">{{ scope.row.sendCountryName }}</span>
|
2024-06-05 10:17:39 +00:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-11 13:15:24 +00:00
|
|
|
|
<el-table-column :label="$t('目的国家')" align="center" prop="receiveCountryName" min-width="100">
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<template slot-scope="scope">
|
2024-06-11 13:15:24 +00:00
|
|
|
|
<span class="ellipsis">{{ scope.row.receiveCountryName }}</span>
|
2024-06-05 10:17:39 +00:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('线路')" align="center" prop="transLineTypeName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('产品类型')" align="center" prop="productTypeName" min-width="100" />
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-table-column :label="$t('预计到达时间')" align="center" prop="estimateDate" min-width="170">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span>{{ parseTime(scope.row.estimateDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('件数')" align="center" prop="parcelQty" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('实际重量')" align="center" prop="billWeight" min-width="100" />
|
|
|
|
|
|
<!-- <el-table-column :label="$t('总重量')" align="center" prop="totalWeight" min-width="100" /> -->
|
|
|
|
|
|
<el-table-column :label="$t('总体积')" align="center" prop="totalVolume" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('体积重量')" align="center" prop="volumeWeight" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('结算重量')" align="center" prop="settlementWeight" min-width="100" />
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<el-table-column :label="$t('收件人')" align="center" prop="receiveName" min-width="150" />
|
|
|
|
|
|
<el-table-column :label="$t('收件公司')" align="center" prop="receiveCompany" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span class="ellipsis">{{ scope.row.receiveCompany }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-07 06:57:14 +00:00
|
|
|
|
<el-table-column :label="$t('取件员')" align="center" prop="takePieceEmployeeName" min-width="150" />
|
|
|
|
|
|
<el-table-column :label="$t('取件方式')" align="center" prop="pickupMethod" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<dict-tag :options="dict.type.emis_qujian_fangshi" :value="scope.row.pickupMethod"/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('付款方式')" align="center" prop="paymentType" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<dict-tag :options="dict.type.emis_payment_type" :value="scope.row.paymentType"/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-table-column :label="$t('运费')" align="center" prop="freight" min-width="100" />
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<el-table-column :label="$t('寄件人')" align="center" prop="sendName" min-width="150" />
|
|
|
|
|
|
<el-table-column :label="$t('寄件公司')" align="center" prop="sendCompany" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span class="ellipsis">{{ scope.row.sendCompany }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-table-column :label="$t('备注')" align="center" prop="remark" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span class="ellipsis">{{ scope.row.remark }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</XdTable>
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="合包列表" name="third">
|
|
|
|
|
|
<XdTable v-loading="loading"
|
|
|
|
|
|
:height="(slotProps.contentHeight-200)+'px'"
|
|
|
|
|
|
border stripe
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
:data="emisTmsPackList"
|
|
|
|
|
|
:showSearch.sync="showSearch"
|
|
|
|
|
|
:queryParams="queryParams"
|
|
|
|
|
|
:total="total"
|
|
|
|
|
|
:showRightButton="false"
|
|
|
|
|
|
@queryTable="handleQuery"
|
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
|
@sort-change="handleSortChange"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
2024-06-08 07:20:21 +00:00
|
|
|
|
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-table-column :label="$t('合包号')" align="center" prop="packNo" min-width="170" />
|
|
|
|
|
|
<el-table-column :label="$t('合包状态')" align="center" prop="packStatus" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<dict-tag :options="dict.type.emis_pack_status" :value="scope.row.packStatus"/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('操作网点')" align="center" prop="createSiteName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('是否可拆')" align="center" prop="blUnpack" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span>{{ scope.row.blUnpack == "1" ? "是" : "否" }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<el-table-column :label="$t('操作员')" align="center" prop="createByName" min-width="150" />
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-table-column :label="$t('票数')" align="center" prop="totalWaybillQty" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('件数')" align="center" prop="totalParcelQty" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('实际重量')" align="center" prop="totalWeight" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('体积')" align="center" prop="totalVolume" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('创建时间')" align="center" prop="packDate" min-width="170" />
|
|
|
|
|
|
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
|
<template slot-scope="scope">
|
2024-05-28 06:50:43 +00:00
|
|
|
|
<el-button
|
|
|
|
|
|
size="mini"
|
2024-06-05 08:34:26 +00:00
|
|
|
|
type="text"
|
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
2024-05-28 06:50:43 +00:00
|
|
|
|
v-hasPermi="['emis:emisTmsPack:query']"
|
2024-06-05 08:34:26 +00:00
|
|
|
|
>查看</el-button>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</XdTable>
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
</div>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-dialog :title="titleForm" :visible.sync="openForm" width="80%" style="height: 80%" :destroy-on-close="true" @close="handleCancelCo" v-dialogDrag append-to-body>
|
2024-06-03 07:28:25 +00:00
|
|
|
|
<el-form ref="formCo" size="mini" :model="coData" label-width="100px" class="overflowhidden" >
|
2024-05-28 06:50:43 +00:00
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
|
<el-col :span="16">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item :label="$t('合包号')" prop="packNo">
|
|
|
|
|
|
<el-input v-model="coData.packNo" disabled />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item :label="$t('组包时间')" prop="createTime">
|
|
|
|
|
|
<el-input v-model="coData.createTime" disabled />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
2024-06-12 07:43:36 +00:00
|
|
|
|
<el-form-item :label="$t('目的国家')" prop="destCountry">
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<span slot="label">
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<span style="color: red">{{ $t('目的国家') }}</span>
|
2024-05-29 13:26:21 +00:00
|
|
|
|
</span>
|
2024-06-12 07:43:36 +00:00
|
|
|
|
<CountryPicker :placeholder="$t('选择国家')" v-model="coData.destCountry" ></CountryPicker>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
2024-06-04 10:59:52 +00:00
|
|
|
|
<el-form-item :label="$t('生成网点')" prop="sendSiteCode">
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<span slot="label">
|
|
|
|
|
|
<span style="color: red">{{ $t('生成网点') }}</span>
|
|
|
|
|
|
</span>
|
2024-06-04 10:59:52 +00:00
|
|
|
|
<EmisSiteSimplePicker :placeholder="$t('请选择')" v-model="coData.sendSiteCode" v-if="$store.getters.ownerSiteCode== '88888'" ></EmisSiteSimplePicker>
|
|
|
|
|
|
<el-input v-else v-model="coData.sendSiteName" placeholder="" disabled />
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item :label="$t('下一网点')" prop="nextSiteCode">
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<span slot="label">
|
|
|
|
|
|
<span style="color: red">{{ $t('下一网点') }}</span>
|
|
|
|
|
|
</span>
|
2024-06-01 14:24:10 +00:00
|
|
|
|
<!-- <EmisSiteSimplePicker :placeholder="$t('请选择')" v-model="coData.nextSiteCode" ></EmisSiteSimplePicker> -->
|
|
|
|
|
|
<EmisGetNextSitePicker :placeholder="$t('请选择')" v-model="coData.nextSiteCode" ></EmisGetNextSitePicker>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item :label="$t('是否可拆')" prop="blUnpack">
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<span slot="label">
|
|
|
|
|
|
<span style="color: red">{{ $t('是否可拆') }}</span>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<!-- <el-radio-group v-model="coData.blUnpack" value="1"> -->
|
|
|
|
|
|
<el-radio v-model="blUnpack" label="1">是</el-radio>
|
|
|
|
|
|
<el-radio v-model="blUnpack" label="0">否</el-radio>
|
|
|
|
|
|
<!-- </el-radio-group> -->
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-col :span="24">
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<el-form-item style="font-weight:600;">
|
|
|
|
|
|
<span>{{$t('总票数') + ': ' + (coData.totalWaybillQty || 0)}}</span>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<!-- <el-form-item>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
<span slot="label">
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<span style="font-weight:600">{{$t('总票数') + ': '}}</span>
|
|
|
|
|
|
<span style="font-weight:600">{{coData.totalWaybillQty || 0}}</span>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</span>
|
2024-05-29 13:26:21 +00:00
|
|
|
|
</el-form-item> -->
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="24">
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<el-form-item style="font-weight:600;">
|
2024-06-01 12:48:42 +00:00
|
|
|
|
<span>{{$t('总件数') + ': ' + (coData.totalParcelQty || 0)}}</span>
|
2024-05-29 13:26:21 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<!-- <el-form-item>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
<span slot="label">
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<span style="font-weight:600">{{$t('总件数') + ': '}}</span>
|
2024-06-01 12:48:42 +00:00
|
|
|
|
<span style="font-weight:600">{{coData.totalParcelQty || 0}}</span>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</span>
|
2024-05-29 13:26:21 +00:00
|
|
|
|
</el-form-item> -->
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="24">
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<el-form-item style="font-weight:600;">
|
|
|
|
|
|
<span>{{$t('总重量') + ': ' + (coData.totalWeight || 0)}}</span>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<!-- <el-form-item>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
<span slot="label">
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<span style="font-weight:600">{{$t('总重量') + ': '}}</span>
|
|
|
|
|
|
<span style="font-weight:600">{{coData.totalWeight || 0}}</span>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</span>
|
2024-05-29 13:26:21 +00:00
|
|
|
|
</el-form-item> -->
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="24">
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<el-form-item style="font-weight:600;">
|
|
|
|
|
|
<span>{{$t('总体积') + ': ' + (coData.totalVolume || 0)}}</span>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<XdTable v-loading="loading"
|
2024-06-05 08:34:26 +00:00
|
|
|
|
height="300px"
|
|
|
|
|
|
min-height="300px"
|
2024-05-28 06:50:43 +00:00
|
|
|
|
border stripe
|
|
|
|
|
|
size="small"
|
2024-05-28 09:00:39 +00:00
|
|
|
|
id="emisCoPackDetail"
|
2024-05-28 06:50:43 +00:00
|
|
|
|
:data="emisCoPackDetail"
|
|
|
|
|
|
:showSearch.sync="showSearch"
|
|
|
|
|
|
:queryParams="queryParams"
|
2024-06-05 08:34:26 +00:00
|
|
|
|
:showRightButton="false"
|
|
|
|
|
|
@queryTable="donothing"
|
2024-05-29 13:26:21 +00:00
|
|
|
|
@selection-change="handleCoPackSelectionChange"
|
2024-05-28 06:50:43 +00:00
|
|
|
|
@sort-change="handleSortChange"
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
<div slot="toolbar">
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
plain
|
|
|
|
|
|
size="mini"
|
2024-05-29 13:26:21 +00:00
|
|
|
|
@click="handleCoPackListDelete"
|
|
|
|
|
|
:disabled="coSingle"
|
2024-05-28 06:50:43 +00:00
|
|
|
|
>删除</el-button>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
|
size="mini"
|
2024-05-28 09:00:39 +00:00
|
|
|
|
@click="handleAddWayBill"
|
2024-05-28 06:50:43 +00:00
|
|
|
|
>追加</el-button>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
plain
|
|
|
|
|
|
size="mini"
|
2024-05-29 13:26:21 +00:00
|
|
|
|
@click="handleAddCoPack"
|
2024-05-28 06:50:43 +00:00
|
|
|
|
>确定</el-button>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
plain
|
|
|
|
|
|
size="mini"
|
2024-05-29 13:26:21 +00:00
|
|
|
|
@click="handleCancelCo"
|
2024-05-28 06:50:43 +00:00
|
|
|
|
>取消</el-button>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</div>
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<el-table-column :label="$t('运单号')" align="center" prop="billCode" min-width="170" />
|
|
|
|
|
|
<el-table-column :label="$t('订单号')" align="center" prop="orderSn" min-width="170" />
|
2024-06-03 07:28:25 +00:00
|
|
|
|
<el-table-column :label="$t('进仓单号')" align="center" prop="warehouseInNo" min-width="100" />
|
2024-06-01 14:24:10 +00:00
|
|
|
|
<el-table-column :label="$t('扫描状态')" align="center" prop="waybillStatus" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span>{{ scope.row.waybillStatus == "1" ? "是" : "否" }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-04 07:19:23 +00:00
|
|
|
|
<el-table-column :label="$t('扫描时间')" align="center" prop="xxx" min-width="170">
|
2024-06-03 07:28:25 +00:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span>{{ parseTime(coData.scanDate) }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('状态')" align="center" prop="emis_pack_status" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<dict-tag :options="dict.type.emis_pack_status" :value="coData.packStatus"/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('当前网点')" align="center" prop="currentSiteName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('下一网点')" align="center" prop="nextSiteName" min-width="100" />
|
2024-06-07 06:57:14 +00:00
|
|
|
|
<el-table-column :label="$t('寄件国家')" align="center" prop="sendCountryName" min-width="100">
|
2024-06-03 07:28:25 +00:00
|
|
|
|
<template slot-scope="scope">
|
2024-06-07 06:57:14 +00:00
|
|
|
|
<span class="ellipsis">{{ scope.row.sendCountryName }}</span>
|
2024-06-03 07:28:25 +00:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-11 13:15:24 +00:00
|
|
|
|
<el-table-column :label="$t('目的国家')" align="center" prop="receiveCountryName" min-width="100">
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<template slot-scope="scope">
|
2024-06-11 13:15:24 +00:00
|
|
|
|
<span class="ellipsis">{{ scope.row.receiveCountryName }}</span>
|
2024-06-05 10:17:39 +00:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('线路')" align="center" prop="transLineTypeName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('产品类型')" align="center" prop="productTypeName" min-width="100" />
|
2024-06-04 07:19:23 +00:00
|
|
|
|
<el-table-column :label="$t('预计到达时间')" align="center" prop="estimateDate" min-width="170">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span>{{ parseTime(estimateDate) }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<el-table-column :label="$t('件数')" align="center" prop="parcelQty" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('实际重量')" align="center" prop="billWeight" min-width="100" />
|
2024-06-04 10:59:52 +00:00
|
|
|
|
<!-- <el-table-column :label="$t('总重量')" align="center" prop="totalWeight" min-width="100" /> -->
|
2024-06-01 14:24:10 +00:00
|
|
|
|
<el-table-column :label="$t('总体积')" align="center" prop="totalVolume" min-width="100" />
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<el-table-column :label="$t('体积重量')" align="center" prop="volumeWeight" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('结算重量')" align="center" prop="settlementWeight" min-width="100" />
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<el-table-column :label="$t('收件人')" align="center" prop="receiveName" min-width="150" />
|
|
|
|
|
|
<el-table-column :label="$t('收件公司')" align="center" prop="receiveCompany" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span class="ellipsis">{{ scope.row.receiveCompany }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-07 06:57:14 +00:00
|
|
|
|
<el-table-column :label="$t('取件员')" align="center" prop="takePieceEmployeeName" min-width="150" />
|
|
|
|
|
|
<el-table-column :label="$t('取件方式')" align="center" prop="pickupMethod" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<dict-tag :options="dict.type.emis_qujian_fangshi" :value="scope.row.pickupMethod"/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('付款方式')" align="center" prop="paymentType" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<dict-tag :options="dict.type.emis_payment_type" :value="scope.row.paymentType"/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<el-table-column :label="$t('运费')" align="center" prop="freight" min-width="100" />
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<el-table-column :label="$t('寄件人')" align="center" prop="sendName" min-width="150" />
|
|
|
|
|
|
<el-table-column :label="$t('寄件公司')" align="center" prop="sendCompany" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span class="ellipsis">{{ scope.row.sendCompany }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</XdTable>
|
|
|
|
|
|
</el-dialog>
|
2024-05-28 09:00:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
2024-05-29 13:26:21 +00:00
|
|
|
|
<el-dialog :title="titleWayBill" :visible.sync="openWayBillForm" width="70%" @close="handleCloseWayBill" :destroy-on-close="true" v-dialogDrag append-to-body>
|
2024-06-03 07:28:25 +00:00
|
|
|
|
<el-form ref="formCo" size="mini" :model="wayBillData" label-width="100px" class="overflowhidden" >
|
2024-05-28 09:00:39 +00:00
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="" prop="billCode">
|
|
|
|
|
|
<div slot="label">
|
|
|
|
|
|
<el-radio-group class="query-label" v-model="wayBillData.params.queryOrderType">
|
|
|
|
|
|
<el-radio label="1">运单号</el-radio>
|
|
|
|
|
|
<el-radio label="0">订单号</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</div>
|
2024-06-04 07:19:23 +00:00
|
|
|
|
<!-- <el-input
|
2024-05-28 09:00:39 +00:00
|
|
|
|
v-model="wayBillData.billCode"
|
|
|
|
|
|
:placeholder="$t('多个流水号逗号或换行隔开')"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
type="textarea"
|
|
|
|
|
|
rows="2"
|
2024-06-04 07:19:23 +00:00
|
|
|
|
/> -->
|
|
|
|
|
|
<XdTextareaInput
|
2024-06-12 10:07:37 +00:00
|
|
|
|
v-model="wayBillData.billCode"
|
2024-06-04 07:19:23 +00:00
|
|
|
|
:placeholder="$t('多个流水号逗号或换行隔开')"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
:rows="2"
|
2024-05-28 09:00:39 +00:00
|
|
|
|
/>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
2024-06-11 13:15:24 +00:00
|
|
|
|
<el-form-item :label="$t('目的国家')" prop="receiveCountry">
|
|
|
|
|
|
<CountryPicker :placeholder="$t('选择国家')" v-model="wayBillData.receiveCountry" ></CountryPicker>
|
2024-05-28 09:00:39 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="线路" prop="lineCode">
|
|
|
|
|
|
<TransLinePicker v-model="wayBillData.lineCode" :countryCode="wayBillData.destCountry"></TransLinePicker>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="产品" prop="productType">
|
|
|
|
|
|
<TransProductPicker placeholder="全部" v-model="wayBillData.productType" :transLineCode="wayBillData.lineCode" ></TransProductPicker>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
<el-form-item label="" prop="billCode">
|
|
|
|
|
|
<div slot="label">
|
|
|
|
|
|
<el-radio-group class="query-label" v-model="wayBillData.params.dataTimeType">
|
|
|
|
|
|
<el-radio label="1">下单时间</el-radio>
|
|
|
|
|
|
<el-radio label="0">录单时间</el-radio>
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<elDateAdvPicker clearable v-model="wayBillData.dateTimeRange" @dateTimeChange="onWayBillDateSelect" ></elDateAdvPicker>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<XdTable v-loading="loading2"
|
2024-06-05 08:34:26 +00:00
|
|
|
|
height="300px"
|
|
|
|
|
|
min-height="300px"
|
2024-05-28 09:00:39 +00:00
|
|
|
|
border stripe
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
id="emisWayBillList"
|
|
|
|
|
|
:data="emisWayBillList"
|
|
|
|
|
|
:showSearch.sync="showSearch"
|
2024-06-05 08:34:26 +00:00
|
|
|
|
:queryParams="wayBillData"
|
2024-05-28 09:00:39 +00:00
|
|
|
|
:total="wayBillotal"
|
2024-06-05 08:34:26 +00:00
|
|
|
|
:showRightButton="false"
|
2024-05-29 13:26:21 +00:00
|
|
|
|
@queryTable="handleQueryWayBill"
|
2024-05-28 09:00:39 +00:00
|
|
|
|
@sort-change="handleSortChange"
|
2024-05-29 13:26:21 +00:00
|
|
|
|
@selection-change="handleWayBillSelectionChange"
|
2024-05-28 09:00:39 +00:00
|
|
|
|
max-height="300px"
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
<div slot="toolbar">
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
plain
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
@click="handleQueryWayBill"
|
|
|
|
|
|
>查询</el-button>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
|
size="mini"
|
2024-05-29 13:26:21 +00:00
|
|
|
|
@click="handleCoAdd"
|
|
|
|
|
|
:disabled="addWayBillDisabled"
|
2024-05-28 09:00:39 +00:00
|
|
|
|
>追加</el-button>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
2024-06-04 07:19:23 +00:00
|
|
|
|
<el-table-column :label="$t('运单号')" align="center" prop="billCode" min-width="170" />
|
|
|
|
|
|
<el-table-column :label="$t('订单号')" align="center" prop="orderSn" min-width="170" />
|
2024-05-28 09:00:39 +00:00
|
|
|
|
<el-table-column :label="$t('进仓单号')" align="center" prop="intoWarehouseCode" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('运单状态')" align="center" prop="waybillStatus" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('物流信息')" align="center" prop="xxx" min-width="100" />
|
2024-06-03 07:28:25 +00:00
|
|
|
|
<el-table-column :label="$t('当前网点')" align="center" prop="currentSiteName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('下一网点')" align="center" prop="nextSiteName" min-width="100" />
|
2024-06-07 06:57:14 +00:00
|
|
|
|
<el-table-column :label="$t('寄件国家')" align="center" prop="sendCountryName" min-width="100">
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<template slot-scope="scope">
|
2024-06-07 06:57:14 +00:00
|
|
|
|
<span class="ellipsis">{{ scope.row.sendCountryName }}</span>
|
2024-06-05 10:17:39 +00:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-11 13:15:24 +00:00
|
|
|
|
<el-table-column :label="$t('目的国家')" align="center" prop="receiveCountryName" min-width="100">
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<template slot-scope="scope">
|
2024-06-11 13:15:24 +00:00
|
|
|
|
<span class="ellipsis">{{ scope.row.receiveCountryName }}</span>
|
2024-06-05 10:17:39 +00:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('线路')" align="center" prop="transLineTypeName" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('产品类型')" align="center" prop="productTypeName" min-width="100" />
|
2024-06-05 08:34:26 +00:00
|
|
|
|
<el-table-column :label="$t('预计到达时间')" align="center" prop="estimateDate" min-width="170">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span>{{ parseTime(scope.row.estimateDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-05-28 09:00:39 +00:00
|
|
|
|
<el-table-column :label="$t('件数')" align="center" prop="parcelQty" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('实际重量')" align="center" prop="billWeight" min-width="100" />
|
2024-06-04 10:59:52 +00:00
|
|
|
|
<!-- <el-table-column :label="$t('总重量')" align="center" prop="totalWeight" min-width="100" /> -->
|
2024-06-01 14:24:10 +00:00
|
|
|
|
<el-table-column :label="$t('总体积')" align="center" prop="totalVolume" min-width="100" />
|
2024-05-28 09:00:39 +00:00
|
|
|
|
<el-table-column :label="$t('体积重量')" align="center" prop="volumeWeight" min-width="100" />
|
|
|
|
|
|
<el-table-column :label="$t('结算重量')" align="center" prop="settlementWeight" min-width="100" />
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<el-table-column :label="$t('收件人')" align="center" prop="receiveName" min-width="150" />
|
|
|
|
|
|
<el-table-column :label="$t('收件公司')" align="center" prop="receiveCompany" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span class="ellipsis">{{ scope.row.receiveCompany }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-06-07 06:57:14 +00:00
|
|
|
|
<el-table-column :label="$t('取件员')" align="center" prop="takePieceEmployeeName" min-width="150" />
|
|
|
|
|
|
<el-table-column :label="$t('取件方式')" align="center" prop="pickupMethod" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<dict-tag :options="dict.type.emis_qujian_fangshi" :value="scope.row.pickupMethod"/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('付款方式')" align="center" prop="paymentType" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<dict-tag :options="dict.type.emis_payment_type" :value="scope.row.paymentType"/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-05-28 09:00:39 +00:00
|
|
|
|
<el-table-column :label="$t('运费')" align="center" prop="freight" min-width="100" />
|
2024-06-05 10:17:39 +00:00
|
|
|
|
<el-table-column :label="$t('寄件人')" align="center" prop="sendName" min-width="150" />
|
|
|
|
|
|
<el-table-column :label="$t('寄件公司')" align="center" prop="sendCompany" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span class="ellipsis">{{ scope.row.sendCompany }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column :label="$t('备注')" align="center" prop="remark" min-width="100">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span class="ellipsis">{{ scope.row.remark }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-05-28 09:00:39 +00:00
|
|
|
|
</XdTable>
|
|
|
|
|
|
</el-dialog>
|
2024-06-05 08:34:26 +00:00
|
|
|
|
</XdPageContainer>
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import { listEmisTmsPack, getPackNo, getEmisTmsPack, delEmisTmsPack, addEmisTmsPack, updateEmisTmsPack } from "@/api/emis/emisTmsPack";
|
2024-06-06 17:04:22 +00:00
|
|
|
|
import { listEmisWaybill } from "@/api/emis/emisWaybill";
|
2024-05-29 13:26:21 +00:00
|
|
|
|
import { listEmisTmsPackDtl, delEmisTmsPackDtl, addEmisTmsPackDtl } from "@/api/emis/emisTmsPackDtl";
|
2024-05-28 06:50:43 +00:00
|
|
|
|
// import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
|
|
|
|
|
|
import emisTmsPackForm from '@/views/emis/emisTmsPack/emisTmsPackForm';
|
|
|
|
|
|
import elDateAdvPicker from '@/components/DatePickerAdv/elDateAdvPicker';
|
|
|
|
|
|
import CountryPicker from '@/views/emis/EmisBaseTools/CountryPicker.vue';
|
|
|
|
|
|
import EmisSiteSimplePicker from '@/views/emis/EmisBaseTools/EmisSiteSimplePicker.vue';
|
2024-06-01 14:24:10 +00:00
|
|
|
|
import EmisGetNextSitePicker from '@/views/emis/EmisBaseTools/EmisGetNextSitePicker.vue';
|
2024-05-28 09:00:39 +00:00
|
|
|
|
import TransProductPicker from '@/views/emis/EmisBaseTools/TransProductPicker.vue';
|
|
|
|
|
|
import TransLinePicker from '@/views/emis/EmisBaseTools/TransLinePicker.vue';
|
2024-06-05 10:17:39 +00:00
|
|
|
|
import { parseTime, dateToStr } from "@/utils/custom";
|
2024-05-28 06:50:43 +00:00
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: "PackageManagement",
|
2024-06-01 14:24:10 +00:00
|
|
|
|
components: { EmisGetNextSitePicker, CountryPicker, EmisSiteSimplePicker, elDateAdvPicker, emisTmsPackForm, TransLinePicker, TransProductPicker},
|
2024-06-07 06:57:14 +00:00
|
|
|
|
dicts: ['emis_pack_status', 'emis_qujian_fangshi', 'emis_payment_type'],
|
2024-05-28 06:50:43 +00:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
// 遮罩层
|
2024-06-05 08:34:26 +00:00
|
|
|
|
loading: false,
|
2024-05-28 09:00:39 +00:00
|
|
|
|
loading2: false,
|
2024-06-05 08:34:26 +00:00
|
|
|
|
loadingWait: false,
|
|
|
|
|
|
loadingDone: false,
|
2024-05-28 06:50:43 +00:00
|
|
|
|
// 选中数组
|
|
|
|
|
|
ids: [],
|
|
|
|
|
|
// 非单个禁用
|
|
|
|
|
|
single: true,
|
|
|
|
|
|
// 非多个禁用
|
|
|
|
|
|
multiple: true,
|
2024-05-29 13:26:21 +00:00
|
|
|
|
|
|
|
|
|
|
coSingle: true,
|
|
|
|
|
|
coMultiple: true,
|
|
|
|
|
|
|
|
|
|
|
|
addWayBillDisabled: true,
|
2024-06-05 10:17:39 +00:00
|
|
|
|
// packDisabled: true,
|
2024-06-05 08:34:26 +00:00
|
|
|
|
activeName:'first',
|
2024-05-29 13:26:21 +00:00
|
|
|
|
|
2024-05-28 06:50:43 +00:00
|
|
|
|
// 显示搜索条件
|
|
|
|
|
|
showSearch: true,
|
|
|
|
|
|
// 创建时间搜索
|
|
|
|
|
|
dateTimeRange:[],
|
|
|
|
|
|
// 总条数
|
|
|
|
|
|
total: 0,
|
|
|
|
|
|
// TMS合包表格数据
|
|
|
|
|
|
emisTmsPackList: [],
|
|
|
|
|
|
|
2024-06-05 08:34:26 +00:00
|
|
|
|
// 待合包列表
|
|
|
|
|
|
emisTmsWaitPackList:[],
|
|
|
|
|
|
waitTotal:0,
|
|
|
|
|
|
|
|
|
|
|
|
// 已合包列表
|
|
|
|
|
|
emisTmsDonePackList:[],
|
|
|
|
|
|
doneTotal:0,
|
|
|
|
|
|
waitPackList:[],//选择未组包的运单先保存起来,在后续新增合包的弹框中使用
|
2024-05-28 06:50:43 +00:00
|
|
|
|
// 新增/修改弹窗数据
|
2024-05-29 13:26:21 +00:00
|
|
|
|
coData: {
|
|
|
|
|
|
blUnpack:"1"
|
|
|
|
|
|
},
|
2024-05-28 06:50:43 +00:00
|
|
|
|
// 新增/修改包详情数据
|
|
|
|
|
|
emisCoPackDetail:[],
|
2024-05-29 13:26:21 +00:00
|
|
|
|
blUnpack:"1",
|
2024-05-28 09:00:39 +00:00
|
|
|
|
// 追加的运单查询数据
|
|
|
|
|
|
wayBillData: {
|
2024-06-05 08:34:26 +00:00
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 20,
|
2024-05-28 09:00:39 +00:00
|
|
|
|
params:{}
|
|
|
|
|
|
},
|
|
|
|
|
|
// 追加的运单数据
|
|
|
|
|
|
emisWayBillList:[],
|
|
|
|
|
|
wayBillotal:0,
|
|
|
|
|
|
|
2024-05-28 06:50:43 +00:00
|
|
|
|
currentId:null,
|
|
|
|
|
|
openForm: false,
|
|
|
|
|
|
titleForm: "",
|
|
|
|
|
|
|
2024-05-28 09:00:39 +00:00
|
|
|
|
titleWayBill:null,
|
|
|
|
|
|
openWayBillForm:false,
|
|
|
|
|
|
|
2024-05-29 13:26:21 +00:00
|
|
|
|
tempCoPackList:[],
|
|
|
|
|
|
coSelection:[],
|
2024-05-30 08:24:07 +00:00
|
|
|
|
//区分当前是新增还是修改
|
|
|
|
|
|
coPackType:'',
|
|
|
|
|
|
|
|
|
|
|
|
// 临时存储已有合包的运单号
|
|
|
|
|
|
tempExistCoPackWayBillList:[],
|
|
|
|
|
|
tempCoPackInfo:{},
|
2024-05-29 13:26:21 +00:00
|
|
|
|
|
2024-05-28 06:50:43 +00:00
|
|
|
|
// 弹出展示层
|
|
|
|
|
|
id:null,
|
|
|
|
|
|
titleView:"",
|
|
|
|
|
|
openView: false,
|
|
|
|
|
|
// 更新网点时间范围
|
|
|
|
|
|
daterangeCreateTime: [],
|
|
|
|
|
|
// 更新网点时间范围
|
|
|
|
|
|
daterangeUpdateTime: [],
|
|
|
|
|
|
// 查询参数
|
|
|
|
|
|
queryParams: {
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
|
packNo: null,
|
|
|
|
|
|
packName: null,
|
|
|
|
|
|
packDate: null,
|
|
|
|
|
|
destCountry: null,
|
|
|
|
|
|
destCountryName: null,
|
|
|
|
|
|
blUnpack: null,
|
2024-06-04 10:59:52 +00:00
|
|
|
|
sendSiteCode: null,
|
2024-05-28 06:50:43 +00:00
|
|
|
|
totalParcelQty: null,
|
|
|
|
|
|
totalWaybillQty: null,
|
|
|
|
|
|
totalVolume: null,
|
|
|
|
|
|
totalWeight: null,
|
|
|
|
|
|
packStatus: null,
|
|
|
|
|
|
opMan: null,
|
|
|
|
|
|
remark: null,
|
|
|
|
|
|
delFlag: null,
|
2024-06-05 08:34:26 +00:00
|
|
|
|
params:{}
|
2024-05-28 06:50:43 +00:00
|
|
|
|
},
|
|
|
|
|
|
queryCoParams: {
|
2024-06-05 08:34:26 +00:00
|
|
|
|
params:{}
|
|
|
|
|
|
},
|
|
|
|
|
|
// 查询参数
|
|
|
|
|
|
queryWaitParams: {
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
|
packNo: null,
|
|
|
|
|
|
beginCreateTime: null,
|
|
|
|
|
|
endCreateTime: null,
|
|
|
|
|
|
params:{}
|
|
|
|
|
|
},
|
|
|
|
|
|
// 查询参数
|
|
|
|
|
|
queryDoneParams: {
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
|
packNo: null,
|
|
|
|
|
|
params:{}
|
2024-05-28 06:50:43 +00:00
|
|
|
|
},
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
created() {
|
2024-06-08 07:20:21 +00:00
|
|
|
|
|
2024-06-03 04:26:21 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
const end = new Date()
|
|
|
|
|
|
const start = new Date()
|
|
|
|
|
|
start.setHours(0,0,0,0)
|
|
|
|
|
|
end.setHours(23,59,59,0)
|
|
|
|
|
|
this.dateTimeRange=[start,end];
|
2024-06-05 08:34:26 +00:00
|
|
|
|
this.activeName="first";
|
|
|
|
|
|
this.getQuery();
|
2024-05-28 06:50:43 +00:00
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
2024-06-05 08:34:26 +00:00
|
|
|
|
getQuery(){
|
2024-06-05 10:17:39 +00:00
|
|
|
|
// this.packDisabled = true;
|
2024-06-05 08:34:26 +00:00
|
|
|
|
switch(this.activeName){
|
|
|
|
|
|
case 'first':
|
|
|
|
|
|
this.waitPackList=[];
|
|
|
|
|
|
this.handleQueryWait();
|
|
|
|
|
|
break;
|
|
|
|
|
|
case 'second':
|
|
|
|
|
|
this.waitPackList=[];
|
|
|
|
|
|
this.handleQueryDone();
|
|
|
|
|
|
break;
|
|
|
|
|
|
case 'third':
|
|
|
|
|
|
this.waitPackList=[];
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
donothing(){
|
|
|
|
|
|
|
|
|
|
|
|
},
|
2024-05-28 06:50:43 +00:00
|
|
|
|
/** 查询TMS合包列表 */
|
|
|
|
|
|
getList() {
|
|
|
|
|
|
this.loading = true;
|
2024-05-28 09:00:39 +00:00
|
|
|
|
// this.queryParams.params = {};
|
2024-05-30 08:24:07 +00:00
|
|
|
|
this.emisTmsPackList = [];
|
2024-06-05 08:34:26 +00:00
|
|
|
|
if (null != this.dateTimeRange && '' != this.dateTimeRange) {
|
2024-06-05 10:17:39 +00:00
|
|
|
|
this.queryParams.params["beginCreateTime"] = dateToStr(new Date(this.dateTimeRange[0]));
|
|
|
|
|
|
this.queryParams.params["endCreateTime"] = dateToStr(new Date(this.dateTimeRange[1]));
|
2024-05-28 06:50:43 +00:00
|
|
|
|
}
|
|
|
|
|
|
listEmisTmsPack(this.queryParams).then(response => {
|
|
|
|
|
|
this.emisTmsPackList = response.rows;
|
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
});
|
2024-06-05 08:34:26 +00:00
|
|
|
|
},
|
|
|
|
|
|
handleQueryWait(){
|
2024-06-05 10:17:39 +00:00
|
|
|
|
if(null != this.dateTimeRange && '' != this.dateTimeRange){
|
2024-06-11 11:49:02 +00:00
|
|
|
|
this.queryWaitParams.params.beginSendDate = dateToStr(new Date(this.dateTimeRange[0]));
|
|
|
|
|
|
this.queryWaitParams.params.endSendDate = dateToStr(new Date(this.dateTimeRange[1]));
|
2024-06-05 10:17:39 +00:00
|
|
|
|
}
|
2024-06-05 08:34:26 +00:00
|
|
|
|
this.queryWaitParams.packNo = this.queryParams.packNo;
|
|
|
|
|
|
|
|
|
|
|
|
this.loadingWait = true;
|
|
|
|
|
|
this.queryWaitParams.params.isNeedPack = 1;
|
|
|
|
|
|
listEmisWaybill(this.queryWaitParams).then(response => {
|
|
|
|
|
|
this.loadingWait = false;
|
|
|
|
|
|
if(response.code != 200){
|
|
|
|
|
|
this.$message.error(response.msg);
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
this.emisTmsWaitPackList = response.rows;
|
|
|
|
|
|
// this.emisCoPackDetail = response.rows;
|
|
|
|
|
|
console.log(this)
|
|
|
|
|
|
this.waitTotal = response.total;
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
handleWaitSelectionChange(selection){
|
2024-06-05 10:17:39 +00:00
|
|
|
|
// selection.length > 0 ? this.packDisabled = false : this.packDisabled=true;
|
2024-06-05 08:34:26 +00:00
|
|
|
|
this.waitPackList = selection;
|
|
|
|
|
|
},
|
|
|
|
|
|
async handleQueryDone(){
|
|
|
|
|
|
this.loadingDone = true;
|
2024-06-05 10:17:39 +00:00
|
|
|
|
if(null != this.dateTimeRange && '' != this.dateTimeRange){
|
|
|
|
|
|
this.queryDoneParams.params.beginCreateTime = dateToStr(new Date(this.dateTimeRange[0]));
|
2024-06-08 07:20:21 +00:00
|
|
|
|
this.queryDoneParams.params.endCreateTime = dateToStr(new Date(this.dateTimeRange[1]));
|
2024-06-05 10:17:39 +00:00
|
|
|
|
}
|
2024-06-05 08:34:26 +00:00
|
|
|
|
this.queryDoneParams.packNo = this.queryParams.packNo;
|
|
|
|
|
|
let resList = await listEmisTmsPackDtl(this.queryDoneParams);
|
|
|
|
|
|
this.loadingDone = false;
|
|
|
|
|
|
if(!resList || resList.code != 200){
|
|
|
|
|
|
this.$message.error(resList && resList.msg || "未知错误");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
//this.tempExistCoPackWayBillList = resList.rows;//临时存储,用于运单号校验
|
|
|
|
|
|
this.doneTotal = resList.total;
|
|
|
|
|
|
this.emisTmsDonePackList = [];
|
|
|
|
|
|
for(let p = 0; p < resList.rows.length;p++){
|
|
|
|
|
|
let obj = {...resList.rows[p].waybillDetail};
|
|
|
|
|
|
obj.packNo = resList.rows[p].packNo;
|
|
|
|
|
|
this.emisTmsDonePackList.push(obj);
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
handleDoneSelectionChange(){
|
|
|
|
|
|
|
2024-05-28 06:50:43 +00:00
|
|
|
|
},
|
2024-05-28 09:00:39 +00:00
|
|
|
|
handleQueryWayBill(){
|
|
|
|
|
|
this.loading2 = true;
|
|
|
|
|
|
if (null != this.wayBillData.dateTimeRange && '' != this.wayBillData.dateTimeRange) {
|
|
|
|
|
|
if(this.wayBillData.dataTimeType == '1'){
|
|
|
|
|
|
// 下单时间
|
2024-06-05 10:17:39 +00:00
|
|
|
|
this.wayBillData.params.beginOrderDate = dateToStr(new Date(this.wayBillData.dateTimeRange[0]));
|
|
|
|
|
|
this.wayBillData.params.endOrderDate = dateToStr(new Date(this.wayBillData.dateTimeRange[1]));
|
2024-05-28 09:00:39 +00:00
|
|
|
|
}else if(this.wayBillData.dataTimeType == '0'){
|
|
|
|
|
|
// 录单时间
|
2024-06-05 10:17:39 +00:00
|
|
|
|
this.wayBillData.params.beginCreateTime = dateToStr(new Date(this.wayBillData.dateTimeRange[0]));
|
|
|
|
|
|
this.wayBillData.params.endCreateTime = dateToStr(new Date(this.wayBillData.dateTimeRange[1]));
|
2024-05-28 09:00:39 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
this.wayBillData.params.isNeedPack = 1;
|
|
|
|
|
|
listEmisWaybill(this.wayBillData).then(response => {
|
|
|
|
|
|
this.loading2 = false;
|
|
|
|
|
|
if(response.code != 200){
|
|
|
|
|
|
this.$message.error(response.msg);
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
this.emisWayBillList = response.rows;
|
|
|
|
|
|
// this.emisCoPackDetail = response.rows;
|
|
|
|
|
|
console.log(this)
|
|
|
|
|
|
this.wayBillotal = response.total;
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2024-05-28 06:50:43 +00:00
|
|
|
|
onDateSelect(value){
|
|
|
|
|
|
console.log("date picker---->", value)
|
|
|
|
|
|
this.dateTimeRange=value;
|
|
|
|
|
|
},
|
2024-05-28 09:00:39 +00:00
|
|
|
|
onWayBillDateSelect(value){
|
|
|
|
|
|
console.log("date picker---->", value)
|
|
|
|
|
|
this.wayBillData.dateTimeRange=value;
|
|
|
|
|
|
},
|
2024-06-01 12:48:42 +00:00
|
|
|
|
async handleAddCoPack(){
|
2024-06-12 07:43:36 +00:00
|
|
|
|
debugger
|
|
|
|
|
|
console.log(this.coData)
|
2024-06-04 10:59:52 +00:00
|
|
|
|
if(!this.coData.destCountry || !this.coData.sendSiteCode || !this.coData.nextSiteCode || !this.blUnpack){
|
2024-05-29 13:26:21 +00:00
|
|
|
|
this.$modal.msgError("请先选择必填项")
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
if(this.emisCoPackDetail.length == 0){
|
|
|
|
|
|
this.$modal.msgError("请先选择至少一条运单信息")
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
let coPackItem={
|
|
|
|
|
|
packNo: this.coData.packNo,
|
|
|
|
|
|
packName: this.coData.packName || '',
|
|
|
|
|
|
packDate: this.coData.createTime,
|
|
|
|
|
|
destCountry: this.coData.destCountry,
|
2024-05-30 08:24:07 +00:00
|
|
|
|
nextSiteCode: this.coData.nextSiteCode,
|
2024-05-29 13:26:21 +00:00
|
|
|
|
// destCountryName: this.coData.,
|
|
|
|
|
|
blUnpack: this.coData.blUnpack,
|
2024-06-04 10:59:52 +00:00
|
|
|
|
sendSiteCode: this.coData.sendSiteCode,
|
|
|
|
|
|
sendSiteName: this.coData.sendSiteName,
|
2024-05-29 13:26:21 +00:00
|
|
|
|
totalParcelQty: this.coData.totalParcelQty,
|
|
|
|
|
|
totalWaybillQty: this.coData.totalWaybillQty,
|
|
|
|
|
|
totalVolume: this.coData.totalVolume,
|
|
|
|
|
|
totalWeight: this.coData.totalWeight,
|
|
|
|
|
|
// packStatus: this.coData.,
|
|
|
|
|
|
opMan: this.$store.getters.empCode
|
|
|
|
|
|
}
|
2024-05-30 08:24:07 +00:00
|
|
|
|
if(this.coPackType == "add"){// 新增
|
2024-06-05 08:34:26 +00:00
|
|
|
|
let resPack = await getPackNo();
|
|
|
|
|
|
if(!resPack || resPack.code != 200){
|
|
|
|
|
|
this.$message.error(resPack && resPack.msg || "未知错误");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
// this.coData.packNo = resPack.data;
|
|
|
|
|
|
coPackItem.packNo = resPack.data;
|
2024-06-01 12:48:42 +00:00
|
|
|
|
let response = await addEmisTmsPack(coPackItem);
|
|
|
|
|
|
// addEmisTmsPack(coPackItem).then(response => {
|
2024-06-05 08:34:26 +00:00
|
|
|
|
if(!response || response.code != 200){
|
|
|
|
|
|
this.$modal.msgError(response && response.msg || '新增合包失败')
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
2024-06-01 12:48:42 +00:00
|
|
|
|
// })
|
2024-05-30 08:24:07 +00:00
|
|
|
|
for(let i = 0; i< this.emisCoPackDetail.length;i++){
|
|
|
|
|
|
let packDetail = {
|
2024-06-05 08:34:26 +00:00
|
|
|
|
packNo:resPack.data,
|
2024-05-30 08:24:07 +00:00
|
|
|
|
billCode: this.emisCoPackDetail[i].billCode,
|
|
|
|
|
|
scanDate: this.emisCoPackDetail[i].scanDate,
|
|
|
|
|
|
scanStatus: this.emisCoPackDetail[i].scanStatus,
|
2024-06-05 08:34:26 +00:00
|
|
|
|
packStatus: "1",//已合包
|
2024-05-30 08:24:07 +00:00
|
|
|
|
scanMan: this.emisCoPackDetail[i].scanMan,
|
|
|
|
|
|
createBy: this.$store.getters.empCode,
|
|
|
|
|
|
createTime: parseTime(new Date())
|
|
|
|
|
|
};
|
2024-06-01 12:48:42 +00:00
|
|
|
|
let response = await addEmisTmsPackDtl(packDetail);
|
|
|
|
|
|
// addEmisTmsPackDtl(packDetail).then(response => {
|
2024-06-05 08:34:26 +00:00
|
|
|
|
if(!response || response.code != 200){
|
|
|
|
|
|
this.$modal.msgError(response && response.msg || '合包明细新增失败')
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
this.waitPackList=[];
|
2024-06-01 12:48:42 +00:00
|
|
|
|
// })
|
2024-05-30 08:24:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
}else if(this.coPackType == "edit"){// 修改
|
|
|
|
|
|
//第一步:处理合包信息的更新;
|
|
|
|
|
|
if(this.tempCoPackInfo.destCountry != this.coData.destCountry
|
2024-06-04 10:59:52 +00:00
|
|
|
|
|| this.tempCoPackInfo.sendSiteCode != this.coData.sendSiteCode
|
2024-05-30 08:24:07 +00:00
|
|
|
|
|| this.tempCoPackInfo.nextSiteCode != this.coData.nextSiteCode
|
|
|
|
|
|
|| this.tempCoPackInfo.blUnpack != this.blUnpack
|
|
|
|
|
|
|| this.tempCoPackInfo.totalWaybillQty != this.coData.totalWaybillQty
|
2024-06-01 12:48:42 +00:00
|
|
|
|
|| this.tempCoPackInfo.totalParcelQty != this.coData.totalParcelQty
|
2024-05-30 08:24:07 +00:00
|
|
|
|
|| this.tempCoPackInfo.totalWeight != this.coData.totalWeight
|
|
|
|
|
|
|| this.tempCoPackInfo.totalVolume != this.coData.totalVolume
|
|
|
|
|
|
){
|
|
|
|
|
|
this.tempCoPackInfo.destCountry = this.coData.destCountry;
|
2024-06-04 10:59:52 +00:00
|
|
|
|
this.tempCoPackInfo.sendSiteCode = this.coData.sendSiteCode;
|
2024-05-30 08:24:07 +00:00
|
|
|
|
this.tempCoPackInfo.nextSiteCode = this.coData.nextSiteCode;
|
|
|
|
|
|
this.tempCoPackInfo.blUnpack = this.blUnpack;
|
|
|
|
|
|
this.tempCoPackInfo.totalWaybillQty = this.coData.totalWaybillQty;
|
2024-06-01 12:48:42 +00:00
|
|
|
|
this.tempCoPackInfo.totalParcelQty = this.coData.totalParcelQty;
|
2024-05-30 08:24:07 +00:00
|
|
|
|
this.tempCoPackInfo.totalWeight = this.coData.totalWeight;
|
|
|
|
|
|
this.tempCoPackInfo.totalVolume = this.coData.totalVolume;
|
2024-06-01 12:48:42 +00:00
|
|
|
|
let res = await updateEmisTmsPack(this.tempCoPackInfo);
|
|
|
|
|
|
// updateEmisTmsPack(this.tempCoPackInfo).then(res => {
|
2024-05-30 08:24:07 +00:00
|
|
|
|
if(!res || res.code != 200){
|
|
|
|
|
|
this.$modal.msgError(res && res.msg || '未知错误')
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
2024-06-01 12:48:42 +00:00
|
|
|
|
// });
|
2024-05-30 08:24:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
//第二步:处理运单列表的数据
|
|
|
|
|
|
let tempDelList = [];
|
|
|
|
|
|
let tempAddList=[];
|
|
|
|
|
|
//2.1:计算要删除的运单
|
|
|
|
|
|
tempDelList = this.tempExistCoPackWayBillList.filter(item => {
|
|
|
|
|
|
let ls = this.emisCoPackDetail.filter(cd => {
|
|
|
|
|
|
return cd.billCode == item.billCode
|
|
|
|
|
|
})
|
|
|
|
|
|
if(ls.length > 0){
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}else{
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
2024-06-01 12:48:42 +00:00
|
|
|
|
// tempDelList.forEach(item =>{
|
|
|
|
|
|
for(let tdl = 0; tdl < tempDelList.length; tdl++){
|
|
|
|
|
|
let item = tempDelList[tdl];
|
|
|
|
|
|
let res = await delEmisTmsPackDtl(item.id);
|
|
|
|
|
|
// delEmisTmsPackDtl(item.id).then(res => {
|
2024-05-30 08:24:07 +00:00
|
|
|
|
if(!res || res.code != 200){
|
|
|
|
|
|
this.$modal.msgError(res && res.msg || '未知错误')
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
2024-06-01 12:48:42 +00:00
|
|
|
|
// })
|
|
|
|
|
|
}
|
|
|
|
|
|
// })
|
2024-05-30 08:24:07 +00:00
|
|
|
|
//2.2:计算要新增的运单
|
|
|
|
|
|
tempAddList = this.emisCoPackDetail.filter(item => {
|
|
|
|
|
|
let ls = this.tempExistCoPackWayBillList.filter(cd => {
|
|
|
|
|
|
return cd.billCode == item.billCode
|
|
|
|
|
|
})
|
|
|
|
|
|
if(ls.length > 0){
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}else{
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
2024-06-01 12:48:42 +00:00
|
|
|
|
// tempAddList.forEach(item =>{
|
|
|
|
|
|
for(let tal = 0; tal < tempAddList.length; tal++){
|
|
|
|
|
|
let item = tempAddList[tal];
|
2024-05-30 08:24:07 +00:00
|
|
|
|
let packDetail = {
|
|
|
|
|
|
packNo:this.coData.packNo,
|
|
|
|
|
|
billCode: item.billCode,
|
|
|
|
|
|
scanDate: item.scanDate,
|
|
|
|
|
|
scanStatus: item.scanStatus,
|
|
|
|
|
|
packStatus: null,
|
|
|
|
|
|
scanMan: item.scanMan,
|
|
|
|
|
|
createBy: this.$store.getters.empCode,
|
|
|
|
|
|
createTime: parseTime(new Date())
|
|
|
|
|
|
};
|
2024-06-01 12:48:42 +00:00
|
|
|
|
let response = await addEmisTmsPackDtl(packDetail);
|
|
|
|
|
|
// addEmisTmsPackDtl(packDetail).then(response => {
|
2024-05-30 08:24:07 +00:00
|
|
|
|
if(!response || response.code != 200){
|
|
|
|
|
|
this.$modal.msgError(response && response.msg || '合包明细新增失败')
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
2024-06-01 12:48:42 +00:00
|
|
|
|
// })
|
|
|
|
|
|
}
|
|
|
|
|
|
// })
|
2024-05-29 13:26:21 +00:00
|
|
|
|
}
|
|
|
|
|
|
this.openForm= false;
|
|
|
|
|
|
this.titleForm = "";
|
|
|
|
|
|
this.$modal.msgSuccess('操作成功!');
|
2024-06-05 08:34:26 +00:00
|
|
|
|
this.getQuery();
|
2024-05-30 08:24:07 +00:00
|
|
|
|
},
|
|
|
|
|
|
async handleDeleteCoPack(){
|
|
|
|
|
|
let that =this;
|
|
|
|
|
|
for(let i = 0; i< this.ids.length;i++){
|
|
|
|
|
|
let res = await delEmisTmsPack(this.ids[i]);
|
|
|
|
|
|
if(!res || res.code != 200){
|
|
|
|
|
|
that.$modal.msgError(res && res.msg || '合包删除失败')
|
|
|
|
|
|
that.getList();
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
this.$modal.msgSuccess('操作成功');
|
|
|
|
|
|
this.getList();
|
2024-05-29 13:26:21 +00:00
|
|
|
|
},
|
|
|
|
|
|
handleCancelCo(){
|
|
|
|
|
|
this.titleForm='';
|
|
|
|
|
|
this.openForm=false;
|
|
|
|
|
|
this.coData={};
|
|
|
|
|
|
this.blUnpack="1";
|
|
|
|
|
|
this.emisCoPackDetail=[];
|
|
|
|
|
|
},
|
|
|
|
|
|
handleWayBillSelectionChange(selection){
|
|
|
|
|
|
this.tempCoPackList = selection;
|
|
|
|
|
|
this.tempCoPackList.length > 0 ? this.addWayBillDisabled = false : this.addWayBillDisabled = true;
|
|
|
|
|
|
},
|
|
|
|
|
|
handleCoAdd(){
|
|
|
|
|
|
this.tempCoPackList.forEach(item => {
|
|
|
|
|
|
if(this.emisCoPackDetail.filter(wb => wb.billCode == item.billCode).length == 0){
|
|
|
|
|
|
this.emisCoPackDetail.push(item);
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
this.titleWayBill="";
|
|
|
|
|
|
this.openWayBillForm=false;
|
|
|
|
|
|
this.wayBillData = {
|
2024-06-05 08:34:26 +00:00
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 20,
|
2024-05-29 13:26:21 +00:00
|
|
|
|
params:{}
|
|
|
|
|
|
};
|
|
|
|
|
|
this.emisWayBillList=[];
|
|
|
|
|
|
this.tempCoPackList=[];
|
|
|
|
|
|
this.addWayBillDisabled = true;
|
|
|
|
|
|
this.wayBillotal=0;
|
|
|
|
|
|
this.computeTotal();
|
|
|
|
|
|
},
|
|
|
|
|
|
handleCloseWayBill(){
|
|
|
|
|
|
this.titleWayBill="";
|
|
|
|
|
|
this.openWayBillForm=false;
|
|
|
|
|
|
this.wayBillData = {
|
2024-06-05 08:34:26 +00:00
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 20,
|
2024-05-29 13:26:21 +00:00
|
|
|
|
params:{}
|
|
|
|
|
|
};
|
|
|
|
|
|
this.emisWayBillList=[];
|
|
|
|
|
|
this.tempCoPackList=[];
|
|
|
|
|
|
this.addWayBillDisabled = true;
|
|
|
|
|
|
this.wayBillotal=0;
|
|
|
|
|
|
},
|
|
|
|
|
|
handleCoPackListDelete(){
|
|
|
|
|
|
let newList =[];
|
|
|
|
|
|
this.emisCoPackDetail.forEach(item=>{
|
|
|
|
|
|
if(this.coSelection.filter(cs => cs.billCode == item.billCode) == 0){
|
|
|
|
|
|
newList.push(item);
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
this.emisCoPackDetail = newList;
|
|
|
|
|
|
this.computeTotal();
|
|
|
|
|
|
},
|
2024-05-28 06:50:43 +00:00
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
|
handleQuery() {
|
|
|
|
|
|
this.queryParams.pageNum = 1;
|
2024-06-05 08:34:26 +00:00
|
|
|
|
// this.queryParams.pageSize = 20;
|
2024-05-28 06:50:43 +00:00
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
|
resetQuery() {
|
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
|
},
|
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
|
this.ids = selection.map(item => item.id)
|
2024-05-30 08:24:07 +00:00
|
|
|
|
this.selection = selection;
|
2024-05-28 06:50:43 +00:00
|
|
|
|
this.single = selection.length!==1
|
|
|
|
|
|
this.multiple = !selection.length
|
|
|
|
|
|
},
|
2024-05-29 13:26:21 +00:00
|
|
|
|
handleCoPackSelectionChange(selection){
|
|
|
|
|
|
// this.coSelection = selection.map(item => item.id)
|
|
|
|
|
|
this.coSelection = selection;
|
|
|
|
|
|
this.coSingle = selection.length!==1
|
|
|
|
|
|
this.coMultiple = !selection.length
|
|
|
|
|
|
},
|
|
|
|
|
|
computeTotal(){
|
2024-06-01 12:48:42 +00:00
|
|
|
|
let totalParcelQty=0;
|
2024-05-29 13:26:21 +00:00
|
|
|
|
let totalWeight=0;
|
|
|
|
|
|
let totalVolume=0;
|
|
|
|
|
|
this.emisCoPackDetail.forEach(item =>{
|
2024-06-01 12:48:42 +00:00
|
|
|
|
totalParcelQty +=item.parcelQty;
|
|
|
|
|
|
totalWeight +=item.billWeight;
|
2024-05-29 13:26:21 +00:00
|
|
|
|
totalVolume +=item.totalVolume;
|
|
|
|
|
|
item.destCountry = this.coData.destCountry;
|
2024-06-04 10:59:52 +00:00
|
|
|
|
item.sendSiteCode = this.coData.sendSiteCode;
|
2024-05-29 13:26:21 +00:00
|
|
|
|
item.nextSiteCode = this.coData.nextSiteCode;
|
|
|
|
|
|
item.blUnpack = this.blUnpack;
|
|
|
|
|
|
})
|
|
|
|
|
|
this.coData.totalWaybillQty=this.emisCoPackDetail.length;
|
2024-06-01 12:48:42 +00:00
|
|
|
|
this.coData.totalParcelQty=totalParcelQty;
|
2024-05-29 13:26:21 +00:00
|
|
|
|
this.coData.totalWeight=totalWeight;
|
2024-06-03 04:06:42 +00:00
|
|
|
|
this.coData.totalVolume=parseFloat(totalVolume.toFixed(5));
|
2024-05-29 13:26:21 +00:00
|
|
|
|
},
|
2024-05-28 06:50:43 +00:00
|
|
|
|
// 排序 查询字段是表格中字段名字 动态取值排序顺序
|
|
|
|
|
|
handleSortChange(column) {
|
|
|
|
|
|
this.queryParams.orderByColumn = column.prop;
|
|
|
|
|
|
this.queryParams.isAsc = column.order;
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
|
async handleAdd() {
|
2024-05-30 08:24:07 +00:00
|
|
|
|
this.coPackType="add";
|
2024-05-28 06:50:43 +00:00
|
|
|
|
this.coData = {};
|
2024-06-05 08:34:26 +00:00
|
|
|
|
if(this.activeName=="first"){
|
|
|
|
|
|
// 将选中的“待合包”的运单 置为 追加的运单号
|
|
|
|
|
|
for(let p = 0; p < this.waitPackList.length;p++){
|
|
|
|
|
|
this.emisCoPackDetail.push(this.waitPackList[p]);
|
|
|
|
|
|
}
|
2024-05-28 06:50:43 +00:00
|
|
|
|
}
|
2024-06-05 08:34:26 +00:00
|
|
|
|
this.tempExistCoPackWayBillList = [];// 清空临时保存的已有运单号
|
|
|
|
|
|
this.tempCoPackInfo={};
|
2024-05-28 06:50:43 +00:00
|
|
|
|
this.coData.createTime = parseTime(new Date());
|
|
|
|
|
|
this.coData.destCountry = null;
|
|
|
|
|
|
this.coData.destCountryName = null;
|
2024-06-04 10:59:52 +00:00
|
|
|
|
// this.coData.sendSiteCode = null;
|
2024-05-28 06:50:43 +00:00
|
|
|
|
this.coData.nextSiteCode = null;
|
|
|
|
|
|
this.coData.nextStation = null;
|
2024-05-29 13:26:21 +00:00
|
|
|
|
this.blUnpack = "1";
|
2024-06-08 07:20:21 +00:00
|
|
|
|
|
2024-06-04 10:59:52 +00:00
|
|
|
|
this.coData.sendSiteCode = this.$store.getters.ownerSiteCode;
|
|
|
|
|
|
this.coData.sendSiteName=this.$store.getters.ownerSiteName;
|
2024-05-28 06:50:43 +00:00
|
|
|
|
|
2024-06-05 08:34:26 +00:00
|
|
|
|
this.computeTotal();
|
|
|
|
|
|
|
2024-05-28 06:50:43 +00:00
|
|
|
|
this.currentId=null;
|
|
|
|
|
|
this.openForm= true;
|
|
|
|
|
|
this.titleForm = "新增合包";
|
|
|
|
|
|
},
|
2024-05-28 09:00:39 +00:00
|
|
|
|
handleAddWayBill(){
|
|
|
|
|
|
this.openWayBillForm= true;
|
|
|
|
|
|
this.titleWayBill = "运单列表";
|
|
|
|
|
|
},
|
2024-05-28 06:50:43 +00:00
|
|
|
|
handleShowMoreInput(){
|
|
|
|
|
|
this.moreInputVisible = !this.moreInputVisible;
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 修改按钮操作 */
|
2024-05-29 13:26:21 +00:00
|
|
|
|
async handleUpdate(row) {
|
2024-05-30 08:24:07 +00:00
|
|
|
|
this.coPackType="edit";
|
2024-05-29 13:26:21 +00:00
|
|
|
|
let response = await getEmisTmsPack(row.id);
|
|
|
|
|
|
if(!response || response.code != 200){
|
|
|
|
|
|
this.$message.error(response && response.msg || "未知错误");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
let resData = response.data;
|
|
|
|
|
|
this.coData.packNo = resData.packNo;
|
|
|
|
|
|
this.coData.createTime = resData.createTime;
|
|
|
|
|
|
this.coData.destCountry = resData.destCountry;
|
|
|
|
|
|
// this.coData.destCountryName = null;
|
2024-06-04 10:59:52 +00:00
|
|
|
|
this.coData.sendSiteCode = resData.sendSiteCode;
|
2024-06-06 17:04:22 +00:00
|
|
|
|
// this.coData.sendSiteCode = resData.sendSiteName;
|
2024-05-29 13:26:21 +00:00
|
|
|
|
this.coData.nextSiteCode = resData.nextSiteCode;
|
|
|
|
|
|
// this.coData.nextStation = null;
|
|
|
|
|
|
this.blUnpack = resData.blUnpack;
|
|
|
|
|
|
|
|
|
|
|
|
this.emisCoPackDetail=[];
|
|
|
|
|
|
let resList = await listEmisTmsPackDtl({packNo: resData.packNo});
|
|
|
|
|
|
if(!resList || resList.code != 200){
|
|
|
|
|
|
this.$message.error(resList && resList.msg || "未知错误");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
2024-05-30 08:24:07 +00:00
|
|
|
|
this.tempExistCoPackWayBillList = resList.rows;//临时存储,用于运单号校验
|
|
|
|
|
|
this.tempCoPackInfo = resData;
|
2024-05-29 13:26:21 +00:00
|
|
|
|
for(let p = 0; p < resList.rows.length;p++){
|
2024-06-03 04:26:21 +00:00
|
|
|
|
this.emisCoPackDetail.push(resList.rows[p].waybillDetail);
|
2024-05-29 13:26:21 +00:00
|
|
|
|
}
|
2024-06-03 07:28:25 +00:00
|
|
|
|
this.coData.packStatus = this.tempCoPackInfo.packStatus;
|
|
|
|
|
|
this.coData.scanDate = this.tempCoPackInfo.scanDate;
|
2024-05-29 13:26:21 +00:00
|
|
|
|
this.computeTotal();
|
|
|
|
|
|
this.currentId=null;
|
|
|
|
|
|
this.openForm= true;
|
|
|
|
|
|
this.titleForm = "修改合包";
|
2024-05-28 06:50:43 +00:00
|
|
|
|
},
|
|
|
|
|
|
handleView(row) {
|
|
|
|
|
|
this.id=row.id;
|
|
|
|
|
|
this.titleView="查看";
|
|
|
|
|
|
this.openView=true;
|
|
|
|
|
|
// this.router.push({ path: '/emis/emisTmsPack/viewDetail', query: { id: row.id }})
|
|
|
|
|
|
},
|
|
|
|
|
|
handleFormChanged(){
|
|
|
|
|
|
this.openForm = false;
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
cancelForm(){
|
|
|
|
|
|
this.openForm = false;
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 删除按钮操作 */
|
2024-05-30 08:24:07 +00:00
|
|
|
|
CoPack(row) {
|
2024-05-28 06:50:43 +00:00
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
|
|
this.$modal.confirm('是否确认删除').then(function() {
|
|
|
|
|
|
return delEmisTmsPack(ids);
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
|
handleExport() {
|
|
|
|
|
|
// this.download('emis/emisTmsPack/export', {
|
|
|
|
|
|
// ...this.queryParams
|
|
|
|
|
|
// }, `emisTmsPack_${new Date().getTime()}.xlsx`)
|
|
|
|
|
|
const loadingInstance = this.$loading({
|
|
|
|
|
|
text: '正在导出...'
|
|
|
|
|
|
})
|
|
|
|
|
|
var qParam = {...this.queryParams};
|
|
|
|
|
|
qParam.pageNum=1;
|
|
|
|
|
|
qParam.pageSize=5000;
|
|
|
|
|
|
|
|
|
|
|
|
listEmisTmsPack(this.addDateRange(qParam, this.dateTimeRange)).then(response => {
|
|
|
|
|
|
this.downloadLoading = false
|
|
|
|
|
|
if (response.code === 200) {
|
|
|
|
|
|
const curList = response.rows
|
|
|
|
|
|
import('@/vendor/Export2Excel').then(excel => {
|
|
|
|
|
|
const tHeader = ['id','合包号','合包名称','合包时间','目的国家','目的国家名称','是否可拆','发出网点','下一网点','下一站','总件数','总运单数','总体积','总重量','合包状态','扩展数据','操作员','ext1','ext2','ext3','ext4','备注','租户ID','删除标志(0代表存在','创建者','创建时间','更新者','更新时间','创建网点','更新网点',];
|
2024-06-04 10:59:52 +00:00
|
|
|
|
const filterVal = ['id','packNo','packName','packDate','destCountry','destCountryName','blUnpack','sendSiteCode','nextSiteCode','nextStation','totalParcelQty','totalWaybillQty','totalVolume','totalWeight','packStatus','extData','opMan','ext1','ext2','ext3','ext4','remark','tenantId','delFlag','createBy','createTime','updateBy','updateTime','createSite','updateSite',];
|
2024-05-28 06:50:43 +00:00
|
|
|
|
const data = this.formatJson(filterVal, curList, response.rows)
|
|
|
|
|
|
excel.export_json_to_excel({
|
|
|
|
|
|
header: tHeader,
|
|
|
|
|
|
data,
|
|
|
|
|
|
filename: 'TMS合包',
|
|
|
|
|
|
autoWidth: true
|
|
|
|
|
|
})
|
|
|
|
|
|
loadingInstance.close()
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
formatJson(filterVal, jsonData, resData) {
|
|
|
|
|
|
let index = 0
|
|
|
|
|
|
return jsonData.map(v => filterVal.map(j => {
|
|
|
|
|
|
if (j === 'index') {
|
|
|
|
|
|
return ++index
|
|
|
|
|
|
}
|
|
|
|
|
|
if (j === 'status') {
|
|
|
|
|
|
var statusStr='xxx'
|
|
|
|
|
|
if(v[j] == 10){
|
|
|
|
|
|
statusStr='xxx'
|
|
|
|
|
|
}
|
|
|
|
|
|
return statusStr;
|
|
|
|
|
|
}
|
|
|
|
|
|
return v[j]
|
|
|
|
|
|
}))
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 列索引函数 */
|
|
|
|
|
|
getIndex($index) {
|
|
|
|
|
|
return (this.queryParams.pageNum - 1) * this.queryParams.pageSize + $index + 1
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 时间搜索响应函数 */
|
|
|
|
|
|
dateTimeChange(value){
|
|
|
|
|
|
this.dateTimeRange=value;
|
|
|
|
|
|
},
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.el-divider{
|
|
|
|
|
|
margin-top: 0px;
|
|
|
|
|
|
background: 0 0;
|
|
|
|
|
|
border-top: 1px solid #E6EBF5;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-divider__text {
|
|
|
|
|
|
color: #0955ee;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
2024-05-28 09:00:39 +00:00
|
|
|
|
.query-label {
|
|
|
|
|
|
.el-radio{
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
line-height: 23px;
|
|
|
|
|
|
white-space: normal;
|
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-06-05 08:34:26 +00:00
|
|
|
|
.overflowhidden{
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
.ellipsis {
|
|
|
|
|
|
width: 100px;
|
2024-06-03 07:28:25 +00:00
|
|
|
|
overflow: hidden;
|
2024-06-05 08:34:26 +00:00
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
white-space: nowrap;
|
2024-06-03 07:28:25 +00:00
|
|
|
|
}
|
2024-05-28 06:50:43 +00:00
|
|
|
|
</style>
|