Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
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-pad
Commits
0a381f60
Commit
0a381f60
authored
Aug 28, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回退到没有机台没有筛选框的状态
parent
11c6133e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
491 additions
and
514 deletions
+491
-514
config.js
common/config.js
+1
-1
http.api.js
common/http.api.js
+489
-489
index.vue
pages/index/index.vue
+1
-24
No files found.
common/config.js
View file @
0a381f60
...
...
@@ -22,7 +22,7 @@ const config = {
// 设置后台接口服务的基础地址
// config.baseUrl = 'http://192.168.3.91:8080';
config
.
baseUrl
=
'http://192.168.
3.91:8100
'
;
config
.
baseUrl
=
'http://192.168.
222.60:8088
'
;
// config.baseUrl = '/api';
//测试环境
...
...
common/http.api.js
View file @
0a381f60
...
...
@@ -58,7 +58,7 @@ const install = (Vue, vm) => {
params
),
getWorkUnitList
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/md/workunit/getListByUser'
,
params
),
vm
.
$u
.
get
(
config
.
adminPath
+
'/md/workunit/getListByUser'
,
params
),
/**
* 生产管理相关API
**/
...
...
pages/index/index.vue
View file @
0a381f60
...
...
@@ -17,25 +17,6 @@
</view>
<u-modal
width=
"90%"
v-model=
"showWorkstationFlag"
:showConfirmButton=
"false"
:showCancelButton=
"true"
title=
"请选择工作单元"
content=
"操作内容"
>
<view
class=
"station_list"
>
<u-form
:model=
"tableParams"
labelAlign=
"right"
class=
"tableForm"
>
<u-row>
<u-col
span=
"4"
>
<u-form-item
label=
"工作中心"
label-width=
"80px"
name=
"workstationName"
>
<uni-easyinput
type=
"text"
v-model=
"tableParams.workstationName"
placeholder=
"请输入工作中心"
/>
</u-form-item>
</u-col>
<u-col
span=
"4"
>
<u-form-item
label=
"工作单元"
label-width=
"100px"
name=
"workunitName"
>
<uni-easyinput
type=
"text"
v-model=
"tableParams.workunitName"
placeholder=
"请输入工作单元名称"
/>
</u-form-item>
</u-col>
<u-col
span=
"4"
>
<u-button
class=
"btn"
@
click=
"getWorkUnitList"
type=
"primary"
size=
"medium"
>
搜索
</u-button>
</u-col>
</u-row>
</u-form>
<u-empty
text=
"暂无工作单元"
mode=
"list"
v-if=
"workUnitList.length == 0"
style=
"margin: 0 auto; display: block; height: 360rpx; padding: 100rpx 0"
></u-empty>
<template
v-else
>
<u-row>
...
...
@@ -147,10 +128,6 @@ export default {
nickName
:
'张三'
,
avatar
:
require
(
'@/static/images/head.png'
)
},
tableParams
:
{
workstationName
:
''
,
workunitName
:
''
},
materialRequestArrays
:
[],
processList
:
[],
//工序清单
workstationList
:
[],
//工作中心清单
...
...
@@ -228,7 +205,7 @@ export default {
});
},
async
getWorkUnitList
(
item
)
{
await
this
.
$u
.
api
.
getWorkUnitList
(
this
.
tableParams
).
then
((
res
)
=>
{
await
this
.
$u
.
api
.
getWorkUnitList
(
{}
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
workUnitList
=
res
.
rows
;
}
else
{
...
...
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