Commit ca68d602 authored by Marcus's avatar Marcus

Merge remote-tracking branch 'origin/predev' into predev

parents 6e9a2d06 44bc0a7e
...@@ -244,6 +244,7 @@ ...@@ -244,6 +244,7 @@
import dayjs from "dayjs"; import dayjs from "dayjs";
import supplementOrder from "./supplementOrder.vue"; import supplementOrder from "./supplementOrder.vue";
import { getCabinetPage } from "@/api/ecw/cabinet"; import { getCabinetPage } from "@/api/ecw/cabinet";
import { getbox } from "@/api/ecw/box";
import { import {
loadSecGoodsList, loadSecGoodsList,
orderTagList, orderTagList,
...@@ -333,6 +334,7 @@ export default { ...@@ -333,6 +334,7 @@ export default {
selectedUsers: [], selectedUsers: [],
// 订单信息 // 订单信息
boxOrderInfo: {}, boxOrderInfo: {},
newshipmentObj: {}
}; };
}, },
created() { created() {
...@@ -341,9 +343,16 @@ export default { ...@@ -341,9 +343,16 @@ export default {
getCabinetPage(null).then((response) => { getCabinetPage(null).then((response) => {
this.cabinetList = response.data.list; this.cabinetList = response.data.list;
}); });
this.getBoxInfo()
}, },
methods: { methods: {
getTotlContent, getTotlContent,
getBoxInfo() {
getbox(this.shipmentObj.id).then((res) => {
const { data } = res;
this.newshipmentObj = data ?? {};
});
},
/* 装柜部分列表 */ /* 装柜部分列表 */
getLoadSecGoodsList() { getLoadSecGoodsList() {
loadSecGoodsList({ shipmentId: this.shipmentObj.id }).then((res) => { loadSecGoodsList({ shipmentId: this.shipmentObj.id }).then((res) => {
...@@ -419,7 +428,8 @@ export default { ...@@ -419,7 +428,8 @@ export default {
case "modifyCabinet": case "modifyCabinet":
this.$set(this.dialogConfig, "fullscreen", false); this.$set(this.dialogConfig, "fullscreen", false);
this.modifyCabinetObj = {}; this.modifyCabinetObj = {};
this.$set(this.modifyCabinetObj,'cabinetId',this.shipmentObj.cabinetId) this.$set(this.modifyCabinetObj,'cabinetId',this.newshipmentObj.cabinetId)
this.$set(this.modifyCabinetObj,'cubNo',this.newshipmentObj.cubNo)
break; break;
case "splitOrder": case "splitOrder":
this.$set(this.dialogConfig, "fullscreen", true); this.$set(this.dialogConfig, "fullscreen", true);
...@@ -535,6 +545,7 @@ export default { ...@@ -535,6 +545,7 @@ export default {
}; };
boxUpdate(params).then((res) => { boxUpdate(params).then((res) => {
serviceMsg(res, this); serviceMsg(res, this);
this.getBoxInfo()
this.closeDialog2(); this.closeDialog2();
}); });
}, },
......
...@@ -73,7 +73,11 @@ ...@@ -73,7 +73,11 @@
<el-table-column :label="$t('重量')" align="center" prop="warehouseInInfo.weight"> <el-table-column :label="$t('重量')" align="center" prop="warehouseInInfo.weight">
</el-table-column> </el-table-column>
<el-table-column :label="$t('数量(个)')" align="center" prop="quantity"></el-table-column> <el-table-column :label="$t('数量(个)')" align="center" prop="quantity"></el-table-column>
<el-table-column :label="$t('储位')" align="center" prop="positionNo" width="250px"></el-table-column> <el-table-column :label="$t('储位')" align="center" prop="positionNo" width="250px">
<template slot-scope="scope">
{{notset(scope.row.positionNo)}}
</template>
</el-table-column>
<el-table-column :label="$t('状态')" align="center" prop="tallyStatus"> <el-table-column :label="$t('状态')" align="center" prop="tallyStatus">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.tallyStatus === 1 ? $t('已理货') : $t('未理货')}} {{scope.row.tallyStatus === 1 ? $t('已理货') : $t('未理货')}}
...@@ -150,6 +154,13 @@ export default { ...@@ -150,6 +154,13 @@ export default {
methods: { methods: {
// 格式化日期 // 格式化日期
formatDate, formatDate,
//去重
notset(string){
if(!string) return string
let arr = string.split(',')
arr = arr.filter((item,index)=>{return arr.indexOf(item)==index})
return arr.toString()
},
// 查询理货列表 // 查询理货列表
getList() { getList() {
getTallyList({ shipmentId: this.shipmentObj.id }).then((res) => { getTallyList({ shipmentId: this.shipmentObj.id }).then((res) => {
......
...@@ -214,6 +214,7 @@ export default { ...@@ -214,6 +214,7 @@ export default {
fuhao: undefined, fuhao: undefined,
status: undefined, status: undefined,
huilv: undefined, huilv: undefined,
exchangeToFc: undefined,
aorder: undefined, aorder: undefined,
createAt: undefined, createAt: undefined,
updateAt: undefined, updateAt: undefined,
......
...@@ -152,15 +152,15 @@ export default { ...@@ -152,15 +152,15 @@ export default {
if(!valid){ if(!valid){
return false return false
} }
// 放货箱数不能大于总控货箱数 // 放货箱数不能大于可放货箱数
let errNos = [] let errNos = []
this.selectedOrders.forEach(item => { this.selectedOrders.forEach(item => {
if(item.releaseNum > item.sumNum){ if(item.releaseNum > item.sumNum - item.releaseNum){
errNos.push(item.orderNo) errNos.push(item.orderNo)
} }
}) })
if(errNos.length){ if(errNos.length){
return this.$message.error(this.$t("订单{no}的放货箱数不能大于货箱数", {no: errNos.join(",")})) return this.$message.error(this.$t("订单{no}的放货箱数不能大于可放货箱数", {no: errNos.join(",")}))
} }
updateApply(Object.assign({ updateApply(Object.assign({
cargoControlPickId: this.cargoControlPickId, cargoControlPickId: this.cargoControlPickId,
......
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
</template> </template>
<!-- 合单,拆单 --> <!-- 合单,拆单 -->
<template v-if=" (scope.row.status < 12 || (scope.row.status == 12 && scope.row.shipmentState == 314)) && !scope.row.abnormalState && scope.row.status > 3 && exclude(scope.row.inWarehouseState, [204,205,206])"> <template v-if=" (scope.row.status < 12 || (scope.row.status == 12 && scope.row.shipmentState == 314)) && !scope.row.abnormalState && scope.row.status > 3 && exclude(scope.row.inWarehouseState, [204,205,206,212,213])">
<el-dropdown-item @click.native="$router.push(`/order/singleApply?orderNo=${scope.row.orderNo}`)" v-hasPermi="['ecw:order:merge']">{{$t('合单申请')}}</el-dropdown-item> <el-dropdown-item @click.native="$router.push(`/order/singleApply?orderNo=${scope.row.orderNo}`)" v-hasPermi="['ecw:order:merge']">{{$t('合单申请')}}</el-dropdown-item>
<el-dropdown-item @click.native="$router.push(`/order/splitApply?orderId=${scope.row.orderId}`)" v-hasPermi="['ecw:order:split']">{{$t('拆单申请')}}</el-dropdown-item> <el-dropdown-item @click.native="$router.push(`/order/splitApply?orderId=${scope.row.orderId}`)" v-hasPermi="['ecw:order:split']">{{$t('拆单申请')}}</el-dropdown-item>
</template> </template>
...@@ -347,7 +347,7 @@ ...@@ -347,7 +347,7 @@
</template> </template>
<!-- 入仓补充 --> <!-- 入仓补充 -->
<template v-if=" <template v-if="
include(scope.row.inWarehouseState, [201,202, 202, 210, 202, 211, 202, 213, 214, 215, 216]) && include(scope.row.inWarehouseState, [201,202, 202, 210, 202, 211, 202, 214, 215, 216]) &&
scope.row.abnormalState != 1 && scope.row.abnormalState != 1 &&
include(scope.row.status, [2,3,5,10,9,8]) include(scope.row.status, [2,3,5,10,9,8])
"> ">
...@@ -356,7 +356,7 @@ ...@@ -356,7 +356,7 @@
<!-- 入仓修改 --> <!-- 入仓修改 -->
<template v-if=" <template v-if="
( (
include(scope.row.inWarehouseState, [201, 202, 207, 202, 209, 210, 202, 211, 212, 202, 213, 214, 215, 216, 204, 205]) && include(scope.row.inWarehouseState, [201, 202, 207, 202, 209, 210, 202, 211, 202, 214, 215, 216, 204, 205]) &&
scope.row.status != 11 && exclude(scope.row.shipmentState, [314,315,317,318]) scope.row.status != 11 && exclude(scope.row.shipmentState, [314,315,317,318])
) )
"> ">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment