Commit 62ba4b0e authored by 康振飞's avatar 康振飞

工单列表list

parent d43846f9
......@@ -4,5 +4,7 @@ export default {
paged(params) {
return Api.post(`${PlanUrl}/orderexecutenew/paged_img`, params);
},
getCardList(params) {
return Api.post(`${PlanUrl}/orderexecutenew/list`, params);
},
}
......@@ -18,15 +18,16 @@
:class="item.status=='未开工'? 'card_border1' : (item.status=='执行中' ? 'card_border2': (item.status=='暂停中' ?'card_border3':
(item.status=='交检中'?'card_border4':(item.status=='交接中'?'card_border5':''))))"
>
<p slot="title">{{item.title}} <span class="fr" >{{item.status}}</span></p>
<p class="order_tit">{{item.shebei}}</p>
<p><Icon type="ios-pricetags" />{{item.gongxu}}</p>
<p>{{item.time}}</p>
<p slot="title">{{item.mesCode}} <span class="fr" >{{item.status}}</span></p>
<p class="order_tit">{{item.productName}}</p>
<p><Icon type="ios-pricetags" />{{item.taskName}}</p>
<p>{{item.beginTime}}~{{item.endTime}}</p>
</Card>
</div>
</div>
</template>
<script>
import Api from "../../api";
export default {
name:'orderlist',
data(){
......@@ -58,51 +59,6 @@ export default {
},
],
listTasks:[],
listTask:[
{
title: 'CJ_181212_002_001',
status: '已完成',
shebei: '发动机',
gongxu: '工序1:领料',
time: '2018-12-12 ~ 2018-12-30',
},{
title: 'CJ_181212_002_002',
status: '未开工',
shebei: '发动机',
gongxu: '工序1:领料',
time: '2018-12-12 ~ 2018-12-30',
},{
title: 'CJ_181212_002_003',
status: '执行中',
shebei: '发动机',
gongxu: '工序1:领料',
time: '2018-12-12 ~ 2018-12-30',
},{
title: 'CJ_181212_002_004',
status: '暂停中',
shebei: '发动机',
gongxu: '工序1:领料',
time: '2018-12-12 ~ 2018-12-30',
},{
title: 'CJ_181212_002_005',
status: '交检中',
shebei: '发动机',
gongxu: '工序1:领料',
time: '2018-12-12 ~ 2018-12-30',
},{
title: 'CJ_181212_002_006',
status: '交接中',
shebei: '发动机',
gongxu: '工序1:领料',
time: '2018-12-12 ~ 2018-12-30',
},{
title: 'CJ_181212_002_007',
status: '已完成',
shebei: '发动机',
gongxu: '工序1:领料',
time: '2018-12-12 ~ 2018-12-30',
},
],
}
},
created() {
......@@ -110,7 +66,18 @@ export default {
},
methods: {
loadTree(){
this.listTasks = this.listTask
let parmse = {
status: 0,
isAsc: true
}
Api.getCardList(parmse).then(res=>{
console.log(res)
if(res.success){
this.listTasks = res.result
}
console.warn(this.listTasks)
})
// this.listTasks = this.listTask
},
gnFunto(number,type){
this.gnFlag = number
......
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