|
|
|
@ -30,27 +30,30 @@ |
|
|
|
<el-button type="success" plain @click="queryOrdersHandle('15')">已完工</el-button> |
|
|
|
<el-button type="success" plain @click="queryOrdersHandle('15')">已完工</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #menu="scope"> |
|
|
|
<template #menu="scope"> |
|
|
|
|
|
|
|
<el-row> |
|
|
|
|
|
|
|
<el-col :span="6"> |
|
|
|
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button> |
|
|
|
<el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button> |
|
|
|
<el-button type="text" @click="printCraftCard_new(scope.row)">工艺流程卡</el-button> |
|
|
|
</el-col> |
|
|
|
<el-button type="text" @click="priorityFn(scope.row)" v-if="scope.row.runStatus === 2" |
|
|
|
<el-col :span="6"> |
|
|
|
>优先级调整</el-button |
|
|
|
<el-button type="text" @click="printCraftCard_new(scope.row)">流程卡</el-button> |
|
|
|
> |
|
|
|
</el-col> |
|
|
|
<el-button |
|
|
|
<el-col :span="6" v-if="scope.row.runStatus === 2"> |
|
|
|
type="text" |
|
|
|
<el-button type="text" @click="priorityFn(scope.row)">优先级</el-button> |
|
|
|
@click="handleBatches(scope.row)" |
|
|
|
</el-col> |
|
|
|
v-if="[2, 3, 4, 6].includes(scope.row.runStatus)" |
|
|
|
<el-col :span="6" v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"> |
|
|
|
>分批</el-button |
|
|
|
<el-button type="text" @click="handleBatches(scope.row)">分批</el-button> |
|
|
|
> |
|
|
|
</el-col> |
|
|
|
<el-button |
|
|
|
<el-col :span="6" v-if="scope.row.runStatus < 15"> |
|
|
|
|
|
|
|
<el-button type="text" @click="handleClose(scope.row)">关闭</el-button> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-button |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
@click="handleAbnormal(scope.row)" |
|
|
|
@click="handleAbnormal(scope.row)" |
|
|
|
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4" |
|
|
|
v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4" |
|
|
|
>异常申报</el-button |
|
|
|
>异常申报</el-button |
|
|
|
> |
|
|
|
> --> |
|
|
|
<el-button type="text" @click="handleClose(scope.row)" v-if="scope.row.runStatus < 15" |
|
|
|
|
|
|
|
>关闭</el-button |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</avue-crud> |
|
|
|
</avue-crud> |
|
|
|
<!-- 打印标签 --> |
|
|
|
<!-- 打印标签 --> |
|
|
|
@ -174,7 +177,7 @@ export default { |
|
|
|
viewBtnText: '详情', |
|
|
|
viewBtnText: '详情', |
|
|
|
labelWidth: 120, |
|
|
|
labelWidth: 120, |
|
|
|
// searchLabelWidth: 120, |
|
|
|
// searchLabelWidth: 120, |
|
|
|
menuWidth: 260, |
|
|
|
menuWidth: 220, |
|
|
|
dialogWidth: 1200, |
|
|
|
dialogWidth: 1200, |
|
|
|
dialogClickModal: false, |
|
|
|
dialogClickModal: false, |
|
|
|
searchEnter: true, |
|
|
|
searchEnter: true, |
|
|
|
@ -350,7 +353,6 @@ export default { |
|
|
|
overHidden: true, |
|
|
|
overHidden: true, |
|
|
|
width: 150, |
|
|
|
width: 150, |
|
|
|
// searchLabelWidth: 100, |
|
|
|
// searchLabelWidth: 100, |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '订单优先级', |
|
|
|
label: '订单优先级', |
|
|
|
@ -515,7 +517,7 @@ export default { |
|
|
|
let query = { |
|
|
|
let query = { |
|
|
|
woIds: ids.join(','), |
|
|
|
woIds: ids.join(','), |
|
|
|
}; |
|
|
|
}; |
|
|
|
interlocking(query).then((res) => { |
|
|
|
interlocking(query).then(res => { |
|
|
|
this.$message.success('操作成功'); |
|
|
|
this.$message.success('操作成功'); |
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|