Commit 07269986 authored by huhaiqing's avatar huhaiqing

修改缺陷单

parent 8289eb3b
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-row style="text-align:left;"> <el-row style="text-align:left;">
<el-row> <el-row>
<span>{{$t('规格')}}{{scope.row.boxGauge}}</span> <span>{{$t('规格')}}{{scope.row.warehouseInInfoVO ? scope.row.warehouseInInfoVO.boxGauge : ''}}</span>
</el-row> </el-row>
<el-row> <el-row>
<span>{{$t('品牌')}} <span>{{$t('品牌')}}
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<span style="margin-left: 10px;">{{$t('重量')}}{{scope.row.warehouseInInfoVO ? scope.row.warehouseInInfoVO.weight : 0 }}kg</span> <span style="margin-left: 10px;">{{$t('重量')}}{{scope.row.warehouseInInfoVO ? scope.row.warehouseInInfoVO.weight : 0 }}kg</span>
</el-row> </el-row>
<el-row> <el-row>
<span>{{$t('计划装柜:无返回')}}</span> <span>{{$t('计划装柜')}}{{planCabinet}}</span>
</el-row> </el-row>
</el-row> </el-row>
</template> </template>
...@@ -237,6 +237,7 @@ import { getOrder } from "@/api/ecw/order"; ...@@ -237,6 +237,7 @@ import { getOrder } from "@/api/ecw/order";
import { serviceMsg, toReviewDetail } from "../../utils"; import { serviceMsg, toReviewDetail } from "../../utils";
import { createApproval, approvalCancel, splitList } from "@/api/ecw/boxSea"; import { createApproval, approvalCancel, splitList } from "@/api/ecw/boxSea";
import Decimal from "decimal.js"; import Decimal from "decimal.js";
import { getUnitList } from "@/api/ecw/unit";
export default { export default {
name: "splitOrder", name: "splitOrder",
...@@ -281,15 +282,21 @@ export default { ...@@ -281,15 +282,21 @@ export default {
orderId: 0, orderId: 0,
lang: 0, lang: 0,
}, },
units: [],
}; };
}, },
created() { created() {
const { shipmentObj } = this.$attrs; const { shipmentObj } = this.$attrs;
this.planCabinet =`${shipmentObj.selfNo}-${this.currRow.sectionName}` this.planCabinet = `${shipmentObj.selfNo}-${this.currRow.sectionName}`;
getTradeCityList().then((res) => (this.tradeCityList = res.data)); getTradeCityList().then((res) => (this.tradeCityList = res.data));
this.queryParams.orderId = this.currRow.orderId; this.queryParams.orderId = this.currRow.orderId;
this.getOrderDetail(); this.getOrderDetail();
this.getSplit(); this.getSplit();
// 获取单位
getUnitList().then((res) => {
const { data } = res;
this.units = data ?? [];
});
}, },
watch: { watch: {
//监听table这个对象 //监听table这个对象
...@@ -408,7 +415,7 @@ export default { ...@@ -408,7 +415,7 @@ export default {
).toFixed(2); ).toFixed(2);
}); });
sums[1] = this.$t( sums[1] = this.$t(
"下单统计:{orderSum} 箱 {orderV)m³ {orderW}kg 入仓统计:{leviteSum} 箱 {leviteV)m³ {leviteW}kg", "下单统计:{orderSum} 箱 {orderV} m³ {orderW} kg 入仓统计:{leviteSum} 箱 {leviteV} m³ {leviteW} kg",
{ {
orderSum, orderSum,
orderV, orderV,
...@@ -418,7 +425,6 @@ export default { ...@@ -418,7 +425,6 @@ export default {
leviteW, leviteW,
} }
); );
return sums; return sums;
}, },
importCityName(id) { importCityName(id) {
......
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