Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-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
ximai
mes-ui
Commits
2dcc7d10
Commit
2dcc7d10
authored
Nov 12, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作中心新增、编辑去掉工厂、新增时添加车间ID
parent
f99a95ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
27 deletions
+20
-27
index.vue
src/views/mes/md/workstation/index.vue
+20
-27
No files found.
src/views/mes/md/workstation/index.vue
View file @
2dcc7d10
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
v-model=
"form.factoryCode"
v-model=
"form.factoryCode"
class=
"form-item"
class=
"form-item"
clearable
clearable
>
>
<el-option
<el-option
v-for=
"item in factoryCodes"
v-for=
"item in factoryCodes"
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<el-form-item
:label=
"$t('common.workstation_code')"
prop=
"workstationCode"
>
<el-form-item
:label=
"$t('common.workstation_code')"
prop=
"workstationCode"
>
<el-input
<el-input
v-model=
"queryParams.workstationCode"
v-model=
"queryParams.workstationCode"
clearable
clearable
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<el-form-item
:label=
"$t('common.workstation_name')"
prop=
"workstationName"
>
<el-form-item
:label=
"$t('common.workstation_name')"
prop=
"workstationName"
>
<el-input
<el-input
v-model=
"queryParams.workstationName"
v-model=
"queryParams.workstationName"
clearable
clearable
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<el-form-item
:label=
"$t('所在车间名称')"
prop=
"workshopName"
>
<el-form-item
:label=
"$t('所在车间名称')"
prop=
"workshopName"
>
<el-select
<el-select
v-model=
"queryParams.workshopId"
v-model=
"queryParams.workshopId"
>
>
<el-option
<el-option
v-for=
"item in workshopOptions"
v-for=
"item in workshopOptions"
...
@@ -206,23 +206,6 @@
...
@@ -206,23 +206,6 @@
label-width=
"120px"
label-width=
"120px"
>
>
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('工厂')"
prop=
"factoryCode"
>
<el-select
v-model=
"form.factoryCode"
class=
"form-item"
clearable
>
<el-option
v-for=
"item in factoryCodes"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('工作中心编号')"
prop=
"workstationCode"
>
<el-form-item
:label=
"$t('工作中心编号')"
prop=
"workstationCode"
>
<el-input
<el-input
...
@@ -237,19 +220,19 @@
...
@@ -237,19 +220,19 @@
<el-form-item
:label=
"$t('common.workstation_name')"
prop=
"workstationName"
>
<el-form-item
:label=
"$t('common.workstation_name')"
prop=
"workstationName"
>
<el-input
<el-input
v-model=
"form.workstationName"
v-model=
"form.workstationName"
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('所在车间')"
prop=
"workshop
Name
"
>
<el-form-item
:label=
"$t('所在车间')"
prop=
"workshop
Id
"
>
<el-select
v-model=
"form.workshop
Name
"
>
<el-select
v-model=
"form.workshop
Id"
@
change=
"chooseWorkshop
"
>
<el-option
v-for=
"item in workshopOptions"
:key=
"item.workshopId"
:label=
"item.workshopName"
<el-option
v-for=
"item in workshopOptions"
:key=
"item.workshopId"
:label=
"item.workshopName"
:value=
"item.workshop
Name
"
></el-option>
:value=
"item.workshop
Id
"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
...
@@ -257,7 +240,7 @@
...
@@ -257,7 +240,7 @@
<el-input
<el-input
v-model=
"form.remark"
v-model=
"form.remark"
type=
"textarea"
type=
"textarea"
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -435,6 +418,16 @@ export default {
...
@@ -435,6 +418,16 @@ export default {
this
.
workshopOptions
=
response
.
data
;
this
.
workshopOptions
=
response
.
data
;
});
});
},
},
chooseWorkshop
()
{
var
op
=
this
.
workshopOptions
.
findLast
((
item
)
=>
{
if
(
item
.
workshopId
==
this
.
form
.
workshopId
){
return
item
;
}
});
console
.
log
(
op
)
this
.
form
.
workshopName
=
op
.
workshopName
;
this
.
form
.
workshopCode
=
op
.
workshopCode
;
},
//查询工序信息
//查询工序信息
getProcess
()
{
getProcess
()
{
listAllProcess
().
then
((
response
)
=>
{
listAllProcess
().
then
((
response
)
=>
{
...
...
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