Commit bce0611d authored by 周远喜's avatar 周远喜

Merge branch 'product' of http://git.mes123.com/zhouyx/mes-ui into product

parents 1aa01846 2106285d
...@@ -55,6 +55,8 @@ ...@@ -55,6 +55,8 @@
</div> </div>
</template> </template>
<script> <script>
var myDate = new Date();
var nowDate = myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate();
import Api from "../aps/api"; import Api from "../aps/api";
import Add from "./options"; import Add from "./options";
import Temp from "./temp"; import Temp from "./temp";
...@@ -82,7 +84,7 @@ export default { ...@@ -82,7 +84,7 @@ export default {
}, },
resultModal: false, resultModal: false,
entity: { entity: {
setTime: "", setTime:this.getFormatDate(nowDate)
}, },
editModal: false, editModal: false,
detailModal: false, detailModal: false,
...@@ -501,7 +503,7 @@ export default { ...@@ -501,7 +503,7 @@ export default {
this.$Message.success("排产成功"); this.$Message.success("排产成功");
this.circleModal = false; this.circleModal = false;
this.$router.push({ this.$router.push({
path: "/ai/results", path: "/aps/results",
// params: { customerId: id } // params: { customerId: id }
}); });
} else { } else {
...@@ -527,6 +529,21 @@ export default { ...@@ -527,6 +529,21 @@ export default {
}.bind(this) }.bind(this)
); );
}, },
getFormatDate(dates) {
const d = new Date(dates);
const resDate =
d.getFullYear() +
"-" +
this.p(d.getMonth() + 1) +
"-" +
this.p(d.getDate()) +
" 00:00:01";
return resDate;
},
p(s) {
return s < 10 ? "0" + s : s;
}
}, },
}; };
</script> </script>
......
...@@ -109,6 +109,8 @@ ...@@ -109,6 +109,8 @@
</div> </div>
</template> </template>
<script> <script>
var myDate = new Date();
var nowDate = myDate.getFullYear() + "-" + (myDate.getMonth() + 1) + "-" + myDate.getDate();
import Api from "./api"; import Api from "./api";
import Add from "./options"; import Add from "./options";
import Temp from "./temp"; import Temp from "./temp";
...@@ -136,7 +138,7 @@ export default { ...@@ -136,7 +138,7 @@ export default {
}, },
resultModal: false, resultModal: false,
entity: { entity: {
setTime: "" setTime:this.getFormatDate(nowDate)
}, },
addModal: false, addModal: false,
editModal: false, editModal: false,
...@@ -756,8 +758,22 @@ export default { ...@@ -756,8 +758,22 @@ export default {
}); });
} }
this.insertlModal1 = false; this.insertlModal1 = false;
} },
//插单end //插单end
getFormatDate(dates) {
const d = new Date(dates);
const resDate =
d.getFullYear() +
"-" +
this.p(d.getMonth() + 1) +
"-" +
this.p(d.getDate()) +
" 00:00:01";
return resDate;
},
p(s) {
return s < 10 ? "0" + s : s;
}
} }
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment