Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-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
pda
pda-ui
Commits
d090edfb
Commit
d090edfb
authored
May 10, 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
918f01c1
5ed353c6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
58 additions
and
179 deletions
+58
-179
scheduleList.js
src/api/mes/pro/scheduleList.js
+9
-0
single.vue
src/components/workunitSelect/single.vue
+10
-3
ProogingSpecificationSheet.vue
...ductionSolution/components/ProogingSpecificationSheet.vue
+8
-8
proofingApply.vue
src/views/mes/pro/productionSolution/proofingApply.vue
+2
-2
index.vue
src/views/mes/pro/scheduleList/index.vue
+14
-17
orderList.vue
src/views/mes/pro/scheduleList/orderList.vue
+15
-149
No files found.
src/api/mes/pro/scheduleList.js
View file @
d090edfb
...
@@ -35,6 +35,15 @@ export function makeSchedule(query) {
...
@@ -35,6 +35,15 @@ export function makeSchedule(query) {
});
});
}
}
// 关联工单表查询编排表(合并重复项)
export
function
arrangeList
(
query
)
{
return
request
({
url
:
"/pro/arrange/list2"
,
method
:
"post"
,
data
:
query
,
});
}
// 查询任务工作单元列表
// 查询任务工作单元列表
export
function
taskWorkunitList
(
query
)
{
export
function
taskWorkunitList
(
query
)
{
return
request
({
return
request
({
...
...
src/components/workunitSelect/single.vue
View file @
d090edfb
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"工作中心"
prop=
"workstationName"
>
<el-form-item
v-if=
"!workstationId"
label=
"工作中心"
prop=
"workstationName"
>
<el-input
<el-input
v-model=
"queryParams.workstationName"
v-model=
"queryParams.workstationName"
placeholder=
"请输入工作中心名称"
placeholder=
"请输入工作中心名称"
...
@@ -102,6 +102,10 @@ export default {
...
@@ -102,6 +102,10 @@ export default {
type
:
String
,
type
:
String
,
default
:
""
,
default
:
""
,
},
},
workstationId
:
{
type
:
String
|
Number
,
default
:
""
,
},
workunitId
:
{
workunitId
:
{
type
:
Number
|
undefined
,
type
:
Number
|
undefined
,
default
:
undefined
,
default
:
undefined
,
...
@@ -135,6 +139,7 @@ export default {
...
@@ -135,6 +139,7 @@ export default {
workunitName
:
null
,
workunitName
:
null
,
workstationId
:
null
,
workstationId
:
null
,
workstationName
:
this
.
workstationName
,
workstationName
:
this
.
workstationName
,
workstationId
:
this
.
workstationId
,
workunitId
:
null
,
workunitId
:
null
,
enableFlag
:
"Y"
,
enableFlag
:
"Y"
,
},
},
...
@@ -145,13 +150,15 @@ export default {
...
@@ -145,13 +150,15 @@ export default {
handler
(
newName
)
{
handler
(
newName
)
{
this
.
selectedWorkunitId
=
null
this
.
selectedWorkunitId
=
null
this
.
selectedRows
=
[]
this
.
selectedRows
=
[]
this
.
queryParams
.
workstationName
=
this
.
workstationName
;
this
.
queryParams
.
workstationId
=
this
.
workstationId
;
this
.
getList
();
},
},
immediate
:
true
immediate
:
true
}
}
},
},
created
()
{
created
()
{
this
.
getList
();
this
.
queryParams
.
workstationName
=
this
.
workstationName
;
},
},
methods
:
{
methods
:
{
/** 查询生产工单列表 */
/** 查询生产工单列表 */
...
...
src/views/mes/pro/productionSolution/components/ProogingSpecificationSheet.vue
View file @
d090edfb
...
@@ -102,9 +102,9 @@
...
@@ -102,9 +102,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=
"高度cm"
prop=
"
width
"
><el-form-item
label=
"高度cm"
prop=
"
height
"
><el-input
><el-input
v-model=
"form.
width
"
v-model=
"form.
height
"
placeholder
placeholder
type=
"number"
type=
"number"
:precision=
"2"
:precision=
"2"
...
@@ -113,9 +113,9 @@
...
@@ -113,9 +113,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=
"宽度cm"
prop=
"
height
"
><el-form-item
label=
"宽度cm"
prop=
"
width
"
><el-input
><el-input
v-model=
"form.
height
"
v-model=
"form.
width
"
placeholder
placeholder
type=
"number"
type=
"number"
:precision=
"2"
:precision=
"2"
...
@@ -391,8 +391,8 @@
...
@@ -391,8 +391,8 @@
</el-select>
</el-select>
</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=
"角度(mm)"
prop=
"angle"
>
<el-form-item
label=
"角度(mm)"
prop=
"angle"
>
<el-input
<el-input
...
@@ -435,7 +435,7 @@
...
@@ -435,7 +435,7 @@
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
></el-option>
></el-option>
</el-select>
</el-select>
<el-radio-group
v-model=
"form.isMould"
>
<el-radio-group
v-model=
"form.isMould"
>
<el-radio
<el-radio
v-for=
"dict in dict.type.sys_yes_no"
v-for=
"dict in dict.type.sys_yes_no"
...
@@ -455,7 +455,7 @@
...
@@ -455,7 +455,7 @@
:label=
"dict.label"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
></el-option>
></el-option>
</el-select>
</el-select>
<el-radio-group
v-model=
"form.isCoding"
>
<el-radio-group
v-model=
"form.isCoding"
>
<el-radio
<el-radio
v-for=
"dict in dict.type.sys_yes_no"
v-for=
"dict in dict.type.sys_yes_no"
...
...
src/views/mes/pro/productionSolution/proofingApply.vue
View file @
d090edfb
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"组件号"
align=
"center"
prop=
"groupCounter"
/>
<el-table-column
label=
"组件号"
align=
"center"
prop=
"groupCounter"
/>
<el-table-column
label=
"产品版本名称"
align=
"center"
prop=
"productionSolutionName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"产品版本名称"
align=
"center"
prop=
"productionSolutionName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"成品物料编码"
align=
"center"
prop=
"
i
temCode"
/>
<el-table-column
label=
"成品物料编码"
align=
"center"
prop=
"
sapI
temCode"
/>
<el-table-column
label=
"成品物料名称"
align=
"center"
prop=
"itemName"
/>
<el-table-column
label=
"成品物料名称"
align=
"center"
prop=
"itemName"
/>
<el-table-column
label=
"生产用途"
align=
"center"
prop=
"usageName"
/>
<el-table-column
label=
"生产用途"
align=
"center"
prop=
"usageName"
/>
<el-table-column
label=
"打样订单"
align=
"center"
prop=
"sapPrototypeMakeCode"
/>
<el-table-column
label=
"打样订单"
align=
"center"
prop=
"sapPrototypeMakeCode"
/>
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
</el-table-column> -->
</el-table-column> -->
<!-- <el-table-column label="备注" align="center" prop="usageName" width="180"/> -->
<!-- <el-table-column label="备注" align="center" prop="usageName" width="180"/> -->
<!--
<!--
<el-table-column
<el-table-column
label="操作"
label="操作"
width="200px"
width="200px"
...
...
src/views/mes/pro/scheduleList/index.vue
View file @
d090edfb
...
@@ -193,6 +193,7 @@
...
@@ -193,6 +193,7 @@
value-format=
"yyyy-MM-dd hh:mm:ss"
value-format=
"yyyy-MM-dd hh:mm:ss"
format=
"yyyy-MM-dd hh:mm:ss"
format=
"yyyy-MM-dd hh:mm:ss"
placeholder=
"请选择计划开始时间"
placeholder=
"请选择计划开始时间"
@
blur=
"submitForm(scope.row)"
>
>
</el-date-picker>
</el-date-picker>
<span
v-else
>
{{
<span
v-else
>
{{
...
@@ -215,6 +216,7 @@
...
@@ -215,6 +216,7 @@
value-format=
"yyyy-MM-dd hh:mm:ss"
value-format=
"yyyy-MM-dd hh:mm:ss"
format=
"yyyy-MM-dd hh:mm:ss"
format=
"yyyy-MM-dd hh:mm:ss"
placeholder=
"请选择计划结束时间"
placeholder=
"请选择计划结束时间"
@
blur=
"submitForm(scope.row)"
>
>
</el-date-picker>
</el-date-picker>
<span
v-else
>
{{
<span
v-else
>
{{
...
@@ -379,7 +381,7 @@
...
@@ -379,7 +381,7 @@
<!-- 排程 -->
<!-- 排程 -->
<el-dialog
<el-dialog
title=
"选择
生产工
单"
title=
"选择
编排
单"
:visible
.
sync=
"scheduleVisible"
:visible
.
sync=
"scheduleVisible"
width=
"1000px"
width=
"1000px"
append-to-body
append-to-body
...
@@ -409,7 +411,7 @@
...
@@ -409,7 +411,7 @@
<WorkuintSelect
<WorkuintSelect
ref=
"WorkunitSelect"
ref=
"WorkunitSelect"
:workstation
Name=
"currentData.workstationName
"
:workstation
Id=
"currentData.workstationId
"
@
onSelected=
"onWorkunitSelect"
@
onSelected=
"onWorkunitSelect"
/>
/>
...
@@ -531,8 +533,9 @@ export default {
...
@@ -531,8 +533,9 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
// 获取工作单元
// 获取工作单元
onWorkunitSelect
(
row
)
{
async
onWorkunitSelect
(
row
)
{
console
.
log
(
45456
,
row
);
await
this
.
submitForm
({...
this
.
currentData
,
workunitId
:
row
.
workunitId
})
this
.
$refs
[
'WorkunitSelect'
].
showFlag
=
false
},
},
async
hanldeGettaskWorkunitList
()
{
async
hanldeGettaskWorkunitList
()
{
this
.
taskWorkunitList
=
[]
this
.
taskWorkunitList
=
[]
...
@@ -651,24 +654,18 @@ export default {
...
@@ -651,24 +654,18 @@ export default {
this
.
open
=
true
this
.
open
=
true
},
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
async
submitForm
(
row
)
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
const
{
scheduleStartDate
,
scheduleEndDate
,
taskWorkunitId
,
workunitId
}
=
row
if
(
valid
)
{
const
params
=
{
scheduleStartDate
,
scheduleEndDate
,
taskWorkunitId
,
workunitId
}
const
{
scheduleStartDate
,
scheduleEndDate
,
taskWorkunitId
,
remark
}
=
this
.
form
await
updateList
(
params
)
const
params
=
{
scheduleStartDate
,
scheduleEndDate
,
taskWorkunitId
,
remark
}
this
.
$modal
.
msgSuccess
(
"修改成功"
);
updateList
(
params
).
then
(
response
=>
{
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
});
}
});
},
},
handleSumbitScheduleList
()
{
handleSumbitScheduleList
()
{
if
(
this
.
$refs
.
orderListRef
.
selectedRows
&&
this
.
$refs
.
orderListRef
.
selectedRows
.
length
>
0
)
{
if
(
this
.
$refs
.
orderListRef
.
selectedRows
&&
this
.
$refs
.
orderListRef
.
selectedRows
.
length
>
0
)
{
let
formData
=
this
.
$refs
.
orderListRef
.
selectedRows
.
map
(
item
=>
{
let
formData
=
this
.
$refs
.
orderListRef
.
selectedRows
.
map
(
item
=>
{
return
{
return
{
workorderId
:
item
.
workorderId
,
//
workorderId: item.workorderId,
arrangeCode
:
item
.
arrangeCode
arrangeCode
:
item
.
arrangeCode
}
}
});
});
...
...
src/views/mes/pro/scheduleList/orderList.vue
View file @
d090edfb
...
@@ -9,41 +9,14 @@
...
@@ -9,41 +9,14 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
-->
</el-form-item>
-->
<el-form-item
label=
"
来源单据"
prop=
"sourc
eCode"
>
<el-form-item
label=
"
编排单号"
prop=
"arrang
eCode"
>
<el-input
<el-input
v-model=
"queryParams.
sourc
eCode"
v-model=
"queryParams.
arrang
eCode"
placeholder=
"请输入
来源单据
"
placeholder=
"请输入
编排单号
"
clearable
clearable
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"产品名称"
prop=
"productName"
>
<el-input
v-model=
"queryParams.productName"
placeholder=
"请输入产品名称"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"客户名称"
prop=
"clientName"
>
<el-input
v-model=
"queryParams.clientName"
placeholder=
"请输入客户名称"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"需求日期"
prop=
"requestDate"
>
<el-date-picker
v-model=
"queryParams.requestDate"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
format=
"yyyy-MM-dd HH:mm:ss"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -55,95 +28,10 @@
...
@@ -55,95 +28,10 @@
@
selection-change=
"handleSelectionChange"
@
selection-change=
"handleSelectionChange"
>
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"工单编码"
width=
"180"
prop=
"workorderCode"
/>
<el-table-column
label=
"编排单号"
align=
"center"
prop=
"arrangeCode"
/>
<el-table-column
label=
"编排时间"
align=
"center"
prop=
"createTime"
/>
<el-table-column
label=
"编排人员"
align=
"center"
prop=
"createBy"
/>
<el-table-column
label=
"单据状态"
align=
"center"
prop=
"status"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.mes_workorder_status"
:value=
"scope.row.status"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"工单类型"
align=
"center"
prop=
"workorderType"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.mes_workorder_type"
:value=
"scope.row.workorderType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"组合单号"
width=
"180"
align=
"center"
prop=
"combinationCode"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"编排单号"
width=
"130px"
align=
"center"
prop=
"arrangeCode"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"订单编号"
width=
"140"
align=
"center"
prop=
"sourceCode"
/>
<el-table-column
label=
"产品编号"
width=
"120"
align=
"center"
prop=
"productCode"
/>
<el-table-column
label=
"产品名称"
width=
"200"
align=
"center"
prop=
"productName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"规格型号"
align=
"center"
prop=
"productSpc"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"需求日期"
align=
"center"
prop=
"requestDate"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
requestDate
,
"{y
}
-{m
}
-{d
}
"
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"单位"
align
=
"center"
prop
=
"unitOfMeasure"
/>
<
el
-
table
-
column
label
=
"工单数量"
align
=
"center"
prop
=
"quantity"
/>
<
el
-
table
-
column
label
=
"调整数量"
align
=
"center"
prop
=
"quantityChanged"
/>
<
el
-
table
-
column
label
=
"已生产数量"
align
=
"center"
width
=
"100px"
prop
=
"quantityProduced"
/>
<
el
-
table
-
column
label
=
"批次号"
align
=
"center"
width
=
"100px"
prop
=
"batchCode"
/>
<
el
-
table
-
column
label
=
"客户编码"
align
=
"center"
prop
=
"clientCode"
/>
<
el
-
table
-
column
label
=
"客户名称"
align
=
"center"
prop
=
"clientName"
:
show
-
overflow
-
tooltip
=
"true"
/>
</el-table>
</el-table>
<pagination
<pagination
...
@@ -158,12 +46,11 @@
...
@@ -158,12 +46,11 @@
<
script
>
<
script
>
import
{
import
{
listWorkorder
arrangeList
}
from
"@/api/mes/pro/
workorder
"
;
}
from
"@/api/mes/pro/
scheduleList
"
;
export
default
{
export
default
{
name
:
"orderList"
,
name
:
"orderList"
,
dicts
:
[
"mes_workorder_status"
,
"mes_workorder_type"
,],
components
:
{
},
components
:
{
},
data
()
{
data
()
{
return
{
return
{
...
@@ -186,27 +73,7 @@ export default {
...
@@ -186,27 +73,7 @@ export default {
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
workorderCode
:
null
,
arrangeCode
:
''
workorderName
:
null
,
orderSource
:
null
,
sourceCode
:
null
,
productId
:
null
,
productCode
:
null
,
productName
:
null
,
productSpc
:
null
,
routeName
:
null
,
unitOfMeasure
:
null
,
quantity
:
null
,
quantityProduced
:
null
,
quantityChanged
:
null
,
quantityScheduled
:
null
,
clientId
:
null
,
clientCode
:
null
,
clientName
:
null
,
requestDate
:
null
,
parentId
:
null
,
ancestors
:
null
,
statusArr
:
[
"ORCHESTRATED"
],
},
},
};
};
},
},
...
@@ -220,13 +87,12 @@ export default {
...
@@ -220,13 +87,12 @@ export default {
/** 查询物料编码列表 */
/** 查询物料编码列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
const
params
=
{...
this
.
queryParams
}
const
formdata
=
new
FormData
()
if
(
params
.
requestDate
&&
params
.
requestDate
.
length
>
0
)
{
formdata
.
append
(
'pageNum'
,
this
.
queryParams
.
pageNum
)
params
.
requestDateFrom
=
params
.
requestDate
[
0
]
formdata
.
append
(
'pageSize'
,
this
.
queryParams
.
pageSize
)
params
.
requestDateTo
=
params
.
requestDate
[
1
]
formdata
.
append
(
'arrangeCode'
,
this
.
queryParams
.
arrangeCode
)
}
formdata
.
append
(
'workorderStatus'
,
[
'ORCHESTRATED'
])
delete
params
.
requestDate
arrangeList
(
formdata
).
then
((
response
)
=>
{
listWorkorder
(
params
).
then
((
response
)
=>
{
this
.
itemList
=
response
.
rows
;
this
.
itemList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
this
.
loading
=
false
;
...
...
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