diff --git a/src/views/mtm/route_form.vue b/src/views/mtm/route_form.vue index 511e60d2..a572433b 100644 --- a/src/views/mtm/route_form.vue +++ b/src/views/mtm/route_form.vue @@ -320,6 +320,7 @@ const defaultForm = { }; export default { props: { + count: { type: Number, default : 0 }, routepack: { type: String, default: "" }, }, emits: ["success", "closed"], @@ -455,8 +456,14 @@ export default { }, //显示 open(mode = "add") { - this.mode = mode; - this.visible = true; + let that = this; + that.mode = mode; + that.visible = true; + that.$nextTick(() => { + if(that.count){ + that.form.sort = that.count+1; + } + }) return this; }, //表单注入数据 diff --git a/src/views/mtm/routepack_form.vue b/src/views/mtm/routepack_form.vue index 0ab253cf..28c61383 100644 --- a/src/views/mtm/routepack_form.vue +++ b/src/views/mtm/routepack_form.vue @@ -185,6 +185,7 @@ { this.$refs.saveDialog.open("add"); diff --git a/src/views/statistics/bxerp/maopiTotal.vue b/src/views/statistics/bxerp/maopiTotal.vue index 42076777..c4869c56 100644 --- a/src/views/statistics/bxerp/maopiTotal.vue +++ b/src/views/statistics/bxerp/maopiTotal.vue @@ -28,8 +28,12 @@ id="exportDiv" stripe > - - + + + +