|
|
@@ -153,8 +153,8 @@
|
|
|
> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template v-slot:action>
|
|
|
- <el-link type="primary">冲销</el-link>
|
|
|
+ <template v-slot:action="{ row }">
|
|
|
+ <el-link type="primary" @click="writeOff(row)">冲销</el-link>
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
</el-card>
|
|
|
@@ -854,7 +854,7 @@
|
|
|
},
|
|
|
{
|
|
|
label: '包装数量',
|
|
|
- prop: 'packagingQuantity',
|
|
|
+ prop: 'packNum',
|
|
|
minWidth: 100,
|
|
|
align: 'center'
|
|
|
},
|
|
|
@@ -866,7 +866,7 @@
|
|
|
},
|
|
|
{
|
|
|
label: '尾料数量',
|
|
|
- prop: 'tailingsQuantity',
|
|
|
+ prop: 'surplusNum',
|
|
|
minWidth: 100,
|
|
|
align: 'center'
|
|
|
},
|
|
|
@@ -1015,9 +1015,25 @@
|
|
|
});
|
|
|
this.countMsg = res;
|
|
|
},
|
|
|
- openOther () {
|
|
|
+ openOther () {
|
|
|
this.$refs.otherMissionRef.open();
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 冲销
|
|
|
+ writeOff(row){
|
|
|
+ this.$confirm(`<span style="color: red;">是否要撤销本次报工?</span>`, '冲销', {
|
|
|
+ confirmButtonText: '确认',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ // batchCompletion([row.id]).then((res) => {
|
|
|
+ // this.$message.success('成功');
|
|
|
+ // this.reload();
|
|
|
+ // });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
};
|