From 2f192f41073da2b82a2a2c5bdea483eaecf3e195 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 21 Jan 2026 15:51:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A6=85=E9=81=93321?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/handover_form.vue | 18 +++++++++++++++--- src/views/wpm_bx/inmIn.vue | 1 + 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue index cf144842..d14f92cc 100644 --- a/src/views/wpm_bx/handover_form.vue +++ b/src/views/wpm_bx/handover_form.vue @@ -270,6 +270,10 @@ export default { type: String, default: "", }, + route:{ + type: String, + default: "", + }, }, components: { scanDialog @@ -387,14 +391,14 @@ export default { }, mounted() { let that = this; + let arr = that.$route.path.split("/"); + that.route_code = arr[2]; that.form.type = that.type; if(that.type==50){ that.mtype=30; that.change_batch = true; } that.form.recive_mgroup = ""; - let arr = that.$route.path.split("/"); - that.route_code = arr[2]; let materialObj = that.$TOOL.data.get("MATERIAL_OBJECT"); that.materialObj = materialObj; that.form.handle_date =that.form.send_date =this.$TOOL.dateFormat2(new Date()); @@ -409,10 +413,18 @@ export default { that.form.material_changed_fname = that.wmItem.material_name; } that.$nextTick(()=>{ - console.log('that.type',that.type,'that.mtype',that.mtype) if(that.type==20||that.type==50||(that.type==10&&that.mtype==30)||(that.mtype==30&&that.new_wm!=='')){ that.form.recive_mgroup = that.mgroupId; } + if(that.route_code=='shangpaipingmo'&&that.mtype==30&&that.new_wm==''&&that.route!=''){ + let date = new Date(); + let year = date.getFullYear(); + let month = date.getMonth()+1; + month = month>9?month:'0'+month; + let day = date.getDate(); + day = day>9?day:'0'+day; + that.form.new_batch = 'HP'+year+month+day; + } }) // type=10 正常交接 物料都可交接,接收工段有限制 // type=20 返工交接 不合格品交接,接收工段为该工艺流程中的工段 diff --git a/src/views/wpm_bx/inmIn.vue b/src/views/wpm_bx/inmIn.vue index 2dfdaa2e..2538396e 100644 --- a/src/views/wpm_bx/inmIn.vue +++ b/src/views/wpm_bx/inmIn.vue @@ -258,6 +258,7 @@