Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
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
mes-ui
Commits
3bbc5c53
Commit
3bbc5c53
authored
Jun 19, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.local.topsunit.com/mes/mes-ui
into dev
parents
7bf589f2
24c6802b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
71 additions
and
15 deletions
+71
-15
single.vue
src/components/qctemplateSelect/single.vue
+1
-1
SidebarItem.vue
src/layout/components/Sidebar/SidebarItem.vue
+19
-1
permission.js
src/store/modules/permission.js
+31
-4
index.vue
src/views/mes/pro/combination/index.vue
+0
-1
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+5
-1
proofingInfo.vue
src/views/mes/pro/workorder/proofingInfo.vue
+15
-7
No files found.
src/components/qctemplateSelect/single.vue
View file @
3bbc5c53
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<el-table
v-loading=
"loading"
:data=
"qctemplateList"
@
current-change=
"handleCurrent"
@
row-dblclick=
"handleRowDbClick"
>
<el-table
v-loading=
"loading"
:data=
"qctemplateList"
@
current-change=
"handleCurrent"
@
row-dblclick=
"handleRowDbClick"
>
<el-table-column
width=
"50"
align=
"center"
>
<el-table-column
width=
"50"
align=
"center"
>
<template
v-slot=
"scope"
>
<template
v-slot=
"scope"
>
<el-radio
v-model=
"selectedIndexId"
:label=
"scope.row.
templateI
d"
@
change=
"handleRowChange(scope.row)"
>
{{
""
}}
</el-radio>
<el-radio
v-model=
"selectedIndexId"
:label=
"scope.row.
i
d"
@
change=
"handleRowChange(scope.row)"
>
{{
""
}}
</el-radio>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"检测模板编号"
align=
"center"
prop=
"templateCode"
>
<el-table-column
label=
"检测模板编号"
align=
"center"
prop=
"templateCode"
>
...
...
src/layout/components/Sidebar/SidebarItem.vue
View file @
3bbc5c53
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
>
>
<el-menu-item
<el-menu-item
:index=
"resolvePath(onlyOneChild.path)"
:index=
"resolvePath(onlyOneChild.path)"
@
click=
"clickitem(onlyOneChild)"
:class=
"
{ 'submenu-title-noDropdown': !isNest }"
:class=
"
{ 'submenu-title-noDropdown': !isNest }"
>
>
<item
<item
...
@@ -55,7 +56,7 @@ import Item from "./Item";
...
@@ -55,7 +56,7 @@ import Item from "./Item";
import
AppLink
from
"./Link"
;
import
AppLink
from
"./Link"
;
import
FixiOSBug
from
"./FixiOSBug"
;
import
FixiOSBug
from
"./FixiOSBug"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
mapGetters
}
from
"vuex"
;
import
router
from
'@/router'
;
export
default
{
export
default
{
name
:
"SidebarItem"
,
name
:
"SidebarItem"
,
components
:
{
Item
,
AppLink
},
components
:
{
Item
,
AppLink
},
...
@@ -83,6 +84,23 @@ export default {
...
@@ -83,6 +84,23 @@ export default {
return
{};
return
{};
},
},
methods
:
{
methods
:
{
clickitem
(
obj
)
{
// this.$tab.refreshPage(item)
const
{
path
,
query
,
matched
}
=
router
.
currentRoute
;
if
(
obj
===
undefined
)
{
matched
.
forEach
((
m
)
=>
{
if
(
m
.
components
&&
m
.
components
.
default
&&
m
.
components
.
default
.
name
)
{
if
(
!
[
'Layout'
,
'ParentView'
].
includes
(
m
.
components
.
default
.
name
))
{
obj
=
{
name
:
m
.
components
.
default
.
name
,
path
:
path
,
query
:
query
};
}
}
});
}
this
.
$store
.
dispatch
(
'tagsView/delCachedView'
,
obj
).
then
(()
=>
{
const
{
path
,
query
}
=
obj
this
.
$router
.
replace
({
path
:
'/'
+
path
,
query
})
})
},
hasOneShowingChild
(
children
=
[],
parent
)
{
hasOneShowingChild
(
children
=
[],
parent
)
{
if
(
!
children
)
{
if
(
!
children
)
{
children
=
[];
children
=
[];
...
...
src/store/modules/permission.js
View file @
3bbc5c53
...
@@ -41,6 +41,7 @@ const permission = {
...
@@ -41,6 +41,7 @@ const permission = {
const
asyncRoutes
=
filterDynamicRoutes
(
dynamicRoutes
);
const
asyncRoutes
=
filterDynamicRoutes
(
dynamicRoutes
);
rewriteRoutes
.
push
({
path
:
'*'
,
redirect
:
'/404'
,
hidden
:
true
})
rewriteRoutes
.
push
({
path
:
'*'
,
redirect
:
'/404'
,
hidden
:
true
})
router
.
addRoutes
(
asyncRoutes
);
router
.
addRoutes
(
asyncRoutes
);
console
.
log
(
'rewriteRoutes'
,
rewriteRoutes
)
commit
(
'SET_ROUTES'
,
rewriteRoutes
)
commit
(
'SET_ROUTES'
,
rewriteRoutes
)
commit
(
'SET_SIDEBAR_ROUTERS'
,
constantRoutes
.
concat
(
sidebarRoutes
))
commit
(
'SET_SIDEBAR_ROUTERS'
,
constantRoutes
.
concat
(
sidebarRoutes
))
commit
(
'SET_DEFAULT_ROUTES'
,
sidebarRoutes
)
commit
(
'SET_DEFAULT_ROUTES'
,
sidebarRoutes
)
...
@@ -67,7 +68,7 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
...
@@ -67,7 +68,7 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
}
else
if
(
route
.
component
===
'InnerLink'
)
{
}
else
if
(
route
.
component
===
'InnerLink'
)
{
route
.
component
=
InnerLink
route
.
component
=
InnerLink
}
else
{
}
else
{
route
.
component
=
loadView
(
route
.
component
)
route
.
component
=
loadView
(
route
.
component
,
route
.
name
)
}
}
}
}
if
(
route
.
children
!=
null
&&
route
.
children
&&
route
.
children
.
length
)
{
if
(
route
.
children
!=
null
&&
route
.
children
&&
route
.
children
.
length
)
{
...
@@ -120,13 +121,39 @@ export function filterDynamicRoutes(routes) {
...
@@ -120,13 +121,39 @@ export function filterDynamicRoutes(routes) {
})
})
return
res
return
res
}
}
export
function
createCustomComponent
(
name
,
component
)
{
return
{
name
,
data
()
{
return
{
component
:
null
}
},
async
created
()
{
if
(
component
instanceof
Promise
)
{
try
{
const
module
=
await
component
this
.
component
=
module
?.
default
}
catch
(
error
)
{
console
.
error
(
`can not resolve component
${
name
}
, error:`
,
error
)
}
export
const
loadView
=
(
view
)
=>
{
return
}
this
.
component
=
component
},
render
(
h
)
{
return
this
.
component
?
h
(
this
.
component
)
:
null
},
}
}
export
const
loadView
=
(
view
,
name
)
=>
{
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
return
(
resolve
)
=>
require
([
`@/views/
${
view
}
`
],
resolve
)
return
createCustomComponent
(
name
,
(
resolve
)
=>
require
([
`@/views/
${
view
}
`
],
resolve
))
// return (resolve) => {
// return require([`@/views/${view}`], resolve)
// }
}
else
{
}
else
{
// 使用 import 实现生产环境的路由懒加载
// 使用 import 实现生产环境的路由懒加载
return
(
resolve
)
=>
require
([
`@/views/
${
view
}
`
],
resolve
)
return
createCustomComponent
(
name
,
(
resolve
)
=>
require
([
`@/views/
${
view
}
`
],
resolve
)
)
}
}
}
}
...
...
src/views/mes/pro/combination/index.vue
View file @
3bbc5c53
...
@@ -129,7 +129,6 @@
...
@@ -129,7 +129,6 @@
<!-- >删除-->
<!-- >删除-->
<!-- </el-button>-->
<!-- </el-button>-->
<!-- </template>-->
<!-- </template>-->
</el-table-column>
</el-table>
</el-table>
<pagination
<pagination
...
...
src/views/mes/pro/workorder/indexApply.vue
View file @
3bbc5c53
...
@@ -1007,6 +1007,9 @@ export default {
...
@@ -1007,6 +1007,9 @@ export default {
}
,
}
,
}
;
}
;
}
,
}
,
activated
()
{
this
.
getList
();
}
,
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
}
,
}
,
...
@@ -1290,7 +1293,7 @@ export default {
...
@@ -1290,7 +1293,7 @@ export default {
handleSelectionChange(selection) {
handleSelectionChange(selection) {
// this.selectedRows = val;
// this.selectedRows = val;
this.selectedRows = selection;
this.selectedRows = selection;
this.ids = selection.map(item => item.
tool
Id)
this.ids = selection.map(item => item.
workorder
Id)
this.single = selection.length !== 1
this.single = selection.length !== 1
this.multiple = !selection.length
this.multiple = !selection.length
}
,
}
,
...
@@ -1313,6 +1316,7 @@ export default {
...
@@ -1313,6 +1316,7 @@ export default {
this.reset();
this.reset();
const workorderId = row.workorderId || this.ids;
const workorderId = row.workorderId || this.ids;
console.log('workorderId', workorderId, this.ids)
this.$router.push("/mes/pro/workorder/edit?workorderId=" + workorderId);
this.$router.push("/mes/pro/workorder/edit?workorderId=" + workorderId);
// this.reset();
// this.reset();
...
...
src/views/mes/pro/workorder/proofingInfo.vue
View file @
3bbc5c53
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"
申请
单编码"
prop=
"workorderCode"
>
<el-form-item
label=
"
工
单编码"
prop=
"workorderCode"
>
<el-input
<el-input
disabled
disabled
v-model=
"form.workorderCode"
v-model=
"form.workorderCode"
...
@@ -64,9 +64,9 @@
...
@@ -64,9 +64,9 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"生产版本"
prop=
"
productionSolutionCode
"
>
<el-form-item
label=
"生产版本"
prop=
"
group
"
>
<el-input
<el-input
v-model=
"form.
productionSolutionCode
"
v-model=
"form.
group
"
readonly
readonly
:disabled=
"mode == 'make'"
:disabled=
"mode == 'make'"
placeholder=
"请选择工艺路线"
placeholder=
"请选择工艺路线"
...
@@ -365,6 +365,8 @@ export default {
...
@@ -365,6 +365,8 @@ export default {
workorderCode
:
null
,
workorderCode
:
null
,
workorderName
:
null
,
workorderName
:
null
,
routeName
:
null
,
routeName
:
null
,
groupKey
:
null
,
groupCounter
:
null
,
workorderType
:
"product"
,
workorderType
:
"product"
,
orderSource
:
null
,
orderSource
:
null
,
sourceCode
:
null
,
sourceCode
:
null
,
...
@@ -401,6 +403,7 @@ export default {
...
@@ -401,6 +403,7 @@ export default {
packNum
:
null
,
packNum
:
null
,
productionSolutionId
:
null
,
productionSolutionId
:
null
,
productionSolutionCode
:
null
,
productionSolutionCode
:
null
,
group
:
null
,
productionSolutionName
:
null
,
productionSolutionName
:
null
,
},
},
// 表单校验
// 表单校验
...
@@ -469,7 +472,6 @@ export default {
...
@@ -469,7 +472,6 @@ export default {
this
.
bomList
=
[]
this
.
bomList
=
[]
const
bomList
=
this
.
currentData
.
bomList
.
map
((
item
,
index
)
=>
{
const
bomList
=
this
.
currentData
.
bomList
.
map
((
item
,
index
)
=>
{
// console.log(item, 'items')
// console.log(item, 'items')
console
.
log
(
this
.
currentData
.
quantity
,
'this.currentData.quantity'
)
let
quantity
=
parseInt
(
this
.
form
.
quantity
*
item
.
quantity
*
100
/
this
.
currentData
.
quantity
)
let
quantity
=
parseInt
(
this
.
form
.
quantity
*
item
.
quantity
*
100
/
this
.
currentData
.
quantity
)
// console.log(quantity, 'quantity')
// console.log(quantity, 'quantity')
return
{
return
{
...
@@ -477,7 +479,6 @@ export default {
...
@@ -477,7 +479,6 @@ export default {
quantity
:
quantity
/
100
quantity
:
quantity
/
100
}
}
})
})
console
.
log
(
bomList
,
'bomList'
)
this
.
bomList
=
bomList
this
.
bomList
=
bomList
this
.
$refs
[
"ProogingBomRef"
].
tableData
=
bomList
this
.
$refs
[
"ProogingBomRef"
].
tableData
=
bomList
}
}
...
@@ -507,7 +508,6 @@ export default {
...
@@ -507,7 +508,6 @@ export default {
});
});
}
else
if
(
this
.
mode
===
'make'
)
{
}
else
if
(
this
.
mode
===
'make'
)
{
getMakeWorkorderCode
(
this
.
form
.
parentCode
).
then
(
res
=>
{
getMakeWorkorderCode
(
this
.
form
.
parentCode
).
then
(
res
=>
{
console
.
log
(
res
,
88899
)
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
form
.
workorderCode
=
res
.
data
.
code
this
.
form
.
workorderCode
=
res
.
data
.
code
}
}
...
@@ -577,7 +577,9 @@ export default {
...
@@ -577,7 +577,9 @@ export default {
this
.
loading
=
true
;
this
.
loading
=
true
;
getWorkorder
(
id
)
getWorkorder
(
id
)
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
Object
.
assign
(
this
.
form
,
data
);
Object
.
assign
(
this
.
form
,
data
);
this
.
form
.
group
=
`
${
this
.
form
.
groupCounter
?
this
.
form
.
groupCounter
:
''
}
-
${
this
.
form
.
groupKey
?
this
.
form
.
groupKey
:
''
}
`
this
.
currentData
=
{}
this
.
currentData
=
{}
if
(
this
.
mode
==
'make'
)
{
if
(
this
.
mode
==
'make'
)
{
this
.
currentData
=
data
this
.
currentData
=
data
...
@@ -630,11 +632,13 @@ export default {
...
@@ -630,11 +632,13 @@ export default {
//物料选择弹出框
//物料选择弹出框
onRoutesProcessSelect
(
row
)
{
onRoutesProcessSelect
(
row
)
{
console
.
log
(
row
,
'rows444'
)
if
(
row
!=
undefined
&&
row
!=
null
)
{
if
(
row
!=
undefined
&&
row
!=
null
)
{
this
.
form
.
productionSolutionId
=
row
.
productionSolutionId
;
this
.
form
.
productionSolutionId
=
row
.
productionSolutionId
;
this
.
form
.
productionSolutionCode
=
row
.
productionSolutionCode
;
this
.
form
.
productionSolutionCode
=
row
.
productionSolutionCode
;
this
.
form
.
group
=
`
${
row
.
groupCounter
?
row
.
groupCounter
:
''
}
-
${
row
.
groupKey
?
row
.
groupKey
:
''
}
`
this
.
form
.
productCode
=
row
.
itemCode
;
this
.
form
.
productCode
=
row
.
itemCode
;
this
.
form
.
groupCounter
=
row
.
groupCounter
;
this
.
form
.
groupKey
=
row
.
groupKey
;
this
.
form
.
productName
=
row
.
itemName
;
this
.
form
.
productName
=
row
.
itemName
;
const
params
=
{
const
params
=
{
pageNum
:
1
,
pageNum
:
1
,
...
@@ -659,6 +663,7 @@ export default {
...
@@ -659,6 +663,7 @@ export default {
saleList
,
saleList
,
sizeList
,
sizeList
,
};
};
delete
params
.
group
this
.
$refs
.
form
.
validate
(
valid
=>
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
@@ -731,6 +736,8 @@ export default {
...
@@ -731,6 +736,8 @@ export default {
quantityChanged
:
null
,
quantityChanged
:
null
,
quantityScheduled
:
null
,
quantityScheduled
:
null
,
clientId
:
null
,
clientId
:
null
,
groupKey
:
null
,
groupCounter
:
null
,
clientCode
:
null
,
clientCode
:
null
,
clientName
:
null
,
clientName
:
null
,
vendorId
:
null
,
vendorId
:
null
,
...
@@ -747,6 +754,7 @@ export default {
...
@@ -747,6 +754,7 @@ export default {
packType
:
null
,
packType
:
null
,
packUnitOfMeasure
:
null
,
packUnitOfMeasure
:
null
,
lossIndividuallyWrap
:
null
,
lossIndividuallyWrap
:
null
,
group
:
null
,
packNum
:
null
,
packNum
:
null
,
};
};
this
.
$refs
[
"ProogingBomRef"
].
resetState
();
this
.
$refs
[
"ProogingBomRef"
].
resetState
();
...
...
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