add 生成托盘弹窗
This commit is contained in:
@@ -70,6 +70,13 @@
|
||||
@destroy="carReportDialogVisible = false"
|
||||
@refresh-list="getList"
|
||||
:ids="tableSelectedIds" />
|
||||
|
||||
<PalletDialog
|
||||
ref="pallet-dialog"
|
||||
v-if="palletDialogVisible"
|
||||
@destroy="palletDialogVisible = false"
|
||||
@refresh-list="getList"
|
||||
:ids="tableSelectedIds" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -85,6 +92,7 @@ import moment from "moment";
|
||||
import AttachmentDialog from "@/components/attachmentDialog.vue";
|
||||
import PrintDom from "../../components/PrintDom.vue";
|
||||
import ReportDialog from "../../components/ReportDialog.vue";
|
||||
import PalletDialog from "../../components/palletDialog.vue";
|
||||
|
||||
const DIALOG_WITH_MENU = "DialogWithMenu";
|
||||
const DIALOG_JUST_FORM = "DialogJustForm";
|
||||
@@ -103,6 +111,7 @@ export default {
|
||||
AttachmentDialog,
|
||||
PrintDom,
|
||||
ReportDialog,
|
||||
PalletDialog,
|
||||
},
|
||||
props: {
|
||||
navigator: {
|
||||
@@ -192,6 +201,7 @@ export default {
|
||||
printDOMmount: false,
|
||||
queryParams: {},
|
||||
carReportDialogVisible: false,
|
||||
palletDialogVisible: false,
|
||||
};
|
||||
},
|
||||
inject: ["urls"],
|
||||
@@ -713,6 +723,13 @@ export default {
|
||||
});
|
||||
break;
|
||||
case "打印":
|
||||
if (this.tableSelectedIds.length === 0) {
|
||||
return this.$message({
|
||||
message: "请先选择要打印的项",
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
});
|
||||
}
|
||||
return this.$confirm("开始打印么", "提示", {
|
||||
confirmButtonText: "确认",
|
||||
cancelButtonText: "我再想想",
|
||||
@@ -737,6 +754,27 @@ export default {
|
||||
this.$refs["car-report-dialog"].init();
|
||||
});
|
||||
break;
|
||||
case "生成托盘":
|
||||
if (this.tableSelectedIds.length > 1) {
|
||||
return this.$message({
|
||||
message: "只能选择一项",
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
});
|
||||
}
|
||||
// 尾托检测
|
||||
if (this.tableSelectedIds.length == 1 && this.tableSelectedIds[0].typeDictValue != "2") {
|
||||
return this.$message({
|
||||
message: "只能选择尾托",
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
});
|
||||
}
|
||||
this.palletDialogVisible = true;
|
||||
this.$nextTick(() => {
|
||||
this.$refs["pallet-dialog"].init();
|
||||
});
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user