Commit f5de8371 authored by renjintao's avatar renjintao

orderlist

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