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
2f39390f
Commit
2f39390f
authored
Apr 17, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aps/plan/order
parent
a0b117f8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
172 additions
and
39 deletions
+172
-39
customTable.vue
components/customTable/customTable.vue
+1
-1
index.vue
pages/aps/aps/index.vue
+11
-6
index.vue
pages/aps/plan/index.vue
+143
-32
index.vue
pages/mesPlan/index.vue
+1
-0
index.js
store/index.js
+16
-0
No files found.
components/customTable/customTable.vue
View file @
2f39390f
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
ok-text=
"确定"
ok-text=
"确定"
cancel-text=
"取消"
cancel-text=
"取消"
>
>
{{ metCodesStrTxt }}
<p
style=
"word-break:break-all;word-wrap:break-word;"
>
{{ metCodesStrTxt }}
</p>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<Button
@
click=
"ModalInfo = false"
>
取消
</Button>
<Button
@
click=
"ModalInfo = false"
>
取消
</Button>
<Button
type=
"primary"
@
click=
"modalInfoOk"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"modalInfoOk"
>
确定
</Button>
...
...
pages/aps/aps/index.vue
View file @
2f39390f
...
@@ -150,7 +150,7 @@ export default {
...
@@ -150,7 +150,7 @@ export default {
title
:
this
.
l
(
"mes_code"
),
title
:
this
.
l
(
"mes_code"
),
align
:
"left"
,
align
:
"left"
,
high
:
true
,
high
:
true
,
width
:
240
,
width
:
240
},
},
{
{
key
:
"product_name"
,
key
:
"product_name"
,
...
@@ -182,7 +182,7 @@ export default {
...
@@ -182,7 +182,7 @@ export default {
align
:
"left"
,
align
:
"left"
,
high
:
true
,
high
:
true
,
code
:
"plan.order.urgencyLevel"
,
code
:
"plan.order.urgencyLevel"
,
width
:
100
,
width
:
100
},
},
{
{
key
:
"priority"
,
key
:
"priority"
,
...
@@ -199,7 +199,7 @@ export default {
...
@@ -199,7 +199,7 @@ export default {
title
:
this
.
l
(
"plan_qty"
),
title
:
this
.
l
(
"plan_qty"
),
align
:
"right"
,
align
:
"right"
,
width
:
100
,
width
:
100
,
high
:
true
,
high
:
true
},
},
{
{
key
:
"spare_qty"
,
key
:
"spare_qty"
,
...
@@ -207,7 +207,7 @@ export default {
...
@@ -207,7 +207,7 @@ export default {
align
:
"right"
,
align
:
"right"
,
width
:
100
,
width
:
100
,
high
:
true
,
high
:
true
,
hide
:
true
,
hide
:
true
},
},
{
{
key
:
"plan_start"
,
key
:
"plan_start"
,
...
@@ -242,7 +242,7 @@ export default {
...
@@ -242,7 +242,7 @@ export default {
align
:
"center"
,
align
:
"center"
,
resizable
:
true
,
resizable
:
true
,
width
:
150
,
width
:
150
,
type
:
"date"
type
:
"date"
},
},
{
{
key
:
"demand_finish"
,
key
:
"demand_finish"
,
...
@@ -251,7 +251,7 @@ export default {
...
@@ -251,7 +251,7 @@ export default {
high
:
true
,
high
:
true
,
resizable
:
true
,
resizable
:
true
,
width
:
150
,
width
:
150
,
type
:
"date"
type
:
"date"
},
},
{
{
key
:
"badjustflag"
,
key
:
"badjustflag"
,
...
@@ -372,6 +372,11 @@ export default {
...
@@ -372,6 +372,11 @@ export default {
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"移出排产池操作成功"
);
this
.
$Message
.
success
(
"移出排产池操作成功"
);
this
.
loadList
();
this
.
loadList
();
//移出排产后将aps对应的store数量去掉
this
.
$store
.
commit
(
"setCountAps"
,
this
.
$store
.
state
.
countAps
-
paramsArry
.
length
);
}
}
});
});
},
},
...
...
pages/aps/plan/index.vue
View file @
2f39390f
...
@@ -21,10 +21,33 @@
...
@@ -21,10 +21,33 @@
</Form>
</Form>
</
template
>
</
template
>
<
template
slot=
"searchBack"
>
<
template
slot=
"searchBack"
>
<a
href=
"javascript:;"
@
click=
"goAps"
>
APS排产
</a>
<Badge
<a>
智能排产
</a>
:count=
"this.$store.state.countAps"
<a>
整机排产
</a>
overflow-count=
"99"
<a>
流水排产
</a>
style=
"margin-right:15px;"
type=
"info"
>
<a
href=
"javascript:;"
@
click=
"goAps"
>
APS排产
</a>
</Badge>
<Badge
:count=
"this.$store.state.countAi"
overflow-count=
"99"
style=
"margin-right:15px;"
type=
"info"
>
<a
href=
"javascript:;"
>
智能排产
</a>
</Badge>
<Badge
:count=
"this.$store.state.countAll"
overflow-count=
"99"
style=
"margin-right:15px;"
type=
"info"
>
<a
href=
"javascript:;"
>
整机排产
</a>
</Badge>
<Badge
:count=
"this.$store.state.countRun"
overflow-count=
"99"
type=
"info"
>
<a
href=
"javascript:;"
>
流水排产
</a>
</Badge>
</
template
>
</
template
>
<
template
slot=
"searchForm"
>
<
template
slot=
"searchForm"
>
<Search
/>
<Search
/>
...
@@ -56,16 +79,29 @@
...
@@ -56,16 +79,29 @@
<Modal
v-model=
"dispatchModal"
title=
"工艺派发"
footer-hide
width=
"800"
>
<Modal
v-model=
"dispatchModal"
title=
"工艺派发"
footer-hide
width=
"800"
>
<Dispatch
@
on-close=
"cancel"
:ids=
"listBatchIds"
@
on-ok=
"addOk"
/>
<Dispatch
@
on-close=
"cancel"
:ids=
"listBatchIds"
@
on-ok=
"addOk"
/>
</Modal>
</Modal>
<Modal
v-model=
"scheduleModal"
title=
"移入排产"
width=
"800"
@
on-ok=
"scheduleOk"
@
on-cancel=
"cancel"
>
<Modal
v-model=
"scheduleModal"
title=
"移入排产"
width=
"800"
>
<p>
</p>
<p>
</p>
<p>
</p>
<h4>
请选择排产模型:
</h4>
<p>
确定将订单 {{resultsOrderList}} 移入排产?
</p>
<RadioGroup
v-model=
"scheduleType"
class=
"radioList"
@
on-change=
"onchangeScheduleType"
>
<Radio
label=
"1"
border
>
APS排产
</Radio>
<Radio
label=
"2"
border
>
智能排产
</Radio>
<Radio
label=
"3"
border
>
整机排产
</Radio>
<Radio
label=
"4"
border
>
流水排产
</Radio>
</RadioGroup>
<p
class=
"pl30 pt10"
v-show=
"scheduleType!=''"
>
确定将订单 {{resultsOrderList}} 移入
<span
class=
"red fwBold"
>
{{scheduleTypeName}}
</span>
?
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<p>
</p>
<div
slot=
"footer"
>
<Button
@
click=
"cancel"
>
取消
</Button>
<Button
type=
"primary"
@
click=
"scheduleOk"
>
确定
</Button>
</div>
</Modal>
</Modal>
<Modal
v-model=
"orderSupportModal"
title=
"配套下发"
footer-hide
width=
"1300"
>
<Modal
v-model=
"orderSupportModal"
title=
"配套下发"
footer-hide
width=
"1300"
>
<orderSupport
ref=
"orderSupport"
></orderSupport>
<orderSupport
ref=
"orderSupport"
></orderSupport>
</Modal>
</Modal>
</div>
</div>
</template>
</template>
...
@@ -166,7 +202,7 @@ export default {
...
@@ -166,7 +202,7 @@ export default {
align
:
"left"
,
align
:
"left"
,
easy
:
true
,
easy
:
true
,
high
:
true
,
high
:
true
,
code
:
"plan.order.urgencyLevel"
,
code
:
"plan.order.urgencyLevel"
},
},
{
{
...
@@ -306,12 +342,14 @@ export default {
...
@@ -306,12 +342,14 @@ export default {
},
},
on
:
{
on
:
{
click
:
()
=>
click
:
()
=>
params
.
row
.
isSupportingFinish
==
2
||
params
.
row
.
isSupportingFinish
==
3
params
.
row
.
isSupportingFinish
==
2
||
params
.
row
.
isSupportingFinish
==
3
?
this
.
supportDis
(
params
.
row
)
?
this
.
supportDis
(
params
.
row
)
:
null
:
null
}
}
},
},
params
.
row
.
isSupportingFinish
==
2
||
params
.
row
.
isSupportingFinish
==
3
params
.
row
.
isSupportingFinish
==
2
||
params
.
row
.
isSupportingFinish
==
3
?
"配套派发"
?
"配套派发"
:
""
:
""
)
)
...
@@ -330,11 +368,13 @@ export default {
...
@@ -330,11 +368,13 @@ export default {
resultsStatus
:
0
,
resultsStatus
:
0
,
dispatchStatus
:
0
,
//派发标识
dispatchStatus
:
0
,
//派发标识
scheduleStatus
:
0
,
//排产标识
scheduleStatus
:
0
,
//排产标识
resultsOrderList
:
""
resultsOrderList
:
""
,
scheduleType
:
""
,
scheduleTypeName
:
""
};
};
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
);
this
.
loadInitCount
(
);
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
...
@@ -437,26 +477,37 @@ export default {
...
@@ -437,26 +477,37 @@ export default {
}
}
},
},
supportDis
(
value
)
{
supportDis
(
value
)
{
(
this
.
orderSupportModal
=
true
),
this
.
orderSupportModal
=
true
,
this
.
$refs
.
orderSupport
.
loaddata
(
value
.
id
);
this
.
$refs
.
orderSupport
.
loaddata
(
value
.
id
);
},
},
scheduleOk
()
{
scheduleOk
()
{
let
params
=
{
ids
:
this
.
listBatchIds
};
if
(
this
.
scheduleType
==
""
)
{
Api
.
moveinbatch
(
params
)
this
.
$Message
.
error
(
"请选择排产模型"
);
.
then
(
r
=>
{
}
else
{
if
(
r
.
success
)
{
let
params
=
{
this
.
$Message
.
success
(
"移入排产成功"
);
ids
:
this
.
listBatchIds
,
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
poolType
:
Number
(
this
.
scheduleType
)
}
else
{
};
Api
.
moveinbatch
(
params
)
.
then
(
r
=>
{
if
(
r
.
success
&&
r
.
result
==
true
)
{
this
.
$Message
.
success
(
"移入排产成功"
);
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
this
.
changeCountOut
(
this
.
scheduleType
,
this
.
listBatchIds
.
length
);
}
else
{
if
(
!
r
.
result
.
res
)
{
this
.
$Message
.
error
(
r
.
result
.
msg
);
}
else
{
this
.
$Message
.
error
(
"移入排产失败"
);
}
}
})
.
catch
(
err
=>
{
this
.
$Message
.
error
(
"移入排产失败"
);
this
.
$Message
.
error
(
"移入排产失败"
);
}
});
})
this
.
canselFooter
();
.
catch
(
err
=>
{
this
.
cancel
();
this
.
$Message
.
error
(
"移入排产失败"
);
}
});
this
.
canselFooter
();
this
.
cancel
();
},
},
//跳转到aps排产池(有判断)
//跳转到aps排产池(有判断)
goAps
()
{
goAps
()
{
...
@@ -542,6 +593,57 @@ export default {
...
@@ -542,6 +593,57 @@ export default {
}
}
}
}
return
temp
;
return
temp
;
},
//移入排产前选择排产模型
onchangeScheduleType
(
val
)
{
switch
(
val
)
{
case
"2"
:
this
.
scheduleTypeName
=
"智能排产"
;
break
;
case
"3"
:
this
.
scheduleTypeName
=
"整机排产"
;
break
;
case
"4"
:
this
.
scheduleTypeName
=
"流水排产"
;
break
;
default
:
this
.
scheduleTypeName
=
"APS排产"
;
}
},
//移入排产成功后给标题增加数量
changeCountOut
(
type
,
count
)
{
switch
(
type
)
{
case
"2"
:
this
.
$store
.
commit
(
"setCountAi"
,
this
.
$store
.
state
.
countAi
+
count
);
break
;
case
"3"
:
this
.
$store
.
commit
(
"setCountAll"
,
this
.
$store
.
state
.
countAll
+
count
);
break
;
case
"4"
:
this
.
$store
.
commit
(
"setCountRun"
,
this
.
$store
.
state
.
countRun
+
count
);
break
;
default
:
this
.
$store
.
commit
(
"setCountAps"
,
this
.
$store
.
state
.
countAps
+
count
);
}
},
//进入页面加载排产count
loadInitCount
()
{
this
.
$store
.
commit
(
"setCountAps"
,
0
);
this
.
$store
.
commit
(
"setCountAi"
,
0
);
this
.
$store
.
commit
(
"setCountAll"
,
0
);
this
.
$store
.
commit
(
"setCountRun"
,
0
);
Api
.
getCount
()
.
then
(
res
=>
{
if
(
res
.
success
&&
res
.
result
==
true
)
{
this
.
$store
.
commit
(
"setCountAps"
,
3
);
this
.
$store
.
commit
(
"setCountAi"
,
1
);
this
.
$store
.
commit
(
"setCountAll"
,
1
);
this
.
$store
.
commit
(
"setCountRun"
,
0
);
}
})
.
catch
(
err
=>
{
this
.
$Message
.
error
(
"获取排产模型数量失败"
);
});
}
}
}
}
};
};
...
@@ -550,4 +652,13 @@ export default {
...
@@ -550,4 +652,13 @@ export default {
.footerSpan {
.footerSpan {
width: 120px;
width: 120px;
}
}
.demo-badge-alone {
background: #5cb85c !important;
}
.radioList {
margin: 10px 30px;
}
.radioList label {
margin-top: 5px;
}
</
style
>
</
style
>
\ No newline at end of file
pages/mesPlan/index.vue
View file @
2f39390f
...
@@ -713,6 +713,7 @@ export default {
...
@@ -713,6 +713,7 @@ export default {
this
.
curId
=
0
;
this
.
curId
=
0
;
},
},
search
()
{
search
()
{
this
.
easySearch
.
keys
.
value
=
this
.
easySearch
.
keys
.
value
.
trim
();
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
},
detail
(
row
)
{
detail
(
row
)
{
...
...
store/index.js
View file @
2f39390f
...
@@ -10,6 +10,10 @@ export const state = () => ({
...
@@ -10,6 +10,10 @@ export const state = () => ({
},
},
cart
:[],
cart
:[],
count
:
0
,
count
:
0
,
countAps
:
0
,
//aps排产
countAi
:
0
,
//智能排产
countAll
:
0
,
//整机排产
countRun
:
0
,
//流水排产
})
})
export
const
getters
=
{
export
const
getters
=
{
dictionaryByKey
:
(
state
)
=>
(
key
)
=>
{
dictionaryByKey
:
(
state
)
=>
(
key
)
=>
{
...
@@ -59,6 +63,18 @@ export const mutations = {
...
@@ -59,6 +63,18 @@ export const mutations = {
},
},
setCartCount
(
state
,
count
)
{
setCartCount
(
state
,
count
)
{
state
.
count
=
count
;
state
.
count
=
count
;
},
setCountAps
(
state
,
count
)
{
//设置aps排产数量
state
.
countAps
=
count
;
},
setCountAi
(
state
,
count
)
{
//设置智能排产数量
state
.
countAi
=
count
;
},
setCountAll
(
state
,
count
)
{
//设置整机排产数量
state
.
countAll
=
count
;
},
setCountRun
(
state
,
count
)
{
//设置流水排产数量
state
.
countRun
=
count
;
}
}
}
}
...
...
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