Commit 9976c761 authored by 康振飞's avatar 康振飞

班组派工ok

parent f6138121
<template>
<Tooltip trigger="hover" v-if="title" :content="title" placement="top-end">
<a class="op" :class="css" @click="handler">
<slot>
<Icon v-if="type=='icon'" :type="icon" />
<span v-else="type=='text'" v-text="text"></span>
</slot>
</a>
<Tooltip trigger="hover" v-if="title" :content="title" placement="top-end">
<a class="op" :class="css" @click="handler">
<slot>
<Icon v-if="type=='icon'" :type="icon" />
<span v-else="type=='text'" v-text="text"></span>
</slot>
</a>
</Tooltip>
<a class="op" v-else :class="css" @click="handler">
<a class="op" v-else :class="css" @click="handler">
<slot>
<Icon v-if="type=='icon'" :type="icon" />
<span v-else="type=='text'" v-text="text"></span>
......@@ -25,8 +25,8 @@ export default {
type: String
},
type: {
type:String,
default:"text"
type:String,
default:"text"
},
title:{
type:String
......
......@@ -23,7 +23,7 @@
<p slot="title" class="card_top">
<Checkbox
v-model="item.checked"
:disabled="item.dispatchStatus==2"
:disabled="item.status!=-1"
>订单号:{{item.mesCode}}</Checkbox>
</p>
<div class="h60">
......@@ -36,7 +36,7 @@
title="拆分"
type="icon"
icon="md-cut"
v-if="item.quantity > 1 && item.pid == 0"
v-if="item.quantity > 1 && item.pid == 0 && item.status==-1"
@click="setChai(item,index)"
></op>
<op
......@@ -49,6 +49,7 @@
<!-- -->
</p>
<p>{{item.beginTime}}--{{item.endTime}}</p>
<p>人员 :{{item.userNames}}</p>
<!-- <p>设备 :{{item.equipCode}}</p> -->
</div>
</Card>
......@@ -268,6 +269,7 @@ export default {
chaiNum: 1, //拆分数量
maxnum: 1,
rowIndex: 0, //多选项的index
chaiId:0,
entity: {
taskTime: '', //工时
userIds: null, //选中人员
......@@ -394,6 +396,7 @@ export default {
routingHeaderId: u.routingHeaderId,//
status: u.status,//
userIds: u.userIds,//
userNames: u.userNames,
pid: 0, //拆分项id
}
savedUl.push(detailnew)
......@@ -416,6 +419,7 @@ export default {
},
// 过滤条件
changeStatus(a) {
// console.log(a)
this.getUserInfoFn()
},
// 打开抽屉
......@@ -498,11 +502,13 @@ export default {
this.chaiNum = 1
this.maxnum = item.quantity - 1
this.rowIndex = index
// this.chaiId = item.id
},
okChai() {
var detail = this.$u.clone(this.listTask[this.rowIndex])
this.listTask[this.rowIndex].quantity -= this.chaiNum
// detail.pid = this.$u.guid()
// detail.id = 0
// detail.pid = this.chaiId
detail.pid = this.$u.guid()
detail.quantity = this.chaiNum
this.listTask.splice(this.rowIndex + 1, 0, detail)
......
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