fix:日志获取服务器时间
This commit is contained in:
parent
410fb7f34a
commit
805ff13f79
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue