Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pda
pda-ui
Commits
185b2d48
Commit
185b2d48
authored
Jun 26, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产工单界面功能优化
parent
d641516e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
18 deletions
+22
-18
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+22
-18
No files found.
src/views/mes/pro/workorder/indexApply.vue
View file @
185b2d48
...
@@ -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.
tool
Id)
this.ids = selection.map(item => item.
workorder
Id)
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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment