Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
胡宝山
template_vue
Commits
da8badc8
Commit
da8badc8
authored
Aug 03, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除菜单
parent
feabc2c6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
113 additions
and
48 deletions
+113
-48
application.js
src/api/equipment/application.js
+8
-0
application.vue
src/views/equipment/application.vue
+51
-21
draw.vue
src/views/processManagement/draw.vue
+54
-10
index.vue
src/views/sample/correctionLibrary/index.vue
+0
-17
No files found.
src/api/equipment/application.js
View file @
da8badc8
...
@@ -18,3 +18,11 @@ export function addApplication(data) {
...
@@ -18,3 +18,11 @@ export function addApplication(data) {
}
}
})
})
}
}
// 分页查询要处理的设备
export
function
getEquipment
(
params
)
{
return
request
({
url
:
'/wbwarehouse/canceListByPagination'
,
method
:
'get'
,
params
})
}
src/views/equipment/application.vue
View file @
da8badc8
...
@@ -5,36 +5,24 @@
...
@@ -5,36 +5,24 @@
<el-row
:gutter=
"40"
>
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
style=
"padding-left: 16%;"
>
<el-col
:span=
"12"
style=
"padding-left: 16%;"
>
<el-form-item
label=
"pn"
style=
"flex-basis: 50%;"
prop=
"pn"
>
<el-form-item
label=
"pn"
style=
"flex-basis: 50%;"
prop=
"pn"
>
<el-input
v-model=
"form.pn"
placeholder=
"请输入pn"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="50
" />
<el-input
ref=
"input1"
v-model=
"form.pn"
placeholder=
"请输入pn"
:minlength=
"3"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="100" @keyup.enter.native="handelTab(1,$event)
" />
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"phd"
style=
"flex-basis: 50%;"
prop=
"phd"
>
<el-form-item
label=
"phd"
style=
"flex-basis: 50%;"
prop=
"phd"
>
<el-input
v-model=
"form.phd"
placeholder=
"请输入phd"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10
" />
<el-input
ref=
"input2"
v-model=
"form.phd"
placeholder=
"请输入phd"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(2,$event)
" />
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"40"
>
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
style=
"padding-left: 16%;"
>
<el-col
:span=
"12"
style=
"padding-left: 16%;"
>
<el-form-item
label=
"prank"
style=
"flex-basis: 50%;"
prop=
"prank"
>
<el-form-item
label=
"prank"
style=
"flex-basis: 50%;"
prop=
"prank"
>
<el-input
v-model=
"form.prank"
placeholder=
"请输入prank"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10
" />
<el-input
ref=
"input3"
v-model=
"form.prank"
placeholder=
"请输入prank"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(3,$event)
" />
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"pgx"
style=
"flex-basis: 50%;"
prop=
"pgx"
>
<el-form-item
label=
"pnumber"
style=
"flex-basis: 50%;"
prop=
"pnumber"
>
<el-select
<el-input
ref=
"input4"
v-model=
"form.pnumber"
placeholder=
"请输入phd"
:style=
"
{ width: '400px', height: '30px' }" :maxlength="10" @keyup.enter.native="handelTab(4,$event)" />
v-model=
"form.pgx"
clearable
placeholder=
"请选择pgx"
:style=
"
{ width: '400px', height: '30px' }"
>
<el-option
v-for=
"(dict,index) in pissbList"
:key=
"index"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -56,6 +44,23 @@
...
@@ -56,6 +44,23 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
style=
"padding-left: 1.2%"
>
<el-form-item
label=
"pgx"
style=
"flex-basis: 50%;"
prop=
"pgx"
>
<el-select
v-model=
"form.pgx"
clearable
placeholder=
"请选择pgx"
:style=
"
{ width: '400px', height: '30px' }"
>
<el-option
v-for=
"(dict,index) in pissbList"
:key=
"index"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-row>
<div
class=
"button"
>
<div
class=
"button"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
提交
</el-button>
...
@@ -69,6 +74,11 @@ import { getDictData, addApplication } from '@/api/equipment/application'
...
@@ -69,6 +74,11 @@ import { getDictData, addApplication } from '@/api/equipment/application'
export
default
{
export
default
{
name
:
'Role'
,
name
:
'Role'
,
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
input1
.
$refs
.
input
.
focus
()
})
},
data
()
{
data
()
{
return
{
return
{
form
:
{
form
:
{
...
@@ -80,8 +90,11 @@ export default {
...
@@ -80,8 +90,11 @@ export default {
},
},
rule
:
{
rule
:
{
pn
:
[{
required
:
true
,
message
:
'请输入pn'
,
trigger
:
'blur'
}],
pn
:
[{
required
:
true
,
message
:
'请输入pn'
,
trigger
:
'blur'
}],
phd
:
[{
pattern
:
/^
\d
+$/
,
message
:
'仅能输入数字'
,
trigger
:
'change'
}],
phd
:
[{
required
:
true
,
pattern
:
/^
\d
+$/
,
message
:
'仅能输入整数'
,
trigger
:
'blur'
}],
prank
:
[{
pattern
:
/^
\d
+$/
,
message
:
'仅能输入数字'
,
trigger
:
'change'
}]
prank
:
[{
required
:
true
,
pattern
:
/^
\d
+$/
,
message
:
'仅能输入整数'
,
trigger
:
'blur'
}],
pgx
:
[{
required
:
true
,
message
:
'请输入pgx'
,
trigger
:
'blur'
}],
pissb
:
[{
required
:
true
,
message
:
'请输入pissb'
,
trigger
:
'blur'
}],
pnumber
:
[{
required
:
true
,
message
:
'请输入pnumber'
,
trigger
:
'blur'
}]
},
},
pissbList
:
[],
pissbList
:
[],
pgxList
:
[
pgxList
:
[
...
@@ -100,6 +113,17 @@ export default {
...
@@ -100,6 +113,17 @@ export default {
this
.
init
()
this
.
init
()
},
},
methods
:
{
methods
:
{
handelTab
(
i
,
e
)
{
const
that
=
this
if
(
!
that
.
$refs
[
'input'
+
i
])
{
return
}
that
.
$nextTick
(()
=>
{
e
.
target
.
blur
()
const
index
=
i
+
1
that
.
$refs
[
'input'
+
index
].
focus
()
})
},
// 重置
// 重置
resetFrom
()
{
resetFrom
()
{
this
.
form
=
{
this
.
form
=
{
...
@@ -127,10 +151,16 @@ export default {
...
@@ -127,10 +151,16 @@ export default {
addApplication
(
this
.
form
).
then
(
res
=>
{
addApplication
(
this
.
form
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
console
.
log
(
'res'
,
res
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'操作成功'
)
if
(
res
.
data
!==
null
)
{
if
(
res
.
data
.
ptype
===
'1'
)
{
this
.
$message
.
success
(
'申请成功,请稍后去设备库领用'
)
}
else
if
(
res
.
data
.
ptype
===
'2'
)
{
this
.
$message
.
success
(
'申请成功,请稍后去工序库领用'
)
}
}
this
.
resetFrom
()
this
.
resetFrom
()
}
else
if
(
res
.
code
===
null
)
{
}
else
if
(
res
.
code
===
null
)
{
this
.
$message
.
success
(
res
.
message
)
this
.
$message
.
error
(
res
.
message
)
}
}
})
})
}
}
...
...
src/views/processManagement/draw.vue
View file @
da8badc8
...
@@ -265,7 +265,6 @@
...
@@ -265,7 +265,6 @@
clearable
clearable
size=
"small"
size=
"small"
style=
"width: 150px"
style=
"width: 150px"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
@@ -337,12 +336,17 @@
...
@@ -337,12 +336,17 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getEquipment
}
from
'@/api/equipment/application'
import
{
listWbApply
,
deleteLogical
,
detailList
,
batchAddition
,
detail
}
from
'@/api/equipment/draw'
import
{
listWbApply
,
deleteLogical
,
detailList
,
batchAddition
,
detail
}
from
'@/api/equipment/draw'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
export
default
{
export
default
{
name
:
'Draw'
,
name
:
'Draw'
,
data
()
{
data
()
{
return
{
return
{
ptype
:
''
,
pgx
:
''
,
prank
:
''
,
pissb
:
''
,
totalApplyDetail
:
0
,
totalApplyDetail
:
0
,
applyList
:
[],
applyList
:
[],
canceList
:
[],
canceList
:
[],
...
@@ -507,7 +511,18 @@ export default {
...
@@ -507,7 +511,18 @@ export default {
/** 查询warehouse列表 */
/** 查询warehouse列表 */
getDeviceList
()
{
getDeviceList
()
{
this
.
loadingDetail
=
true
this
.
loadingDetail
=
true
detailList
(
this
.
queryParamsDetail
).
then
(
res
=>
{
const
obj
=
{
ptype
:
this
.
ptype
,
pgx
:
this
.
pgx
,
prank
:
this
.
prank
,
pissb
:
this
.
pissb
,
page
:
this
.
queryParamsDetail
.
page
,
rows
:
this
.
queryParamsDetail
.
rows
,
pn
:
this
.
queryParamsDetail
.
pn
,
lot
:
this
.
queryParams
.
lot
,
plocation
:
this
.
queryParams
.
plocation
}
getEquipment
(
obj
).
then
(
res
=>
{
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
createDate
,
'{y}-{m}-{d}'
)
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
createDate
,
'{y}-{m}-{d}'
)
this
.
totalDetail
=
res
.
total
this
.
totalDetail
=
res
.
total
this
.
detailApplyList
=
res
.
rows
this
.
detailApplyList
=
res
.
rows
...
@@ -515,16 +530,42 @@ export default {
...
@@ -515,16 +530,42 @@ export default {
})
})
},
},
handle
(
row
)
{
handle
(
row
)
{
this
.
applyId
=
row
.
businessId
console
.
log
(
'row'
,
row
)
this
.
title
=
'处理'
this
.
ptype
=
row
.
ptype
this
.
openHandle
=
!
this
.
openHandle
this
.
pgx
=
row
.
pgx
this
.
loadingDetail
=
true
this
.
prank
=
row
.
prank
detailList
(
this
.
queryParamsDetail
).
then
(
res
=>
{
this
.
pissb
=
row
.
pissb
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
createDate
,
'{y}-{m}-{d}'
)
const
obj
=
{
this
.
totalDetail
=
res
.
total
pn
:
row
.
pn
,
ptype
:
row
.
ptype
,
pgx
:
row
.
pgx
,
prank
:
row
.
prank
,
pissb
:
row
.
pissb
,
page
:
this
.
queryParamsDetail
.
page
,
rows
:
this
.
queryParamsDetail
.
rows
}
getEquipment
(
obj
).
then
(
res
=>
{
if
(
res
.
code
&&
res
.
code
===
null
)
{
this
.
$message
.
warning
(
res
.
message
)
}
console
.
log
(
'res'
)
if
(
res
.
rows
.
createDate
&&
res
.
rows
.
createDate
!==
null
)
{
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
createDate
,
'{y}-{m}-{d}'
)
}
this
.
detailApplyList
=
res
.
rows
this
.
detailApplyList
=
res
.
rows
this
.
loadingDetail
=
false
this
.
loadingDetail
=
false
this
.
openHandle
=
true
})
})
// this.applyId = row.businessId
this
.
title
=
'处理'
// this.openHandle = !this.openHandle
this
.
loadingDetail
=
true
// detailList(this.queryParamsDetail).then(res => {
// res.rows.createDate = parseTime(res.rows.createDate, '{y}-{m}-{d}')
// this.totalDetail = res.total
// this.detailApplyList = res.rows
// this.loadingDetail = false
// })
},
},
// 获取所选行详情信息
// 获取所选行详情信息
handleDetail
(
row
)
{
handleDetail
(
row
)
{
...
@@ -610,7 +651,10 @@ export default {
...
@@ -610,7 +651,10 @@ export default {
},
},
// warehouse的重置按钮
// warehouse的重置按钮
resetQueryWarehouse
()
{
resetQueryWarehouse
()
{
this
.
resetForm
(
'queryFormWarehouse'
)
this
.
queryParamsDetail
.
pn
=
null
this
.
queryParamsDetail
.
lot
=
null
this
.
queryParamsDetail
.
plocation
=
null
this
.
queryParamsDetail
.
page
=
1
this
.
handleQueryWarehouse
()
this
.
handleQueryWarehouse
()
},
},
// 多选框选中数据
// 多选框选中数据
...
...
src/views/sample/correctionLibrary/index.vue
View file @
da8badc8
...
@@ -27,23 +27,6 @@
...
@@ -27,23 +27,6 @@
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
type=
"primary"
style=
"padding: 8px 7px;"
icon=
"el-icon-search"
size=
"small"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
<!--
<div
style=
"float: right"
>
-->
<!--
<el-form-item>
-->
<!--
<el-button-->
<!-- type="primary"-->
<!-- size="small"-->
<!-- icon="el-icon-plus"-->
<!-- @click="handleAdd"-->
<!-- >新增
</el-button>
-->
<!--
<el-button-->
<!-- style="padding: 8px 7px;"-->
<!-- type="success"-->
<!-- size="small"-->
<!-- icon="el-icon-download"-->
<!-- @click="handleExport"-->
<!-- >导出
</el-button>
-->
<!--
</el-form-item>
-->
<!--
</div>
-->
</el-form>
</el-form>
<!-- 分割线 -->
<!-- 分割线 -->
<div
class=
"placeholder"
/>
<div
class=
"placeholder"
/>
...
...
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