From 1226500ce7e2c14ce4510306a8ac99fb0a3e6165 Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Mon, 27 May 2024 00:21:19 +0800 Subject: [PATCH] uu --- pages/post/openorder.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pages/post/openorder.vue b/pages/post/openorder.vue index b73f18b..0e8fad1 100644 --- a/pages/post/openorder.vue +++ b/pages/post/openorder.vue @@ -329,6 +329,7 @@ defaultSubParams: '', // 提交默认参数 billCode: '', // 运单id orderSn: '', // 订单id + copyBillCode: '', // 复制的运单id }, kehuRes: { list: [] }, wayRes: { list: [] }, @@ -360,6 +361,7 @@ getPayeeList: apiService.getPayeeList, getSalemanList: apiService.getSalemanList, async initData() { // 初始化 + this.queryOption.billCode = this.queryOption.billCode || this.queryOption.copyBillCode this.isEdit = Boolean(this.queryOption.billCode || this.queryOption.orderSn) if(this.queryOption.defaultSubParams) { try{ @@ -374,6 +376,11 @@ let data = res.data || {} data.goodsPics = (data.goodsPics && data.goodsPics.split(",")) || [] this.submitParam = res.data + // 复制场景 清除billCode orderSn + if(this.queryOption.copyBillCode) { + delete this.submitParam.billCode + delete this.submitParam.orderSn + } } this.pageLoading = false },