Commit b09e83b3 authored by 康振飞's avatar 康振飞

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

parents 177b8077 3f9ec4fa
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</Col> </Col>
</Row> </Row>
<component :is="detail" :eid="id" :schemas="schemas"/> <component :is="detail" :eid="id" :schemas="schemas" @ok-claer="clearS" />
</Content> </Content>
</Layout> </Layout>
<div class="footer" v-if="showFooter"> <div class="footer" v-if="showFooter">
...@@ -77,8 +77,8 @@ export default { ...@@ -77,8 +77,8 @@ export default {
total: 0, total: 0,
blacks: false, blacks: false,
gant: false, gant: false,
gantt:null, gantt: null,
curPage:null curPage: null
}; };
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
...@@ -121,6 +121,8 @@ export default { ...@@ -121,6 +121,8 @@ export default {
if (r.success) { if (r.success) {
this.$Message.success("清空列表成功"); this.$Message.success("清空列表成功");
this.orderlist(); this.orderlist();
this.id = 0;
this.listData();
} }
}); });
}, },
...@@ -130,6 +132,16 @@ export default { ...@@ -130,6 +132,16 @@ export default {
}); });
} }
}, },
clearS() {
this.id = 0;
Api.clearall().then(r => {
if (r.success) {
this.orderlist();
this.id = 0;
this.listData();
}
});
},
// 返回 // 返回
comeBlck() { comeBlck() {
this.$router.push({ path: "/aps/aps" }); this.$router.push({ path: "/aps/aps" });
...@@ -151,26 +163,26 @@ export default { ...@@ -151,26 +163,26 @@ export default {
this.modal1Gant = true; this.modal1Gant = true;
this.gantt = () => import("./gantt"); this.gantt = () => import("./gantt");
}, },
changeCheck(item,i) { changeCheck(item, i) {
this.$set(this.list,i,item); this.$set(this.list, i, item);
if(this.title!='排产方案对比'){ if (this.title != "排产方案对比") {
this.showFooter=true; this.showFooter = true;
} }
}, },
submit() { submit() {
this.detail = () => import("./compare"); this.detail = () => import("./compare");
this.title = "排产方案对比"; this.title = "排产方案对比";
this.showFooter=false; this.showFooter = false;
}, },
cancel() { cancel() {
this.showFooter = false; this.showFooter = false;
} }
}, },
computed:{ computed: {
schemas(){ schemas() {
return this.list.filter(u=>{ return this.list.filter(u => {
return u.checked==true; return u.checked == true;
}) });
} }
} }
}; };
......
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
}, },
{ {
title: "计划结束时间", title: "计划结束时间",
key: "plan_start", key: "plan_finish",
width: 200, width: 200,
align: "center" align: "center"
}, },
...@@ -138,7 +138,8 @@ export default { ...@@ -138,7 +138,8 @@ export default {
}).then(r => { }).then(r => {
if (r.result) { if (r.result) {
this.$Message.success(r.result.retmsg); this.$Message.success(r.result.retmsg);
this.orderlist(); this.$emit('ok-claer')
} else { } else {
this.$Message.error("下发失败"); this.$Message.error("下发失败");
} }
...@@ -150,7 +151,7 @@ export default { ...@@ -150,7 +151,7 @@ export default {
}).then(r => { }).then(r => {
if (r.result) { if (r.result) {
this.$Message.success(r.result.retmsg); this.$Message.success(r.result.retmsg);
this.orderlist(); this.$emit('ok-claer')
} else { } else {
this.$Message.error("下发失败"); this.$Message.error("下发失败");
} }
......
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