Commit 0769fbb2 authored by 沈翠玲's avatar 沈翠玲

修复bug

parent 54158b8b
......@@ -363,7 +363,12 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const arrangeIds = row.arrangeId || this.ids;
this.$modal.confirm('是否确认删除生产工单编号为"' + row.workorderCode + '"的数据项?').then(function () {
let workorderCode = row.workorderCode
if(!row || !workorderCode) {
const finditem = this.arrangeList.find(v=>v.arrangeId === this.ids[0])
if(finditem) workorderCode = finditem.workorderCode
}
this.$modal.confirm('是否确认删除生产工单编号为"' + workorderCode + '"的数据项?').then(function () {
return delArrange(arrangeIds);
}).then(() => {
this.getList();
......
......@@ -232,7 +232,7 @@
</el-button>
</el-col>
<el-col :span="1.5">
<!-- <el-col :span="1.5">
<el-button
type="warning"
plain
......@@ -243,7 +243,7 @@
v-hasPermi="['mes:pro:workorder:dofinish']"
>生成任务单
</el-button>
</el-col>
</el-col> -->
<el-col :span="1.5">
<el-button
type="warning"
......
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