diff --git a/src/views/wpm_bx/mlog_form.vue b/src/views/wpm_bx/mlog_form.vue index 86da8997..2420e74b 100644 --- a/src/views/wpm_bx/mlog_form.vue +++ b/src/views/wpm_bx/mlog_form.vue @@ -322,7 +322,12 @@ export default { mounted() { let that = this; this.route_code = this.$route.path.split("/")[2]; - this.form.work_start_time = this.$TOOL.dateFormat(new Date()); + // this.form.work_start_time = this.$TOOL.dateFormat(new Date()); + if(that.mode=='add'){ + that.$API.ops.server_time.get.req().then((res) => { + that.form.work_start_time = res.server_time; + }) + } this.getRoute(); this.getSupplier(); this.getEquipment(); diff --git a/src/views/wpm_bx/mlog_form2.vue b/src/views/wpm_bx/mlog_form2.vue index 5ee95fa5..e363489e 100644 --- a/src/views/wpm_bx/mlog_form2.vue +++ b/src/views/wpm_bx/mlog_form2.vue @@ -250,7 +250,7 @@ export default { let that = this; this.route_code = this.$route.path.split("/")[2]; this.form.handle_date = this.$TOOL.dateFormat2(new Date()); - this.form.work_start_time = this.$TOOL.dateFormat(new Date()); + // this.form.work_start_time = this.$TOOL.dateFormat(new Date()); this.form.mgroup = this.mgroup; this.getMaterial(); this.getRoute(); @@ -259,6 +259,11 @@ export default { if(that.route_code=='tuomoceliang'){ //获取指定工序的切分数量 } + if(that.mode=='add'){ + that.$API.ops.server_time.get.req().then((res) => { + that.form.work_start_time = res.server_time; + }) + } setTimeout(()=>{ let inputDom = document.querySelectorAll('.inputWrap .el-input__wrapper .el-input__inner'); inputDom.forEach(function(input) {