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
dd804cc7
Commit
dd804cc7
authored
Jun 29, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品
parent
14cfad59
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
add.vue
pages/technology/productMix/product/add.vue
+6
-8
api.js
pages/technology/productMix/product/api.js
+6
-3
edit.vue
pages/technology/productMix/product/edit.vue
+2
-3
No files found.
pages/technology/productMix/product/add.vue
View file @
dd804cc7
...
...
@@ -80,7 +80,7 @@
</
template
>
<
script
>
import
Api
from
"./api"
;
import
service
from
"@/plugins/request"
;
export
default
{
name
:
"Add"
,
data
()
{
...
...
@@ -140,20 +140,18 @@ export default {
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
created
()
{
this
.
getTree
();
this
.
treeCompany
();
this
.
parms
.
eid
=
this
.
$u
.
guid
();
this
.
entity
.
levelId
=
this
.
parents
.
id
;
},
methods
:
{
getTree
()
{
var
url
=
`
${
designUrl
}
/productlevel/getdepartmentstree`
;
service
.
get
(
`
${
url
}
`
).
then
(
response
=>
{
this
.
data2
=
response
.
result
;
//主承制单位
treeCompany
()
{
Api
.
getdepartmentstree
().
then
(
response
=>
{
this
.
data2
=
response
.
result
;
});
},
change
(
e
)
{
// console.log(e);
// console.log(e);
this
.
entity
.
name
=
e
.
name
;
this
.
entity
.
mmcode
=
e
.
mmcode
;
this
.
entity
.
drawingNo
=
e
.
drawingNo
;
...
...
pages/technology/productMix/product/api.js
View file @
dd804cc7
...
...
@@ -20,10 +20,13 @@ export default {
return
Api
.
post
(
`
${
technologyUrl
}
productinfo/batchdelete`
,
params
);
},
materiallist
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/material/materiallist`
,
params
);
//物料
return
Api
.
post
(
`
${
systemUrl
}
/material/materiallist`
,
params
);
//物料
},
alltree
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
productinfo/alltree`
,
params
);
//bom树
},
return
Api
.
post
(
`
${
technologyUrl
}
productinfo/alltree`
,
params
);
//bom树
},
getdepartmentstree
(
params
){
return
Api
.
get
(
`
${
technologyUrl
}
productlevel/getdepartmentstree`
,
params
);
//主承制单位
},
}
\ No newline at end of file
pages/technology/productMix/product/edit.vue
View file @
dd804cc7
...
...
@@ -81,7 +81,7 @@
</
template
>
<
script
>
import
Api
from
"./api"
;
import
service
from
"@/plugins/request"
;
export
default
{
name
:
"Edit"
,
data
()
{
...
...
@@ -167,8 +167,7 @@ export default {
this
.
entity
.
levelTitle
=
listName
.
join
(
" / "
);
},
treeCompany
()
{
var
url
=
`
${
designUrl
}
/productlevel/getdepartmentstree`
;
service
.
get
(
`
${
url
}
`
).
then
(
response
=>
{
Api
.
getdepartmentstree
().
then
(
response
=>
{
this
.
data2
=
response
.
result
;
});
},
...
...
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