Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
a132a115
Commit
a132a115
authored
Aug 25, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
制造资源ok
parent
27158adc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
22 deletions
+19
-22
add.vue
pages/material/add.vue
+1
-1
add.vue
pages/resource/resource/add.vue
+1
-1
index.vue
pages/resource/resource/index.vue
+5
-15
log.vue
pages/resource/resource/log.vue
+8
-4
return.vue
pages/resource/resource/return.vue
+4
-1
No files found.
pages/material/add.vue
View file @
a132a115
...
...
@@ -151,7 +151,7 @@ export default {
.
catch
((
err
)
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
);
//
console.warn(err);
});
}
});
...
...
pages/resource/resource/add.vue
View file @
a132a115
...
...
@@ -154,7 +154,7 @@ export default {
.
catch
((
err
)
=>
{
this
.
disabled
=
false
;
this
.
$Message
.
error
(
"保存失败"
);
console
.
warn
(
err
);
//
console.warn(err);
});
}
});
...
...
pages/resource/resource/index.vue
View file @
a132a115
...
...
@@ -327,7 +327,7 @@ export default {
computed
:
{},
methods
:
{
checkData
(
items
)
{
console
.
warn
(
"items"
,
items
);
//
console.warn("items", items);
return
items
.
map
((
u
)
=>
{
u
.
_disabled
=
u
.
numberAvailable
<=
0
;
u
.
_checked
=
false
;
...
...
@@ -407,8 +407,6 @@ export default {
this
.
$store
.
commit
(
"setCart"
,
this
.
cartList
);
this
.
$store
.
commit
(
"setCartCount"
,
this
.
cartListCount
);
}
else
{
console
.
log
(
this
.
$store
.
state
.
count
);
console
.
log
(
this
.
$store
.
state
.
cart
);
this
.
cartListCount
=
0
;
this
.
cartList
=
[];
this
.
$store
.
commit
(
"setCart"
,
this
.
cartList
);
...
...
@@ -428,8 +426,8 @@ export default {
}
},
lendingRecord
()
{
window
.
open
(
"/resource/resource/record"
,
"_blank"
);
//
this.$router.push("/resource/resource/record");
//
window.open("/resource/resource/record", "_blank");
this
.
$router
.
push
(
"/resource/resource/record"
);
},
ok
()
{
this
.
$refs
.
grid
.
load
();
...
...
@@ -457,15 +455,7 @@ export default {
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
},
// view(row) {
// this.curId = row.id;
// this.storeId = row.storeId;
// this.mCode = row.materialCode;
// this.title = "详情";
// this.detail = () => import("./detail");
// this.fscreeen = true;
// this.modal = true;
// },
remove
(
id
)
{
Api
.
delete
(
id
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
...
...
@@ -494,7 +484,7 @@ export default {
this
.
showMenu
=
true
;
},
productSearch
(
item
,
ids
,
rootName
)
{
console
.
log
(
item
);
//
console.log(item);
this
.
curId
=
item
.
id
;
this
.
storeTitle
=
item
.
title
;
this
.
rootName
=
rootName
.
join
(
" / "
);
...
...
pages/resource/resource/log.vue
View file @
a132a115
...
...
@@ -26,17 +26,21 @@ export default {
});
},
},
{
title
:
this
.
l
(
"creatorUserId"
),
key
:
"customer"
,
},
{
title
:
"编号"
,
key
:
"code"
,
},
{
title
:
this
.
l
(
"count"
),
key
:
"count"
,
align
:
"right"
,
},
{
title
:
this
.
l
(
"numberAvailable"
),
key
:
"numberAvailable"
,
align
:
"right"
,
},
{
title
:
this
.
l
(
"creationTime"
),
...
...
pages/resource/resource/return.vue
View file @
a132a115
...
...
@@ -18,7 +18,7 @@
>
<template
slot-scope=
"
{ row, index }" slot="count">
<InputNumber
:max=
"row.count"
:max=
"row.count
1
"
:min=
"1"
v-model=
"row.count"
@
on-change=
"inputOrderCat(row,index)"
...
...
@@ -169,6 +169,9 @@ export default {
easySearch
()
{
this
.
get
(
this
.
search
.
name
);
},
inputOrderCat
(
row
,
index
)
{
this
.
dataList
[
index
].
count
=
row
.
count
;
},
},
watch
:
{},
};
...
...
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