Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
assets
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
黄媛媛
assets
Commits
b181f574
Commit
b181f574
authored
Dec 06, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
72ec656e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
55 deletions
+69
-55
Archivesmaterials.vue
src/components/Materialman/Archivesmaterials.vue
+61
-48
Materialwarehouse.vue
src/components/Materialman/Materialwarehouse.vue
+8
-7
No files found.
src/components/Materialman/Archivesmaterials.vue
View file @
b181f574
...
...
@@ -86,96 +86,107 @@
<el-dialog
:title=
"dialogtitle"
:visible
.
sync=
"dialogState"
width=
"680px"
style=
"height:700px"
>
<el-form
class=
"Archivesform"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"100px"
>
<el-form-item
label=
"档案名称"
prop=
"Name"
>
top=
"3%"
width=
"850px"
>
<el-form
class=
"MyEditForm"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"0"
>
<el-form-item
prop=
"Name"
>
<span
class=
"label"
>
档案名称
</span>
<el-input
size=
"small"
v-model=
"addMsg.Name"
></el-input>
</el-form-item>
<el-form-item
label=
"档案编码"
>
<el-form-item>
<span
class=
"label"
>
档案编码
</span>
<el-input
size=
"small"
v-model=
"addMsg.SuppliesNum"
></el-input>
</el-form-item>
<el-form-item
style=
"float:left"
label=
"品牌名称"
prop=
"BrandName"
>
<el-form-item
prop=
"BrandName"
>
<span
class=
"label"
>
品牌名称
</span>
<el-input
size=
"small"
v-model=
"addMsg.BrandName"
></el-input>
</el-form-item>
<el-form-item
class=
"treeItem"
label=
"分类"
>
<treeselect
style=
"height:36px"
class=
'w200 fl'
:options=
"treedata"
v-model=
"addMsg.CategoryId"
placeholder=
"不限"
<el-form-item
class=
"treeItem"
style=
"float:left;"
>
<span
class=
"label"
>
分类
</span>
<treeselect
style=
"height:32px"
class=
'w200 fl'
:options=
"treedata"
v-model=
"addMsg.CategoryId"
placeholder=
"不限"
:normalizer=
"normalizer"
@
select=
'treeClick'
/>
</el-form-item>
<el-form-item
label=
"供应商名称"
>
<el-form-item>
<span
class=
"label"
>
供应商名称
</span>
<el-input
size=
"small"
v-model=
"addMsg.SupplierName"
></el-input>
</el-form-item>
<el-form-item
label=
"安全库存"
>
<el-form-item>
<span
class=
"label"
>
安全库存
</span>
<el-input
size=
"small"
v-model=
"addMsg.SafetyStock"
></el-input>
</el-form-item>
<el-form-item
label=
"预警预存"
>
<el-form-item>
<span
class=
"label"
>
预警预存
</span>
<el-input
size=
"small"
v-model=
"addMsg.ReservedStock"
></el-input>
</el-form-item>
<el-form-item
label=
"型号"
>
<el-form-item>
<span
class=
"label"
>
型号
</span>
<el-input
size=
"small"
v-model=
"addMsg.SuppliesModel"
></el-input>
</el-form-item>
<el-form-item
label=
"单位"
>
<el-form-item>
<span
class=
"label"
>
单位
</span>
<el-input
size=
"small"
v-model=
"addMsg.Units"
></el-input>
</el-form-item>
<el-form-item
label=
"成本价"
>
<el-form-item>
<span
class=
"label"
>
成本价
</span>
<el-input
size=
"small"
v-model=
"addMsg.Money"
></el-input>
</el-form-item>
<el-form-item
label=
"条形码号"
>
<el-form-item>
<span
class=
"label"
>
条形码号
</span>
<el-input
size=
"small"
v-model=
"addMsg.Barcode"
></el-input>
</el-form-item>
<el-form-item
label=
"备注"
>
<el-form-item>
<span
class=
"label"
>
备注
</span>
<el-input
size=
"small"
v-model=
"addMsg.Remark"
></el-input>
</el-form-item>
<el-form-item
label=
"图片"
>
<div
class=
"_addUpload_box"
>
<div
class=
"_pic_upload"
>
<!--
<template
v-if=
"addMsg.images!==''"
>
<div>
<div
style=
"width:100%;height:100%;overflow: hidden;display: flex;align-items: center;"
>
<img
:src=
"addMsg.images"
>
<span
style=
"font-size:12px; color:#666666;cursor: pointer;line-height: 20px;"
@
click=
"addMsg.images=''"
>
重新上传
</span>
<div
class=
"_addUpload_box"
>
<ul
class=
"uploadUl"
>
<li>
<img
src=
"../../assets/img/pic.png"
alt=
""
>
<div
class=
"hoverDiv"
>
<img
src=
"../../assets/img/imgdelete.png"
alt=
""
>
</div>
</div>
</
template
>
-->
<el-upload
</li>
</ul>
<div
class=
"uploadDiv"
>
<el-upload
:http-request=
"uploadFileBtn"
:multiple=
"false"
:show-file-list=
"false"
action
>
<i
class=
"el-icon-plus avatar-uploader-icon"
></i
>
<div
class=
"el-upload__text"
>
点击/拖拽上传
</div>
<i
mg
style=
"width:40px;height:36px"
src=
"../../assets/img/pic.png"
alt=
""
>
<div
class=
"el-upload__text"
>
上传图片
</div>
</el-upload>
</div>
</div>
</
el-form-item
>
<
el-form-item
>
<
el-button
size=
"small"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
确定
</el-butto
n>
<
el-button
size=
"small"
@
click=
"dialogState=false"
>
取消
</el-butto
n>
</
el-form-item
>
</
div
>
<
div
class=
"btnformItem"
>
<
span
class=
"submitBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
确定
</spa
n>
<
span
class=
"exitBtn"
@
click=
"dialogState=false"
>
取消
</spa
n>
</
div
>
</el-form>
</el-dialog>
</div>
</
template
>
<
script
>
import
Treeselect
from
"@riophae/vue-treeselect"
;
import
"@riophae/vue-treeselect/dist/vue-treeselect.css"
;
export
default
{
name
:
'Archivesmaterials'
,
components
:
{
Treeselect
},
data
(){
return
{
morequery
:
false
,
normalizer
(
node
)
{
var
obj
=
{
id
:
node
.
label
,
// label: node.Department
Name,
id
:
node
.
Id
,
label
:
node
.
Name
,
};
//
if (node.ChildList != null && node.ChildList.length > 0) {
//
obj.children = node.ChildList;
//
}
if
(
node
.
ChildList
!=
null
&&
node
.
ChildList
.
length
>
0
)
{
obj
.
children
=
node
.
ChildList
;
}
return
obj
;
},
currentPage
:
1
,
...
...
@@ -361,10 +372,12 @@ export default {
Edit
(
item
){
this
.
dialogtitle
=
"编辑物料档案"
;
this
.
dialogState
=
true
;
this
.
addMsg
=
{
Id
:
item
.
Id
,
Name
:
item
.
Name
,
}
console
.
log
(
item
,
'item'
);
this
.
addMsg
=
Object
.
assign
({},
item
);
// this.addMsg={
// Id:item.Id,
// Name:item.Name,
// }
},
Delete
(
item
){
let
Id
=
item
.
Id
;
...
...
src/components/Materialman/Materialwarehouse.vue
View file @
b181f574
...
...
@@ -57,15 +57,16 @@
<el-dialog
:title=
"dialogtitle"
:visible
.
sync=
"dialogState"
width=
"30%"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"100px"
>
<el-form-item
label=
"仓库名称"
prop=
"Name"
>
width=
"20%"
>
<el-form
class=
"MyEditForm"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"0"
>
<el-form-item
prop=
"Name"
style=
"margin-left:60px;"
>
<span
class=
"label"
>
仓库名称
</span>
<el-input
v-model=
"addMsg.Name"
></el-input>
</el-form-item>
<
el-form-item
>
<
el-button
type=
"primary"
@
click=
"submitForm('addMsg')"
>
确定
</el-butto
n>
<
el-button
@
click=
"dialogState=false"
>
取消
</el-butto
n>
</
el-form-item
>
<
div
class=
"btnformItem"
>
<
span
class=
"submitBtn"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
确定
</spa
n>
<
span
class=
"exitBtn"
@
click=
"dialogState=false"
>
取消
</spa
n>
</
div
>
</el-form>
</el-dialog>
</div>
...
...
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