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

班组派工ok

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