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
252a8c26
Commit
252a8c26
authored
Jul 14, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
index itemindexitemindex
parent
1c79bd9e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
11 deletions
+28
-11
zh-CN.js
i18n/locale/zh-CN.js
+1
-0
index.vue
pages/material/index.vue
+9
-5
itemIndex.vue
pages/material/itemIndex.vue
+9
-5
setNum.vue
pages/material/setNum.vue
+9
-1
No files found.
i18n/locale/zh-CN.js
View file @
252a8c26
...
...
@@ -1568,6 +1568,7 @@ export default {
unitPrice
:
'单价'
,
originalManufacturer
:
'原厂家'
,
remark
:
'备注'
,
materialCode
:
'物料编码'
,
},
stock_item
:{
creationTime
:
'创建时间'
,
...
...
pages/material/index.vue
View file @
252a8c26
...
...
@@ -13,16 +13,13 @@
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入物料名称/
库位名称"
v-model=
"easySearch.keys.value"
v-width=
"24
0"
/>
<Input
placeholder=
"请输入物料名称/
物料编码/库位名称"
v-model=
"easySearch.keys.value"
v-width=
"26
0"
/>
</FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
</Form>
</
template
>
<
template
slot=
"searchForm"
>
<Search
/>
</
template
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"add"
>
入库
</Button>
</
template
>
...
...
@@ -51,7 +48,7 @@ export default {
action
:
Api
.
index
,
showMenu
:
true
,
easySearch
:
{
keys
:
{
op
:
"name,storeTitle"
,
value
:
null
}
keys
:
{
op
:
"name,storeTitle
,materialCode
"
,
value
:
null
}
},
fscreeen
:
false
,
modal
:
false
,
...
...
@@ -67,6 +64,13 @@ export default {
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"materialCode"
,
title
:
this
.
l
(
"materialCode"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"total"
,
...
...
pages/material/itemIndex.vue
View file @
252a8c26
<
template
>
<div>
<span
class=
"mr20"
>
物料名称:
{{
materialName
}}
</span>
<span
class=
"mr20"
>
物料编
号
:
{{
mcode
}}
</span>
<span
class=
"mr20"
>
库位:
{{
storeTitle
}}
</span>
<span
class=
"mr20"
>
物料编
码
:
{{
mcode
}}
</span>
<span>
库位:
{{
storeTitle
}}
</span>
<DataGrid
:columns=
"columns"
ref=
"grid"
...
...
@@ -40,7 +40,6 @@ export default {
easy
:
true
,
high
:
true
},
{
key
:
"total"
,
title
:
this
.
l
(
"total"
),
align
:
"right"
,
high
:
true
},
{
key
:
"nowTotal"
,
...
...
@@ -80,7 +79,13 @@ export default {
high
:
true
,
type
:
"user"
},
{
key
:
"remark"
,
title
:
this
.
l
(
"remark"
),
align
:
"left"
,
high
:
true
,
tooltip
:
true
}
{
key
:
"remark"
,
title
:
this
.
l
(
"remark"
),
align
:
"left"
,
high
:
true
,
tooltip
:
true
}
],
materialName
:
""
,
storeTitle
:
""
...
...
@@ -122,7 +127,6 @@ export default {
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
cancel
()
{
this
.
curId
=
0
;
this
.
modal
=
false
;
...
...
pages/material/setNum.vue
View file @
252a8c26
...
...
@@ -13,7 +13,7 @@
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('minNum')"
prop=
"minNum"
>
<InputNumber
v-model=
"entity.minNum"
></InputNumber>
<InputNumber
v-model=
"entity.minNum"
:min=
"0"
></InputNumber>
</FormItem>
</Col>
</Row>
...
...
@@ -53,6 +53,11 @@ export default {
},
methods
:
{
handleSubmit
()
{
if
(
this
.
entity
.
minNum
==
0
)
{
this
.
$Message
.
error
(
"设置最低库存不能小于1"
);
return
}
let
params
=
{
id
:
this
.
entity
.
id
,
minNum
:
this
.
entity
.
minNum
...
...
@@ -80,6 +85,9 @@ export default {
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
if
(
!
r
.
result
.
minNum
)
{
this
.
entity
.
minNum
=
0
;
}
});
},
l
(
key
)
{
...
...
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