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
d64777a7
Commit
d64777a7
authored
Aug 01, 2023
by
kzy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了“查看盘点”这个按钮的位置,取消了查看盘点的二次确认框
parent
0b4f8305
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
39 deletions
+36
-39
check.vue
src/views/equipment/check.vue
+19
-20
checkProcess.vue
src/views/equipment/checkProcess.vue
+17
-19
No files found.
src/views/equipment/check.vue
View file @
d64777a7
...
...
@@ -37,9 +37,7 @@
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-button
style=
"padding: 8px 7px;"
:type=
"'warning'"
:size=
"smallSize"
icon=
"el-icon-view"
@
click=
"checkInventory"
>
查看盘点
</el-button>
</el-form-item>
<el-form-item>
<el-button
style=
"padding: 8px 7px;"
:type=
"typePrimary"
:size=
"smallSize"
:icon=
"addIcon"
@
click=
"checkType"
>
开始盘点
{{
check
}}
</el-button>
...
...
@@ -48,6 +46,10 @@
<el-form-item>
<el-button
style=
"padding: 8px 7px;"
type=
"danger"
:size=
"smallSize"
@
click=
"deleteByType"
icon=
"el-icon-minus"
>
结束盘点
{{
check
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
style=
"padding: 8px 7px;"
:type=
"'warning'"
:size=
"smallSize"
icon=
"el-icon-view"
@
click=
"checkInventory"
>
查看盘点
</el-button>
</el-form-item>
</div>
</el-form>
...
...
@@ -430,23 +432,20 @@ export default {
// });
},
methods
:
{
checkInventory
()
{
this
.
$confirm
(
'确认查询盘点吗?'
)
.
then
(
_
=>
{
this
.
table
=
true
checkInventory
(
1
)
.
then
(
response
=>
{
// 处理返回的数据
this
.
tableList
=
response
.
data
console
.
log
(
response
);
})
.
catch
(
error
=>
{
// 处理请求错误
console
.
error
(
error
);
});
done
();
}).
catch
(
_
=>
{});
},
checkInventory
()
{
this
.
table
=
true
;
checkInventory
(
1
)
.
then
(
response
=>
{
// 处理返回的数据
this
.
tableList
=
response
.
data
;
console
.
log
(
response
);
})
.
catch
(
error
=>
{
// 处理请求错误
console
.
error
(
error
);
});
},
// TODO: 获取所选行详情信息操作
handleDetail
(
row
)
{
this
.
singleDetails
=
this
.
formReset
...
...
src/views/equipment/checkProcess.vue
View file @
d64777a7
...
...
@@ -37,9 +37,7 @@
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
<div
style=
"float: right"
>
<el-form-item>
<el-button
style=
"padding: 8px 7px;"
:type=
"'warning'"
:size=
"smallSize"
icon=
"el-icon-view"
@
click=
"checkInventory"
>
查看盘点
</el-button>
</el-form-item>
<el-form-item>
<el-button
style=
"padding: 8px 7px;"
:type=
"typePrimary"
:size=
"smallSize"
:icon=
"addIcon"
@
click=
"checkType"
>
开始盘点
{{
check
}}
</el-button>
...
...
@@ -49,6 +47,10 @@
<el-button
style=
"padding: 8px 7px;"
type=
"danger"
:size=
"smallSize"
@
click=
"deleteByType"
icon=
"el-icon-minus"
>
结束盘点
{{
check
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
style=
"padding: 8px 7px;"
:type=
"'warning'"
:size=
"smallSize"
icon=
"el-icon-view"
@
click=
"checkInventory"
>
查看盘点
</el-button>
</el-form-item>
</div>
</el-form>
<div
class=
"placeholder"
/>
...
...
@@ -431,22 +433,18 @@ export default {
},
methods
:
{
checkInventory
()
{
this
.
$confirm
(
'确认查询盘点吗?'
)
.
then
(
_
=>
{
this
.
table
=
true
checkInventory
(
2
)
.
then
(
response
=>
{
// 处理返回的数据
this
.
tableList
=
response
.
data
console
.
log
(
response
);
})
.
catch
(
error
=>
{
// 处理请求错误
console
.
error
(
error
);
});
done
();
}).
catch
(
_
=>
{});
},
this
.
table
=
true
;
checkInventory
(
2
)
.
then
(
response
=>
{
// 处理返回的数据
this
.
tableList
=
response
.
data
;
console
.
log
(
response
);
})
.
catch
(
error
=>
{
// 处理请求错误
console
.
error
(
error
);
});
},
// TODO: 获取所选行详情信息操作
handleDetail
(
row
)
{
this
.
singleDetails
=
this
.
formReset
...
...
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