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
59fc5a44
Commit
59fc5a44
authored
Aug 01, 2023
by
CenXinYi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'project1' of
http://gitlab.91isoft.com:90/yangshuo/template_vue
into project1
parents
690a3319
cb73d0c1
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
177 additions
and
470 deletions
+177
-470
magnagement.js
src/api/magnagement.js
+11
-0
index.vue
src/views/processManagement/deviceReuse/index.vue
+130
-447
index.vue
src/views/sample/sampleType/index.vue
+36
-23
No files found.
src/api/magnagement.js
View file @
59fc5a44
...
@@ -34,6 +34,17 @@ export function add(data) {
...
@@ -34,6 +34,17 @@ export function add(data) {
}
}
})
})
}
}
// 再利用
export
function
recycle
(
data
)
{
return
request
({
url
:
'/wbwarehouse/recycle'
,
method
:
'post'
,
data
,
headers
:
{
'Content-Type'
:
'application/json;charset=UTF-8'
}
})
}
// 逻辑删除基础信息接口
// 逻辑删除基础信息接口
export
function
deletedevice
(
id
)
{
export
function
deletedevice
(
id
)
{
return
request
({
return
request
({
...
...
src/views/processManagement/deviceReuse/index.vue
View file @
59fc5a44
This diff is collapsed.
Click to expand it.
src/views/sample/sampleType/index.vue
View file @
59fc5a44
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"
name"
prop=
"
name"
>
<el-form-item
label=
"
dname"
prop=
"d
name"
>
<el-input
<el-input
v-model=
"queryParams.dname"
v-model=
"queryParams.dname"
placeholder=
"请输入名称"
placeholder=
"请输入名称"
...
@@ -23,6 +23,16 @@
...
@@ -23,6 +23,16 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"dno"
prop=
"dno"
>
<el-input
v-model=
"queryParams.dno"
placeholder=
"请输入dno"
clearable
size=
"small"
style=
"width: 150px"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-form-item>
<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>
...
@@ -36,13 +46,13 @@
...
@@ -36,13 +46,13 @@
icon=
"el-icon-plus"
icon=
"el-icon-plus"
@
click=
"handleAdd"
@
click=
"handleAdd"
>
新增
</el-button>
>
新增
</el-button>
<el-button
<!--
<el-button-->
style=
"padding: 8px 7px;"
<!-- style="padding: 8px 7px;"-->
type=
"success"
<!-- type="success"-->
size=
"small"
<!-- size="small"-->
icon=
"el-icon-download"
<!-- icon="el-icon-download"-->
@
click=
"handleExport"
<!-- @click="handleExport"-->
>
导出
</el-button
>
<!-- >导出
</el-button>
--
>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
...
@@ -68,22 +78,22 @@
...
@@ -68,22 +78,22 @@
{{
scope
.
row
.
dno
||
'-'
}}
{{
scope
.
row
.
dno
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"remarks"
prop=
"remarks"
:show-overflow-tooltip=
"true"
>
<!-- <el-table-column label="remarks" prop="remarks" :show-overflow-tooltip="true">--
>
<
template
slot-scope=
"scope"
>
<!-- <template slot-scope="scope">--
>
{{
scope
.
row
.
remarks
||
'-'
}}
<!-- {{ scope.row.remarks || '-' }}-->
</
template
>
<!-- </template>--
>
</el-table-column
>
<!-- </el-table-column>--
>
<el-table-column
label=
"操作人"
prop=
"createName"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"操作人"
prop=
"createName"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
createName
||
'-'
}}
{{
scope
.
row
.
createName
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作时间"
prop=
"
cre
ateDate"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"操作时间"
prop=
"
upd
ateDate"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
parseTime
(
scope
.
row
.
cre
ateDate
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
||
'-'
}}
{{
parseTime
(
scope
.
row
.
upd
ateDate
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
||
'-'
}}
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"操作"
>
<
el
-
table
-
column
label
=
"操作"
width
=
"150px"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
button
<
el
-
button
size
=
"mini"
size
=
"mini"
...
@@ -128,9 +138,9 @@
...
@@ -128,9 +138,9 @@
<
el
-
form
-
item
label
=
"dno"
prop
=
"dno"
>
<
el
-
form
-
item
label
=
"dno"
prop
=
"dno"
>
<
el
-
input
v
-
model
.
trim
=
"form.dno"
:
maxlength
=
"30"
placeholder
=
"请输入dno"
/>
<
el
-
input
v
-
model
.
trim
=
"form.dno"
:
maxlength
=
"30"
placeholder
=
"请输入dno"
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"remarks"
prop
=
"remarks"
>
<!--
<
el
-
form
-
item
label
=
"remarks"
prop
=
"remarks"
>--
>
<
el
-
input
v
-
model
.
trim
=
"form.remarks"
:
maxlength
=
"30"
placeholder
=
"请输入remarks"
/
>
<!--
<
el
-
input
v
-
model
.
trim
=
"form.remarks"
:
maxlength
=
"30"
placeholder
=
"请输入remarks"
/>--
>
<
/el-form-item
>
<!--
<
/el-form-item>--
>
<
/el-form
>
<
/el-form
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
div
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
<
el
-
button
@
click
=
"cancel"
>
取
消
<
/el-button
>
...
@@ -154,7 +164,8 @@ export default {
...
@@ -154,7 +164,8 @@ export default {
form
:
{
}
,
form
:
{
}
,
rules
:
{
rules
:
{
pn
:
[{
required
:
true
,
message
:
'请输入pn'
,
trigger
:
'blur'
}
],
pn
:
[{
required
:
true
,
message
:
'请输入pn'
,
trigger
:
'blur'
}
],
dname
:
[{
required
:
true
,
message
:
'请输入name'
,
trigger
:
'blur'
}
]
dname
:
[{
required
:
true
,
message
:
'请输入dname'
,
trigger
:
'blur'
}
],
dno
:
[{
required
:
true
,
message
:
'请输入dno'
,
trigger
:
'blur'
}
]
}
,
}
,
total
:
0
,
total
:
0
,
loading
:
false
,
loading
:
false
,
...
@@ -162,7 +173,8 @@ export default {
...
@@ -162,7 +173,8 @@ export default {
page
:
1
,
page
:
1
,
rows
:
10
,
rows
:
10
,
pn
:
''
,
pn
:
''
,
dname
:
''
dname
:
''
,
dno
:
''
}
,
}
,
statusOptions
:
{
}
,
statusOptions
:
{
}
,
basicinfoMationList
:
[]
basicinfoMationList
:
[]
...
@@ -232,7 +244,7 @@ export default {
...
@@ -232,7 +244,7 @@ export default {
getList
()
{
getList
()
{
this
.
loading
=
true
this
.
loading
=
true
queryList
(
this
.
queryParams
).
then
(
res
=>
{
queryList
(
this
.
queryParams
).
then
(
res
=>
{
res
.
rows
.
createDate
=
parseTime
(
res
.
rows
.
cre
ateDate
,
'{y
}
-{m
}
-{d
}
'
)
res
.
rows
.
updateDate
=
parseTime
(
res
.
rows
.
upd
ateDate
,
'{y
}
-{m
}
-{d
}
'
)
this
.
total
=
res
.
total
this
.
total
=
res
.
total
this
.
basicinfoMationList
=
res
.
rows
this
.
basicinfoMationList
=
res
.
rows
this
.
loading
=
false
this
.
loading
=
false
...
@@ -249,7 +261,8 @@ export default {
...
@@ -249,7 +261,8 @@ export default {
page
:
1
,
page
:
1
,
rows
:
10
,
rows
:
10
,
pn
:
''
,
pn
:
''
,
dname
:
''
dname
:
''
,
dno
:
''
}
}
this
.
getList
()
this
.
getList
()
}
,
}
,
...
...
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