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
0ce9adff
Commit
0ce9adff
authored
Jun 24, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品bom优化
parent
dc28e50d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
add.vue
pages/technology/productMix/product/add.vue
+4
-4
bom.vue
pages/technology/productMix/product/bom.vue
+16
-1
detail.vue
pages/technology/productMix/product/detail.vue
+3
-1
No files found.
pages/technology/productMix/product/add.vue
View file @
0ce9adff
...
...
@@ -94,9 +94,9 @@ export default {
drawingNo
:
""
,
name
:
""
,
type
:
""
,
//物料类型
productCode
:
""
,
//产品编号
//
productCode: "", //产品编号
// status: null,
remark
:
""
,
//
remark: "",
madeCompany
:
""
,
madeCompanyTitle
:
""
,
// extend: "",
...
...
@@ -168,13 +168,13 @@ export default {
if
(
e
.
id
==
val
)
{
this
.
entity
.
name
=
e
.
name
;
this
.
entity
.
mmcode
=
e
.
code
;
this
.
entity
.
drawingNo
=
e
.
drawing
No
;
this
.
entity
.
drawingNo
=
e
.
drawing
;
this
.
entity
.
version
=
e
.
version
;
}
});
},
clickData
(
data
,
liUrl
)
{
debugger
;
this
.
img
=
liUrl
;
this
.
entity
.
productUrl
=
liUrl
;
},
...
...
pages/technology/productMix/product/bom.vue
View file @
0ce9adff
...
...
@@ -13,6 +13,16 @@
<Filed
:span=
"8"
:name=
"l('productUrl')+':'"
>
<a
href=
"#"
@
click=
"seeImg(entity.productUrl)"
>
查看图片
</a>
</Filed>
<Filed
:span=
"24"
:name=
"l('productUrlList')+':'"
>
<files
ref=
"refFile"
:parms=
"parms"
fileFormat
:Photos=
"true"
:showList=
"false"
@
clickItem=
"clickData"
/>
</Filed>
</Row>
</div>
<TreeGrid
:columns=
"columns"
:items=
"treeData"
></TreeGrid>
...
...
@@ -27,6 +37,7 @@ import Api from "./api";
export
default
{
data
()
{
return
{
downUrl
:
fileUrlDown
,
modal
:
false
,
title
:
"新增"
,
detail
:
null
,
...
...
@@ -135,12 +146,16 @@ export default {
});
},
seeImg
(
url
)
{
let
url1
=
this
.
downUrl
+
url
;
if
(
url
)
{
window
.
open
(
url
,
"_blank"
);
window
.
open
(
url
1
,
"_blank"
);
}
else
{
this
.
$Message
.
error
(
"暂无图片"
);
}
},
clickData
(
data
)
{
window
.
open
(
data
,
"_blank"
);
},
ok
()
{
this
.
init
();
// this.load(this.eid);
...
...
pages/technology/productMix/product/detail.vue
View file @
0ce9adff
...
...
@@ -28,6 +28,7 @@ export default {
name
:
"Add"
,
data
()
{
return
{
downUrl
:
fileUrlDown
,
entity
:
{},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
...
...
@@ -54,8 +55,9 @@ export default {
window
.
open
(
data
,
"_blank"
);
},
seeImg
(
url
)
{
let
url1
=
this
.
downUrl
+
url
;
if
(
url
)
{
window
.
open
(
url
,
"_blank"
);
window
.
open
(
url
1
,
"_blank"
);
}
else
{
this
.
$Message
.
error
(
"暂无图片"
);
}
...
...
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