Commit f5de8371 authored by renjintao's avatar renjintao

orderlist

parent 54642881
......@@ -51,6 +51,10 @@ export default {
statu: {
type: Number,
default: -9
},
refresh: {
type: Boolean,
default: true
}
},
created() {
......@@ -80,7 +84,7 @@ export default {
orderId: item.orderId,
executeId: item.executeId,
headid: item.routingHeaderId,
routid: item.routingDetailId,//工序ID
routid: item.routingDetailId, //工序ID
quantity: item.quantity, //派工数量
dispatchStatus: item.status
}
......@@ -96,7 +100,11 @@ export default {
this.loadTree();
},
statu(v) {
this.statu=v
this.statu = v;
this.loadTree();
},
refresh(v) {
this.refresh=v;
this.loadTree();
}
}
......
......@@ -31,12 +31,13 @@
@on-change="searchOrder"
></Dictionary>
</div>
<div class="select_t">
<Button @click="changeAsc">{{ascTitle}}</Button>
<div class="select_t" style="height:40px">
<Button @click="changeFresh" class="fl" shape="circle" icon="md-refresh">刷新</Button>
<Button @click="changeAsc" class="fr" shape="circle" icon="md-calendar">{{ascTitle}}</Button>
</div>
</div>
<!-- 列表卡片主内容 -->
<orderlist ref="orderlistref" :asc="asc" :statu="statu" :order="inputId" />
<orderlist ref="orderlistref" :asc="asc" :statu="statu" :refresh="refresh" :order="inputId" />
</Drawer>
<!-- 功能区 -->
<Drawer
......@@ -72,7 +73,8 @@ export default {
inputId: null,
asc: true,
ascTitle: "时间正序排序",
statu:-9
statu:-9,
refresh:true,
};
},
created() {
......@@ -147,6 +149,10 @@ export default {
} else {
this.ascTitle = "时间倒序排序";
}
},
changeFresh()
{
this.refresh=!this.refresh
}
},
watch: {
......
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