Commit 48a82e92 authored by 仇晓婷's avatar 仇晓婷

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

parents c99eb020 bce0611d
This diff is collapsed.
...@@ -42,7 +42,6 @@ export default { ...@@ -42,7 +42,6 @@ export default {
}, },
methods: { methods: {
change(v) { change(v) {
// console.log(event)
this.name = v; this.name = v;
var item; var item;
var items = this.data.filter(u => { var items = this.data.filter(u => {
...@@ -52,7 +51,6 @@ export default { ...@@ -52,7 +51,6 @@ export default {
item = items[0]; item = items[0];
} }
this.$emit("on-change", v, item); this.$emit("on-change", v, item);
// this.$emit("on-change", event);
}, },
getTitle() { getTitle() {
var title = ""; var title = "";
......
...@@ -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>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<div v-if="items.length>0" class="fg list_box" v-for="(li,a) in items" :class="a%2 == 1?'dip_bg':''" :key="a"> <div v-if="items.length>0" class="fg list_box" v-for="(li,a) in items" :class="a%2 == 1?'dip_bg':''" :key="a">
<ul class="right_ul"> <ul class="right_ul">
<li class="right_ul_title"> <li class="right_ul_title">
<span class="case">方案一{{a}}</span> <span class="case">{{li.scheduleId}}</span>
<span class="case_time">2020-03-22 13:26:35</span> <span class="case_time">2020-03-22 13:26:35</span>
</li> </li>
<li>{{li.deferNum}}&nbsp;</li> <li>{{li.deferNum}}&nbsp;</li>
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
items(){ items(){
var items=[]; var items=[];
this.schemas.map(p=>{ this.schemas.map(p=>{
var info=this.list.filter(u=>u.schedule_Id==p.scheduleId)[0]; var info=this.list.filter(u=>u.scheduleId==p.schedule_Id)[0];
items.push(info); items.push(info);
}) })
return items; return items;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
right: 0; right: 0;
// bottom:100%; // bottom:100%;
// right: 100%; // right: 100%;
z-index: 898; z-index: 100;
background-color: white; background-color: white;
// background: red; // background: red;
.top { .top {
......
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