|
|
|
@ -578,6 +578,7 @@ import {
|
|
|
|
|
handleTranslationDataSeclect, |
|
|
|
|
computeNumber, |
|
|
|
|
getObjType, |
|
|
|
|
ChecksWhetherTheWarehouseIsSelected, |
|
|
|
|
} from '@/utils/util'; |
|
|
|
|
import { columnList } from '@/option/distribution/VehicleArrivalManagement'; |
|
|
|
|
import { packageColumnList } from '@/option/distribution/VehicleStowage'; |
|
|
|
@ -970,6 +971,9 @@ const handleShowComparativeStatement = () => {
|
|
|
|
|
|
|
|
|
|
/** 到车 */ |
|
|
|
|
const handleArrive = async () => { |
|
|
|
|
if (!ChecksWhetherTheWarehouseIsSelected()) |
|
|
|
|
return ElMessage.warning('多仓权限无法操作,请选择仓库'); |
|
|
|
|
|
|
|
|
|
if (details.selectionList.length == 0) return ElMessage.warning('请选择需要到车的数据'); |
|
|
|
|
|
|
|
|
|
ElMessageBox.confirm('确认到车?', '提示', { |
|
|
|
@ -1005,6 +1009,9 @@ const handleArrive = async () => {
|
|
|
|
|
|
|
|
|
|
/** 取消到车 */ |
|
|
|
|
const handleCloseArrive = async () => { |
|
|
|
|
if (!ChecksWhetherTheWarehouseIsSelected()) |
|
|
|
|
return ElMessage.warning('多仓权限无法操作,请选择仓库'); |
|
|
|
|
|
|
|
|
|
ElMessageBox.confirm('确认取消到车?', '提示', { |
|
|
|
|
confirmButtonText: '确认', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
@ -1038,6 +1045,9 @@ const handleCloseArrive = async () => {
|
|
|
|
|
|
|
|
|
|
/** 编辑配载信息 */ |
|
|
|
|
const handleEditStowage = ({ row }) => { |
|
|
|
|
if (!ChecksWhetherTheWarehouseIsSelected()) |
|
|
|
|
return ElMessage.warning('多仓权限无法操作,请选择仓库'); |
|
|
|
|
|
|
|
|
|
$store.commit('DEL_ONCE_TAG', '/distribution/artery/AddVehicleStowage'); |
|
|
|
|
|
|
|
|
|
$router.push({ |
|
|
|
@ -1103,6 +1113,9 @@ const init = async item => {
|
|
|
|
|
|
|
|
|
|
/** 发车 */ |
|
|
|
|
const handleStartCar = async () => { |
|
|
|
|
if (!ChecksWhetherTheWarehouseIsSelected()) |
|
|
|
|
return ElMessage.warning('多仓权限无法操作,请选择仓库'); |
|
|
|
|
|
|
|
|
|
if (details.selectionList.length === 0) { |
|
|
|
|
return ElMessage({ |
|
|
|
|
message: '请选择发车数据', |
|
|
|
@ -1179,6 +1192,9 @@ const handleStartCar = async () => {
|
|
|
|
|
|
|
|
|
|
/** 取消发车 */ |
|
|
|
|
const handleEndCar = async () => { |
|
|
|
|
if (!ChecksWhetherTheWarehouseIsSelected()) |
|
|
|
|
return ElMessage.warning('多仓权限无法操作,请选择仓库'); |
|
|
|
|
|
|
|
|
|
if (details.selectionList.length === 0) { |
|
|
|
|
return ElMessage({ |
|
|
|
|
message: '请选择发车数据', |
|
|
|
@ -1316,6 +1332,9 @@ const packageInputsc = (value, row) => {
|
|
|
|
|
|
|
|
|
|
/** 卸车确认 */ |
|
|
|
|
const handleUnloadByLoadId = (type: 1 | 2) => { |
|
|
|
|
if (!ChecksWhetherTheWarehouseIsSelected()) |
|
|
|
|
return ElMessage.warning('多仓权限无法操作,请选择仓库'); |
|
|
|
|
|
|
|
|
|
if (details.selectionList.length === 0) return ElMessage.warning('请选择需要卸车的数据'); |
|
|
|
|
if (details.selectionList.length > 1) return ElMessage.warning('只支持单条数据操作'); |
|
|
|
|
|
|
|
|
@ -1374,6 +1393,9 @@ const handleShowListOfLoadedWagons = async () => {
|
|
|
|
|
|
|
|
|
|
/** 手动装车 */ |
|
|
|
|
const handleManualLoading = ({ row }) => { |
|
|
|
|
if (!ChecksWhetherTheWarehouseIsSelected()) |
|
|
|
|
return ElMessage.warning('多仓权限无法操作,请选择仓库'); |
|
|
|
|
|
|
|
|
|
console.log('row :>> ', row); |
|
|
|
|
ElMessageBox.confirm(`是否进行手动装车?`) |
|
|
|
|
.then(async () => { |
|
|
|
@ -1419,6 +1441,9 @@ const handleShowUnloadReport = async () => {
|
|
|
|
|
|
|
|
|
|
/** 节点费用 */ |
|
|
|
|
const handleNodeCost = ({ row }) => { |
|
|
|
|
if (!ChecksWhetherTheWarehouseIsSelected()) |
|
|
|
|
return ElMessage.warning('多仓权限无法操作,请选择仓库'); |
|
|
|
|
|
|
|
|
|
$store.commit('DEL_ONCE_TAG', '/distribution/artery/AddVehicleStowage'); |
|
|
|
|
|
|
|
|
|
$router.push({ |
|
|
|
@ -1429,6 +1454,9 @@ const handleNodeCost = ({ row }) => {
|
|
|
|
|
|
|
|
|
|
/** 配置直发商家弹窗显示 */ |
|
|
|
|
const handleDirectGoMarketVesited = ({ row }) => { |
|
|
|
|
if (!ChecksWhetherTheWarehouseIsSelected()) |
|
|
|
|
return ElMessage.warning('多仓权限无法操作,请选择仓库'); |
|
|
|
|
|
|
|
|
|
$router.push({ |
|
|
|
|
path: '/distribution/artery/directGoMarket', |
|
|
|
|
query: { |
|
|
|
|