Commit 185b2d48 authored by chenzj's avatar chenzj

生产工单界面功能优化

parent d641516e
...@@ -82,6 +82,14 @@ ...@@ -82,6 +82,14 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="产品分类" prop="itemTypeName">
<el-input
v-model="queryParams.itemTypeName"
placeholder="请输入产品分类"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="工单类型" prop="workorderType"> <!-- <el-form-item label="工单类型" prop="workorderType">
<el-input <el-input
v-model="queryParams.workorderType" v-model="queryParams.workorderType"
...@@ -232,7 +240,7 @@ ...@@ -232,7 +240,7 @@
</el-button> </el-button>
</el-col> </el-col>
<!-- <el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"
plain plain
...@@ -243,7 +251,7 @@ ...@@ -243,7 +251,7 @@
v-hasPermi="['mes:pro:workorder:dofinish']" v-hasPermi="['mes:pro:workorder:dofinish']"
>生成任务单 >生成任务单
</el-button> </el-button>
</el-col> --> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="warning" type="warning"
...@@ -403,15 +411,12 @@ ...@@ -403,15 +411,12 @@
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column <el-table-column
label="生产版本" label="产品分类"
width="200" width="200"
align="center" align="center"
prop="itemTypeName"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
> />
<template slot-scope="scope">
{{(scope.row.groupKey ? scope.row.groupKey: '') + (scope.row.groupCounter ? scope.row.groupCounter: '')}}
</template>
</el-table-column>
<el-table-column <el-table-column
label="规格型号" label="规格型号"
align="center" align="center"
...@@ -1113,13 +1118,13 @@ export default { ...@@ -1113,13 +1118,13 @@ export default {
}); });
batchAddCombination(params).then(response => { batchAddCombination(params).then(response => {
// if (response && response.length > 0) { if (response && response.length > 0) {
this.combOpen = true this.combOpen = true
this.combinationCodes = response this.combinationCodes = response
this.$modal.msgSuccess("新增组合单成功"); this.$modal.msgSuccess("新增组合单成功");
// } else { } else {
// this.$modal.msgError("新增组合单失败,组合规则不同,不允许组合!"); this.$modal.msgError("新增组合单失败,组合规则不同,不允许组合!");
// } }
this.getList(); this.getList();
}); });
} }
...@@ -1303,7 +1308,7 @@ export default { ...@@ -1303,7 +1308,7 @@ export default {
handleSelectionChange(selection) { handleSelectionChange(selection) {
// this.selectedRows = val; // this.selectedRows = val;
this.selectedRows = selection; this.selectedRows = selection;
this.ids = selection.map(item => item.toolId) this.ids = selection.map(item => item.workorderId)
this.single = selection.length !== 1 this.single = selection.length !== 1
this.multiple = !selection.length this.multiple = !selection.length
}, },
...@@ -1342,8 +1347,7 @@ export default { ...@@ -1342,8 +1347,7 @@ export default {
// }); // });
}, },
handleMake() { handleMake() {
let status = this.selectedRows[0].status; if (this.selectedRows[0].workorderType == 'product' && this.selectedRows[0].status == "SCHEDULED"
if (this.selectedRows[0].workorderType == 'product' && (status == "SCHEDULED"||status == "PRODUCING"||status == "ISSUED")
) { ) {
const workorderId = this.selectedRows[0].workorderId const workorderId = this.selectedRows[0].workorderId
this.$router.push("/mes/pro/workorder/make?workorderId=" + workorderId); this.$router.push("/mes/pro/workorder/make?workorderId=" + workorderId);
......
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