Commit 11f534d5 authored by huhaiqing's avatar huhaiqing

海运缺陷单修复

parent a8b17a4a
This diff is collapsed.
...@@ -192,6 +192,7 @@ export default { ...@@ -192,6 +192,7 @@ export default {
} }
this.currRow = row; this.currRow = row;
this.$set(this.dialogCfg, "type", type); this.$set(this.dialogCfg, "type", type);
this.$set(this.dialogCfg, "width", "750px");
this.$set(this.dialogCfg, "visible", true); this.$set(this.dialogCfg, "visible", true);
}, },
makeBill(row) { makeBill(row) {
...@@ -201,11 +202,10 @@ export default { ...@@ -201,11 +202,10 @@ export default {
}).then((res) => { }).then((res) => {
const { data } = res; const { data } = res;
const { titleZh = "", contentZh = "" } = data?.ladingTemplate ?? {}; const { titleZh = "", contentZh = "" } = data?.ladingTemplate ?? {};
let billContent = `${titleZh}${data.orderInfo}${contentZh}`, let billContent = `${titleZh}${data.orderInfo}${contentZh}`;
orderNo = data.orderInfo?.orderNo ?? "";
this.currData = { this.currData = {
billContent, billContent,
orderNo, orderNo: this.currRow.orderNo,
}; };
}); });
}, },
......
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
<el-row> <el-row>
<div class="title-orderNo">订单号:{{orderNo}}</div> <div class="title-orderNo">订单号:{{orderNo}}</div>
</el-row> </el-row>
<vue-ueditor-wrap v-model="billContent" :config="editorConfig" editor-id="billUeditor" /> <el-row class="ueditor-row">
<vue-ueditor-wrap v-model="billContent" :config="editorConfig" editor-id="billUeditor" style="max-width: 690px;" />
</el-row>
<!-- 审核流程 --> <!-- 审核流程 -->
<el-row class="process-area"> <el-row class="process-area">
...@@ -22,7 +24,7 @@ ...@@ -22,7 +24,7 @@
</div> </div>
</el-row> </el-row>
<el-dialog :title="dialogCfg.title" :visible.sync="visible" width="80%" append-to-body class="shippingSea-dialog"> <el-dialog :title="dialogCfg.title" :visible.sync="visible" width="850px" append-to-body class="shippingSea-dialog">
<previewBill v-if="visible" :contentHtml="billContent" :currRow="currRow" :type="dialogCfg.type" /> <previewBill v-if="visible" :contentHtml="billContent" :currRow="currRow" :type="dialogCfg.type" />
</el-dialog> </el-dialog>
</el-row> </el-row>
...@@ -234,5 +236,9 @@ export default { ...@@ -234,5 +236,9 @@ export default {
text-align: center; text-align: center;
} }
} }
.ueditor-row {
display: flex;
justify-content: center;
}
} }
</style> </style>
<template> <template>
<el-row> <el-row>
<div v-html="contentHtml"></div> <div v-html="contentHtml" class="contentHtml"></div>
<el-row v-if="currRow.status === 2 && type === 'previewBill'" style="text-align: center;"> <el-row v-if="currRow.status === 2 && type === 'previewBill'" style="text-align: center;">
<el-button type="primary" @click="download">下载</el-button> <el-button type="primary" @click="download">下载</el-button>
<el-button type="primary" @click="print">打印</el-button> <el-button type="primary" @click="print">打印</el-button>
...@@ -55,6 +55,11 @@ export default { ...@@ -55,6 +55,11 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .contentHtml {
> table {
width: 96% !important;
margin-left: 2%;
}
}
</style> </style>
...@@ -318,22 +318,18 @@ export default { ...@@ -318,22 +318,18 @@ export default {
}, },
/* 打开拆单 */ /* 打开拆单 */
getSplit() { getSplit() {
this.querySplitGoods().then((res) => { if (this.currRow.goodsList && this.currRow.goodsList.length) {
if (res) { const [orderItem] = this.currRow.goodsList;
if (this.currRow.goodsList && this.currRow.goodsList.length) { createSplit({
const [orderItem] = this.currRow.goodsList; parentOrderId: this.currRow.orderId,
createSplit({ parentOrderNo: this.currRow.orderNo,
parentOrderId: this.currRow.orderId, dstWarehouseId: orderItem.destWarehouseId,
parentOrderNo: this.currRow.orderNo, transportId: orderItem.transportId,
dstWarehouseId: orderItem.destWarehouseId, shipmentType: 1,
transportId: orderItem.transportId, }).then((res) => {
shipmentType: 1, this.querySplitGoods();
}).then((res) => { });
this.querySplitGoods(); }
});
}
}
});
}, },
/* 查询拆单项 */ /* 查询拆单项 */
querySplitGoods() { querySplitGoods() {
...@@ -389,8 +385,14 @@ export default { ...@@ -389,8 +385,14 @@ export default {
leviteSum, leviteSum,
column.warehouseInInfoVO?.cartonsNum ?? 0 column.warehouseInInfoVO?.cartonsNum ?? 0
).toNumber(); ).toNumber();
leviteV += Decimal.add(leviteV, column.warehouseInInfoVO?.volume ?? 0).toFixed(2); leviteV += Decimal.add(
leviteW += Decimal.add(leviteW, column.warehouseInInfoVO?.weight ?? 0).toFixed(2); leviteV,
column.warehouseInInfoVO?.volume ?? 0
).toFixed(2);
leviteW += Decimal.add(
leviteW,
column.warehouseInInfoVO?.weight ?? 0
).toFixed(2);
}); });
sums[1] = sums[1] =
"下单统计:" + "下单统计:" +
...@@ -460,7 +462,10 @@ export default { ...@@ -460,7 +462,10 @@ export default {
if (valid) { if (valid) {
// 输入箱数大于实装箱数 // 输入箱数大于实装箱数
const total = this.totalSplitNum(); const total = this.totalSplitNum();
const canSplitNum = Decimal.sub(this.currRow.num, this.currRow.installNum).toNumber(); const canSplitNum = Decimal.sub(
this.currRow.num,
this.currRow.installNum
).toNumber();
const remain = Decimal.sub(canSplitNum, total).toNumber(); const remain = Decimal.sub(canSplitNum, total).toNumber();
if (this.shopForm.num > remain) { if (this.shopForm.num > remain) {
this.$message.error("放入箱数不能大于总箱数"); this.$message.error("放入箱数不能大于总箱数");
......
...@@ -545,7 +545,7 @@ export default { ...@@ -545,7 +545,7 @@ export default {
}, },
/* 是否显示拆单 */ /* 是否显示拆单 */
isShowSplitOrder(row) { isShowSplitOrder(row) {
if (row.num > row.installNum) { if (row.num > row.installNum && row.installNum !== 0) {
return true; return true;
} }
return false; return false;
......
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