Commit c1475cb9 authored by jzc's avatar jzc

新增工单功能

parent 9f3bc734
...@@ -130,8 +130,8 @@ ...@@ -130,8 +130,8 @@
plain plain
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleDelete" @click="handleDofinish"
v-hasPermi="['mes:md:brand:remove']" v-hasPermi="['mes:pro:workorder:dofinish']"
>生成任务单</el-button> >生成任务单</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
...@@ -718,6 +718,15 @@ export default { ...@@ -718,6 +718,15 @@ export default {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}).catch(() => {}); }).catch(() => {});
},
/** 完成任务单操作 */
handleDofinish(row) {
this.$modal.confirm('是否完成工单编号"' + row.workorderCode + '"的数据项?').then(function() {
return dofinish(row.workorderId);
}).then(() => {
this.getList();
this.$modal.msgSuccess("生成成功");
}).catch(() => {});
}, },
handleSelectProduct(){ handleSelectProduct(){
this.$refs.itemSelect.showFlag = true; this.$refs.itemSelect.showFlag = true;
......
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