|
|
|
|
@ -37,46 +37,22 @@ |
|
|
|
|
<el-button type="text" @click="printCraftCard_new(scope.row)">流程卡</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus === 2"> |
|
|
|
|
<el-button type="text" @click="priorityFn(scope.row)" |
|
|
|
|
>优先级</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="text" @click="priorityFn(scope.row)">优先级</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"> |
|
|
|
|
<el-button |
|
|
|
|
type="text" |
|
|
|
|
@click="handleBatches(scope.row)" |
|
|
|
|
|
|
|
|
|
>分批</el-button |
|
|
|
|
> |
|
|
|
|
<el-col :span="6" v-if="[2, 3, 4, 6].includes(scope.row.runStatus)"> |
|
|
|
|
<el-button type="text" @click="handleBatches(scope.row)">分批</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus === 3 || scope.row.runStatus === 4"> |
|
|
|
|
<el-button |
|
|
|
|
type="text" |
|
|
|
|
@click="handleAbnormal(scope.row)" |
|
|
|
|
|
|
|
|
|
>异常申报</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="text" @click="handleAbnormal(scope.row)">异常申报</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5"> |
|
|
|
|
<el-button |
|
|
|
|
type="text" |
|
|
|
|
@click="handleOutsource(scope.row)" |
|
|
|
|
|
|
|
|
|
>转外协</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="text" @click="handleOutsource(scope.row)">转外协</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus <= 6 && scope.row.runStatus !== 5"> |
|
|
|
|
<el-button |
|
|
|
|
type="text" |
|
|
|
|
@click="handleSintering(scope.row)" |
|
|
|
|
|
|
|
|
|
>转烧结</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="text" @click="handleSintering(scope.row)">转烧结</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="6" v-if="scope.row.runStatus < 15"> |
|
|
|
|
<el-button type="text" @click="handleClose(scope.row)" |
|
|
|
|
>关闭</el-button |
|
|
|
|
> |
|
|
|
|
<el-button type="text" @click="handleClose(scope.row)">关闭</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
</template> |
|
|
|
|
@ -191,7 +167,7 @@ export default { |
|
|
|
|
option: { |
|
|
|
|
height: 'auto', |
|
|
|
|
calcHeight: 32, |
|
|
|
|
rowKey: 'cardNo', |
|
|
|
|
rowKey: 'woId', |
|
|
|
|
tip: false, |
|
|
|
|
simplePage: true, |
|
|
|
|
searchShow: true, |
|
|
|
|
@ -341,7 +317,7 @@ export default { |
|
|
|
|
sortable: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 150, |
|
|
|
|
searchOrder:19, |
|
|
|
|
searchOrder: 19, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '批次号', |
|
|
|
|
@ -350,7 +326,7 @@ export default { |
|
|
|
|
sortable: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 150, |
|
|
|
|
searchOrder:18, |
|
|
|
|
searchOrder: 18, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '流程卡号', |
|
|
|
|
@ -359,7 +335,7 @@ export default { |
|
|
|
|
sortable: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
width: 150, |
|
|
|
|
searchOrder:20, |
|
|
|
|
searchOrder: 20, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '产品型号', |
|
|
|
|
@ -658,7 +634,6 @@ export default { |
|
|
|
|
handleClose(row) { |
|
|
|
|
this.itemData = [row]; |
|
|
|
|
this.showClose = true; |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 转烧结 |
|
|
|
|
@ -698,6 +673,14 @@ export default { |
|
|
|
|
submitPrint() { |
|
|
|
|
this.$refs.printForm.validate(valid => { |
|
|
|
|
if (valid) { |
|
|
|
|
let ids = this.selectionList.map(item => item.woId); |
|
|
|
|
window.open( |
|
|
|
|
window.PROCESS_FLOW_CARD_PRINT + |
|
|
|
|
'?wolds' + |
|
|
|
|
ids.join(',') + |
|
|
|
|
'&num=' + |
|
|
|
|
this.printForm.quantity |
|
|
|
|
); |
|
|
|
|
this.printDialog = false; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|