Commit 58fcc385 authored by huhaiqing's avatar huhaiqing

修复问题

parent 6e7df79c
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-dialog :title="dialogCfg.title" :visible.sync="dialogCfg.visible" :width="dialogCfg.width" :fullscreen="dialogCfg.fullscreen" append-to-body class="shippingSea-dialog"> <el-dialog :title="dialogCfg.title" :visible.sync="dialogCfg.visible" :width="dialogCfg.width" :fullscreen="dialogCfg.fullscreen" append-to-body class="shippingSea-dialog" @closed="dialogclosed">
<makeLadingBill v-if="['makeBill','queryBill','resetBill'].includes(dialogCfg.type)" :currData="currData" :currRow="currRow" :dialogCfg="dialogCfg" @closeDialog="closeDialog" :selfNo="shipmentObj.selfNo" /> <makeLadingBill v-if="['makeBill','queryBill','resetBill'].includes(dialogCfg.type)" :currData="currData" :currRow="currRow" :dialogCfg="dialogCfg" @closeDialog="closeDialog" :selfNo="shipmentObj.selfNo" />
<previewBill v-if="dialogCfg.type === 'previewBill'" :contentHtml="currData.billContent" :currRow="currRow" :type="dialogCfg.type" /> <previewBill v-if="dialogCfg.type === 'previewBill'" :contentHtml="currData.billContent" :currRow="currRow" :type="dialogCfg.type" />
</el-dialog> </el-dialog>
...@@ -126,6 +126,7 @@ export default { ...@@ -126,6 +126,7 @@ export default {
}, },
// 模板内容 // 模板内容
billContent: "", billContent: "",
handleType: "",
}; };
}, },
created() { created() {
...@@ -163,7 +164,13 @@ export default { ...@@ -163,7 +164,13 @@ export default {
this.$emit("closeDialog"); this.$emit("closeDialog");
} }
}, },
dialogclosed() {
if (this.handleType === "resetBill") {
this.getBillList();
}
},
handleCommand(type, row) { handleCommand(type, row) {
this.handleType = type;
switch (type) { switch (type) {
case "previewBill": case "previewBill":
this.getBill(row); this.getBill(row);
...@@ -241,7 +248,7 @@ export default { ...@@ -241,7 +248,7 @@ export default {
computed: { computed: {
/* 总计 */ /* 总计 */
getSumData() { getSumData() {
return `${this.billData.totalNum ?? 0}${this.$t('')} ${ return `${this.billData.totalNum ?? 0}${this.$t("")} ${
this.billData.totalVolume ?? 0 this.billData.totalVolume ?? 0
}m³ ${this.billData.totalWeight ?? 0}kg`; }m³ ${this.billData.totalWeight ?? 0}kg`;
}, },
......
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