Commit c1475cb9 authored by jzc's avatar jzc

新增工单功能

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