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
d2ccf872
Commit
d2ccf872
authored
Jul 13, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itemIndexitemIndex
parent
24ad6b62
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
161 additions
and
3 deletions
+161
-3
zh-CN.js
i18n/locale/zh-CN.js
+27
-1
api.js
pages/material/api.js
+4
-0
index.vue
pages/material/index.vue
+2
-2
itemIndex.vue
pages/material/itemIndex.vue
+128
-0
No files found.
i18n/locale/zh-CN.js
View file @
d2ccf872
...
...
@@ -1568,5 +1568,31 @@ export default {
unitPrice
:
'单价'
,
originalManufacturer
:
'原厂家'
,
remark
:
'备注'
,
}
},
stock_item
:{
creationTime
:
'创建时间'
,
creatorUserId
:
'创建人'
,
lastModificationTime
:
'更新时间'
,
lastModifierUserId
:
'更新人'
,
isDeleted
:
'删除人'
,
deletionTime
:
'删除时间'
,
deleterUserId
:
'删除人'
,
name
:
'名称'
,
materialType
:
'类型'
,
brand
:
'牌号'
,
specifications
:
'规格'
,
originalManufacturer
:
'原厂家'
,
batch
:
'批次'
,
unitPrice
:
'单价'
,
certificateOfApproval
:
'合格证'
,
storeId
:
''
,
storeTitle
:
'库位'
,
creator
:
''
,
stockId
:
'物料库存主键'
,
total
:
'入库数量'
,
remark
:
'备注'
,
code
:
'入库编号'
,
materialId
:
'物料id'
,
materialCode
:
'物料编码'
,
}
}
pages/material/api.js
View file @
d2ccf872
...
...
@@ -26,4 +26,8 @@ export default {
setminnum
(
params
)
{
return
Api
.
post
(
`
${
resourceUrl
}
/stock/setminnum`
,
params
);
},
indexStockitem
:
`
${
resourceUrl
}
/stockitem/paged`
,
pagedStockitem
(
params
)
{
return
Api
.
post
(
`
${
resourceUrl
}
/stockitem/paged`
,
params
);
},
}
pages/material/index.vue
View file @
d2ccf872
...
...
@@ -27,7 +27,7 @@
<Button
type=
"primary"
@
click=
"add"
>
入库
</Button>
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</Content>
...
...
@@ -201,7 +201,7 @@ export default {
view
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"详情"
;
this
.
detail
=
()
=>
import
(
"./
detail
"
);
this
.
detail
=
()
=>
import
(
"./
itemIndex
"
);
this
.
modal
=
true
;
},
edit
(
id
)
{
...
...
pages/material/itemIndex.vue
0 → 100644
View file @
d2ccf872
<
template
>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入关键字名称//入库编号/"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
</Form>
</
template
>
</DataGrid>
</div>
</template>
<
script
>
import
Api
from
"./api"
;
export
default
{
name
:
"list"
,
head
:
{
title
:
"入库明细"
,
author
:
"henq"
,
description
:
"stock_item 7/13/2020 6:04:18 PM"
},
data
()
{
return
{
action
:
Api
.
index
,
easySearch
:
{
keys
:
{
op
:
"name,storeTitle,code,materialCode"
,
value
:
null
}
},
curId
:
0
,
columns
:
[
{
key
:
"name"
,
title
:
this
.
l
(
"name"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"originalManufacturer"
,
title
:
this
.
l
(
"originalManufacturer"
),
align
:
"left"
,
high
:
true
},
{
key
:
"batch"
,
title
:
this
.
l
(
"batch"
),
align
:
"left"
,
high
:
true
},
{
key
:
"unitPrice"
,
title
:
this
.
l
(
"unitPrice"
),
align
:
"left"
,
high
:
true
},
{
key
:
"certificateOfApproval"
,
title
:
this
.
l
(
"certificateOfApproval"
),
align
:
"left"
,
high
:
true
},
{
key
:
"storeTitle"
,
title
:
this
.
l
(
"storeTitle"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"total"
,
title
:
this
.
l
(
"total"
),
align
:
"left"
,
high
:
true
},
{
key
:
"remark"
,
title
:
this
.
l
(
"remark"
),
align
:
"left"
,
high
:
true
},
{
key
:
"code"
,
title
:
this
.
l
(
"code"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"materialCode"
,
title
:
this
.
l
(
"materialCode"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"creationTime"
,
title
:
this
.
l
(
"creationTime"
),
align
:
"left"
,
high
:
true
},
{
key
:
"creatorUserId"
,
title
:
this
.
l
(
"creatorUserId"
),
align
:
"left"
,
high
:
true
}
]
};
},
mounted
()
{
console
.
log
(
this
);
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
ok
()
{
this
.
$refs
.
grid
.
load
();
this
.
modal
=
false
;
this
.
curId
=
0
;
},
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
cancel
()
{
this
.
curId
=
0
;
this
.
modal
=
false
;
},
l
(
key
)
{
let
vkey
=
"stock_item"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
}
}
};
</
script
>
<
style
lang=
"less"
>
</
style
>
\ No newline at end of file
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