diff --git a/src/views/wpm_gx/handover_form.vue b/src/views/wpm_gx/handover_form.vue index ea4b1eb6..ddc267ea 100644 --- a/src/views/wpm_gx/handover_form.vue +++ b/src/views/wpm_gx/handover_form.vue @@ -301,13 +301,7 @@ export default { that.form.type = that.type; let materialObj = that.$TOOL.data.get("MATERIAL_OBJECT"); that.materialObj = materialObj; - let date = new Date(); - let year = date.getFullYear(); - let month = date.getMonth() + 1; - let day = date.getDate(); - month = month>9?month:'0'+month; - day = day>9?day:'0'+day; - that.form.handle_date = that.form.send_date = year + "-" + month + "-" + day; + that.form.handle_date = that.form.send_date = this.$TOOL.dateFormat2(new Date()); that.form.send_mgroup = that.mgroupId; //type 10:正常交接 ;20:返工交接 ;40:报废交接 //mtype 10:正常交接 ;20:分批操作 ;30:合批操作