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
3caac670
Commit
3caac670
authored
Mar 07, 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
e657817f
7aed3f5c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
325 additions
and
180 deletions
+325
-180
toolmachinesrecord.js
src/api/mes/tm/toolmachinesrecord.js
+1
-1
index.vue
src/views/mes/tm/toolmachinesrecord/index.vue
+11
-14
index.vue
src/views/mes/tm/toolrequest/index.vue
+9
-9
selectTask.vue
src/views/mes/tm/toolrequest/selectTask.vue
+33
-21
index.vue
src/views/mes/tm/toolrequestlist/index.vue
+11
-11
index.vue
src/views/system/printerConfig/index.vue
+260
-124
No files found.
src/api/mes/tm/toolmachinesrecord.js
View file @
3caac670
...
...
@@ -3,7 +3,7 @@ import request from "@/utils/request";
// 查询刀模板上下机记录列表
export
function
listRecord
(
query
)
{
return
request
({
url
:
"/tm/tmToolMachines
Record
/list"
,
url
:
"/tm/tmToolMachines/list"
,
method
:
"get"
,
params
:
query
,
});
...
...
src/views/mes/tm/toolmachinesrecord/index.vue
View file @
3caac670
...
...
@@ -150,7 +150,7 @@
<el-table-column
label=
"工作单元名称"
min-width=
"100"
align=
"center"
prop=
"workunitName"
/>
<el-table-column
label=
"工作单元id"
min-width=
"100"
align=
"center"
prop=
"workunitId"
/>
<el-table-column
label=
"操作"
align=
"center"
width=
"100"
fixed=
"right"
class-name=
"small-padding fixed-width"
>
<
!-- <
el-table-column label="操作" align="center" width="100" fixed="right" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
...
...
@@ -159,7 +159,7 @@
icon="el-icon-bottom-right"
@click="handleUpdate(scope.row)"
v-hasPermi="['tm:toolmachinesrecord:edit']"
>
入库
</el-button>
>入库</el-button>
-->
<!-- <el-button
size="mini"
type="text"
...
...
@@ -167,8 +167,8 @@
@click="handleDelete(scope.row)"
v-hasPermi="['tm:toolmachinesrecord:remove']"
>删除</el-button> -->
</
template
>
</el-table-column>
<
!-- <
/template>
</el-table-column>
-->
</el-table>
<pagination
...
...
@@ -229,7 +229,7 @@ export default {
showSearch
:
true
,
// 总条数
total
:
0
,
// 刀模
板
上下机记录表格数据
// 刀模
版
上下机记录表格数据
recordList
:
[],
// 弹出层标题
title
:
""
,
...
...
@@ -275,7 +275,7 @@ export default {
handleInWareHouse
(
e
)
{
console
.
log
(
e
,
'House'
)
},
/** 查询刀模
板
上下机记录列表 */
/** 查询刀模
版
上下机记录列表 */
getList
()
{
this
.
loading
=
true
;
const
params
=
Object
.
assign
({},
this
.
queryParams
)
...
...
@@ -326,17 +326,14 @@ export default {
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加刀模
板
上下机记录"
;
this
.
title
=
"添加刀模
版
上下机记录"
;
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
toolMachinesRecordId
=
row
.
toolMachinesRecordId
||
this
.
ids
getRecord
(
toolMachinesRecordId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"申请入库"
;
});
this
.
form
=
Object
.
assign
(
row
,
{})
this
.
open
=
true
;
this
.
title
=
"申请入库"
;
},
/** 提交按钮 */
submitForm
()
{
...
...
@@ -367,7 +364,7 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
toolMachinesRecordIds
=
row
.
toolMachinesRecordId
||
this
.
ids
;
this
.
$modal
.
confirm
(
'是否确认删除刀模
板
上下机记录编号为"'
+
toolMachinesRecordIds
+
'"的数据项?'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'是否确认删除刀模
版
上下机记录编号为"'
+
toolMachinesRecordIds
+
'"的数据项?'
).
then
(
function
()
{
return
delRecord
(
toolMachinesRecordIds
);
}).
then
(()
=>
{
this
.
getList
();
...
...
src/views/mes/tm/toolrequest/index.vue
View file @
3caac670
...
...
@@ -181,7 +181,7 @@
@
pagination
=
"getList"
/>
<!--
添加或修改刀模
板
申请单对话框
-->
<!--
添加或修改刀模
版
申请单对话框
-->
<
el
-
dialog
v
-
if
=
"open"
:
destroy
-
on
-
close
=
"true"
:
title
=
"title"
:
visible
.
sync
=
"open"
width
=
"960px"
append
-
to
-
body
:
close
-
on
-
click
-
modal
=
"false"
>
<
el
-
form
ref
=
"form"
:
model
=
"form"
:
rules
=
"rules"
label
-
width
=
"100px"
>
<
el
-
row
>
...
...
@@ -191,8 +191,8 @@
<
/el-form-item
>
<
/el-col
>
<
el
-
col
v
-
if
=
"optType === 'add'"
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"任务单"
prop
=
"taskId"
>
<
el
-
input
v
-
model
=
"form.taskId"
placeholder
=
"请选择任务单"
<
el
-
form
-
item
label
=
"任务
排产
单"
prop
=
"taskId"
>
<
el
-
input
v
-
model
=
"form.taskId"
placeholder
=
"请选择任务
排产
单"
disabled
>
<
el
-
button
v
-
if
=
"optType === 'add'"
...
...
@@ -257,7 +257,7 @@
<
el
-
input
v
-
model
=
"form.arrangeCode"
placeholder
=
"请输入编排单号"
/>
<
/el-form-item> --
>
<
/el-form
>
<
el
-
divider
content
-
position
=
"center"
>
刀模
板
申请详细
<
/el-divider
>
<
el
-
divider
content
-
position
=
"center"
>
刀模
版
申请详细
<
/el-divider
>
<
el
-
card
shadow
=
"always"
class
=
"box-card"
>
<
itemline
ref
=
"line"
:
quantity
=
"form.requestNum"
:
toolRequestId
=
"form.toolRequestId"
:
taskId
=
"form.taskId"
:
optType
=
"optType"
@
sum
=
"handleSumNum"
><
/itemline
>
<
/el-card
>
...
...
@@ -328,7 +328,7 @@ export default {
showSearch
:
true
,
// 总条数
total
:
0
,
// 刀模
板
申请单表格数据
// 刀模
版
申请单表格数据
tmToolRequestList
:
[],
// 弹出层标题
title
:
""
,
...
...
@@ -386,7 +386,7 @@ export default {
pdf_path
:
'http://192.168.23.19:8081/static/123.pdf'
,
}
);
}
,
/** 查询刀模
板
申请单列表 */
/** 查询刀模
版
申请单列表 */
getList
()
{
this
.
loading
=
true
;
listTmToolRequest
(
this
.
queryParams
).
then
(
response
=>
{
...
...
@@ -465,7 +465,7 @@ export default {
handleAdd
()
{
this
.
reset
()
this
.
gCode
()
this
.
title
=
'添加刀模
板
申请单'
this
.
title
=
'添加刀模
版
申请单'
this
.
open
=
true
;
this
.
optType
=
"add"
}
,
...
...
@@ -498,7 +498,7 @@ export default {
getTmToolRequest
(
toolRequestId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改刀模
板
申请单"
;
this
.
title
=
"修改刀模
版
申请单"
;
}
);
}
,
/** 提交按钮 */
...
...
@@ -532,7 +532,7 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
toolRequestIds
=
row
.
toolRequestId
||
this
.
ids
;
this
.
$modal
.
confirm
(
'是否确认删除刀模
板
申请单编号为"'
+
toolRequestIds
+
'"的数据项?'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'是否确认删除刀模
版
申请单编号为"'
+
toolRequestIds
+
'"的数据项?'
).
then
(
function
()
{
return
delTmToolRequest
(
toolRequestIds
);
}
).
then
(()
=>
{
this
.
getList
();
...
...
src/views/mes/tm/toolrequest/selectTask.vue
View file @
3caac670
...
...
@@ -74,33 +74,23 @@
>
-->
<!-- 可以手动的修改label的值,从而控制选择哪一项 -->
<el-radio
class=
"radio"
v-model=
"selectedItemId"
:label=
"scope.row.taskId"
>
</el-radio
>
{{
""
}}
</el-radio
>
</
template
>
</el-table-column>
<el-table-column
label=
"任务单编码"
width=
"120"
align=
"center"
key=
"taskCode"
prop=
"taskCode"
>
</el-table-column>
<el-table-column
label=
"工序名称"
min-width=
"120"
label=
"排产任务id"
width=
"100"
align=
"center"
key=
"processName"
prop=
"processName"
:show-overflow-tooltip=
"true"
key=
"taskWorkunitId"
prop=
"taskWorkunitId"
/>
<el-table-column
label=
"产品名称"
label=
"排产数量"
min-width=
"100"
align=
"center"
key=
"itemName"
min-width=
"150"
prop=
"itemName"
:show-overflow-tooltip=
"true"
key=
"quantity"
prop=
"quantity"
/>
<el-table-column
label=
"单位"
...
...
@@ -118,7 +108,6 @@
prop=
"quantity"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"工作单元编码"
align=
"center"
prop=
"workunitId"
/>
<el-table-column
label=
"开始生产时间"
align=
"center"
...
...
@@ -132,7 +121,30 @@
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"结束生产时间"
align
=
"center"
prop
=
"endTime"
width
=
"180"
:
show
-
overflow
-
tooltip
=
"true"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
parseTime
(
scope
.
row
.
endTime
,
"{y
}
-{m
}
-{d
}
:{h
}
-{m
}
-{s
}
"
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
show
-
overflow
-
tooltip
=
"true"
width
=
"100"
label
=
"状态"
align
=
"center"
prop
=
"statusName"
/>
<
el
-
table
-
column
:
show
-
overflow
-
tooltip
=
"true"
min
-
width
=
"180"
label
=
"工序任务编码"
align
=
"center"
prop
=
"taskCode"
/>
<
el
-
table
-
column
:
show
-
overflow
-
tooltip
=
"true"
min
-
width
=
"300"
label
=
"工序任务名称"
align
=
"center"
prop
=
"taskName"
/>
<
el
-
table
-
column
:
show
-
overflow
-
tooltip
=
"true"
width
=
"100"
label
=
"工作单元名称"
align
=
"center"
prop
=
"workunitName"
/>
<
el
-
table
-
column
:
show
-
overflow
-
tooltip
=
"true"
width
=
"100"
label
=
"工作单元编码"
align
=
"center"
prop
=
"workunitCode"
/>
<
el
-
table
-
column
:
show
-
overflow
-
tooltip
=
"true"
width
=
"100"
label
=
"工站编码"
align
=
"center"
prop
=
"workstationCode"
/>
<
el
-
table
-
column
:
show
-
overflow
-
tooltip
=
"true"
width
=
"100"
label
=
"工站名称"
align
=
"center"
prop
=
"workstationName"
/>
<
el
-
table
-
column
:
show
-
overflow
-
tooltip
=
"true"
width
=
"100"
label
=
"工艺名称"
align
=
"center"
prop
=
"routeName"
/>
<
el
-
table
-
column
:
show
-
overflow
-
tooltip
=
"true"
width
=
"100"
label
=
"工艺编码"
align
=
"center"
prop
=
"routeCode"
/>
<
el
-
table
-
column
:
show
-
overflow
-
tooltip
=
"true"
min
-
width
=
"150"
label
=
"工序编码"
align
=
"center"
prop
=
"processCode"
/>
<
el
-
table
-
column
:
show
-
overflow
-
tooltip
=
"true"
width
=
"100"
label
=
"工序名称"
align
=
"center"
prop
=
"processName"
/>
<
/el-table
>
<
pagination
...
...
src/views/mes/tm/toolrequestlist/index.vue
View file @
3caac670
...
...
@@ -73,10 +73,10 @@
<!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
-->
<el-table-column
label=
"物料编码"
width=
"130"
align=
"center"
prop=
"itemCode"
/>
<el-table-column
label=
"物料名称"
width=
"100"
align=
"center"
prop=
"itemName"
/>
<el-table-column
label=
"任务编码"
width=
"120"
align=
"center"
prop=
"taskCode"
/>
<el-table-column
label=
"任务名称"
show-overflow-tooltip
min-width=
"220"
align=
"center"
prop=
"taskName"
/>
<el-table-column
label=
"工作单元编码"
min-width=
"100"
align=
"center"
prop=
"workunitCode"
/>
<el-table-column
label=
"工作单元名称"
min-width=
"120"
align=
"center"
prop=
"workunitName"
/>
<el-table-column
label=
"任务编码"
width=
"120"
align=
"center"
prop=
"taskCode"
/>
<el-table-column
label=
"任务名称"
show-overflow-tooltip
min-width=
"220"
align=
"center"
prop=
"taskName"
/>
<el-table-column
label=
"上机状态"
width=
"100"
align=
"center"
prop=
"typeName"
/>
<el-table-column
label=
"数量"
width=
"80"
align=
"center"
prop=
"allQuantity"
/>
<el-table-column
label=
"使用寿命"
width=
"80"
align=
"center"
prop=
"nextMaintenPeriod"
/>
...
...
@@ -108,14 +108,14 @@
@
pagination=
"getList"
/>
<!-- 添加或修改刀模
板
上下机记录对话框 -->
<!-- 添加或修改刀模
版
上下机记录对话框 -->
<!-- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="刀模
板
上下机主表ID" prop="toolMachinesId">
<el-input v-model="form.toolMachinesId" placeholder="请输入刀模
板
上下机主表ID" />
<el-form-item label="刀模
版
上下机主表ID" prop="toolMachinesId">
<el-input v-model="form.toolMachinesId" placeholder="请输入刀模
版
上下机主表ID" />
</el-form-item>
<el-form-item label="刀模
板
领用单附表id" prop="toolRequestUseItemId">
<el-input v-model="form.toolRequestUseItemId" placeholder="请输入刀模
板
领用单附表id" />
<el-form-item label="刀模
版
领用单附表id" prop="toolRequestUseItemId">
<el-input v-model="form.toolRequestUseItemId" placeholder="请输入刀模
版
领用单附表id" />
</el-form-item>
<el-form-item label="上下机类型(1上机2下机)" prop="type">
<el-select v-model="form.type" placeholder="请选择上下机类型(1上机2下机)">
...
...
@@ -166,7 +166,7 @@ export default {
showSearch
:
true
,
// 总条数
total
:
0
,
// 刀模
板
上下机记录表格数据
// 刀模
版
上下机记录表格数据
recordList
:
[],
// 弹出层标题
title
:
""
,
...
...
@@ -234,7 +234,7 @@ export default {
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"添加刀模
板
上下机记录"
;
this
.
title
=
"添加刀模
版
上下机记录"
;
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
...
...
@@ -243,7 +243,7 @@ export default {
getRecord
(
toolMachinesRecordId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改刀模
板
上下机记录"
;
this
.
title
=
"修改刀模
版
上下机记录"
;
});
},
/** 提交按钮 */
...
...
@@ -269,7 +269,7 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
toolMachinesRecordIds
=
row
.
toolMachinesRecordId
||
this
.
ids
;
this
.
$modal
.
confirm
(
'是否确认删除刀模
板
上下机记录编号为"'
+
toolMachinesRecordIds
+
'"的数据项?'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'是否确认删除刀模
版
上下机记录编号为"'
+
toolMachinesRecordIds
+
'"的数据项?'
).
then
(
function
()
{
return
delRecord
(
toolMachinesRecordIds
);
}).
then
(()
=>
{
this
.
getList
();
...
...
src/views/system/printerConfig/index.vue
View file @
3caac670
This diff is collapsed.
Click to expand it.
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