|
@@ -31,10 +31,10 @@
|
|
<el-table-column label="工序名称" width="400">
|
|
<el-table-column label="工序名称" width="400">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div class="disFlexscope">
|
|
<div class="disFlexscope">
|
|
- <span v-if="!scope.row.needAddCircle" class="yuanquan"></span>
|
|
|
|
|
|
+ <span v-if="scope.row.needAddCircle" class="yuanquan"></span>
|
|
<span>{{ scope.row.prodProcedure.name }}</span>
|
|
<span>{{ scope.row.prodProcedure.name }}</span>
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="单件工时" width="150">
|
|
<el-table-column label="单件工时" width="150">
|
|
<template slot-scope="scope">{{
|
|
<template slot-scope="scope">{{
|
|
@@ -66,6 +66,11 @@
|
|
<el-table-column label="组员" width="150">
|
|
<el-table-column label="组员" width="150">
|
|
<template slot-scope="scope">{{ scope.row.teamNames }}</template>
|
|
<template slot-scope="scope">{{ scope.row.teamNames }}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="操作" width="150">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-button v-if="scope.row.needAddCircle" type="primary" @click="cancellationReceive(scope)">取消接收</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
<!-- <div v-if="TabIndex == 1" v-loading="tableDataLoading">
|
|
<!-- <div v-if="TabIndex == 1" v-loading="tableDataLoading">
|
|
@@ -162,6 +167,34 @@ export default {
|
|
this.TabIndex = index;
|
|
this.TabIndex = index;
|
|
this.getPlanDetail();
|
|
this.getPlanDetail();
|
|
},
|
|
},
|
|
|
|
+ cancellationReceive(item){
|
|
|
|
+ this.http.post(
|
|
|
|
+ "/plan/cancellationReceive",
|
|
|
|
+ {
|
|
|
|
+ id: item.row.id,
|
|
|
|
+ },
|
|
|
|
+ (res) => {
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '操作成功',
|
|
|
|
+ type: "error",
|
|
|
|
+ });
|
|
|
|
+ this.getPlanDetail()
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: res.msg,
|
|
|
|
+ type: "error",
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ (error) => {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: error,
|
|
|
|
+ type: "error",
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ },
|
|
getPlanDetail() {
|
|
getPlanDetail() {
|
|
this.tableDataLoading = true;
|
|
this.tableDataLoading = true;
|
|
this.http.post(
|
|
this.http.post(
|