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
5dd0e5db
Commit
5dd0e5db
authored
Mar 16, 2024
by
赵汉亭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单、生产版本前端修改 工作中心前端修改
parent
9173cd9c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
389 additions
and
125 deletions
+389
-125
index.vue
src/views/mes/md/workstation/index.vue
+308
-113
ProogingProcess.vue
...mes/pro/productionSolution/components/ProogingProcess.vue
+5
-5
WorkOrderSale.vue
src/views/mes/pro/workorder/components/WorkOrderSale.vue
+39
-6
proofingInfo.vue
src/views/mes/pro/workorder/proofingInfo.vue
+37
-1
No files found.
src/views/mes/md/workstation/index.vue
View file @
5dd0e5db
...
...
@@ -8,22 +8,45 @@
v-show=
"showSearch"
label-width=
"100px"
>
<el-form-item
label=
"工作站编码"
prop=
"workstationCode"
>
<el-row>
<el-col
:span=
"6"
>
<el-form-item
label=
"工厂"
prop=
"factory"
>
<el-select
v-model=
"form.factoryCode"
class=
"form-item"
clearable
placeholder=
"请选择工厂"
>
<el-option
v-for=
"item in factoryCodes"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"工作中心编码"
prop=
"workstationCode"
>
<el-input
v-model=
"queryParams.workstationCode"
placeholder=
"请输入工作
站
编码"
placeholder=
"请输入工作
中心
编码"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"工作站名称"
prop=
"workstationName"
>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"工作中心名称"
prop=
"workstationName"
>
<el-input
v-model=
"queryParams.workstationName"
placeholder=
"请输入工作
站
名称"
placeholder=
"请输入工作
中心
名称"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"所在车间名称"
prop=
"workshopName"
>
<el-select
v-model=
"queryParams.workshopId"
...
...
@@ -37,6 +60,8 @@
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"所属工序"
prop=
"processName"
>
<el-select
v-model=
"queryParams.processId"
placeholder=
"请选择工序"
>
<el-option
...
...
@@ -47,6 +72,8 @@
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item>
<el-button
type=
"primary"
...
...
@@ -59,6 +86,8 @@
>
重置
</el-button
>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
...
...
@@ -119,27 +148,25 @@
:data=
"workstationList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"工作站编号"
align=
"center"
prop=
"workstationCode"
>
<el-table-column
label=
"工作中心编号"
align=
"center"
prop=
"workstationCode"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleView(scope.row)"
v-hasPermi=
"['m
es:m
d:workstation:query']"
v-hasPermi=
"['md:workstation:query']"
>
{{
scope
.
row
.
workstationCode
}}
</el-button
>
</
template
>
</el-table-column>
<el-table-column
label=
"工作
站
名称"
label=
"工作
中心
名称"
align=
"center"
prop=
"workstationName"
/>
<el-table-column
label=
"工作站地点"
align=
"center"
prop=
"workstationAddress"
/>
<el-table-column
label=
"所在车间名称"
align=
"center"
...
...
@@ -167,7 +194,7 @@
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['m
es:m
d:workstation:edit']"
v-hasPermi=
"['md:workstation:edit']"
>
修改
</el-button
>
<el-button
...
...
@@ -175,7 +202,7 @@
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['m
es:m
d:workstation:remove']"
v-hasPermi=
"['md:workstation:remove']"
>
删除
</el-button
>
</
template
>
...
...
@@ -190,39 +217,83 @@
@
pagination=
"getList"
/>
<!-- 添加或修改工作
站
对话框 -->
<!-- 添加或修改工作
中心
对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"960px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form
class=
"page-form"
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"工作站编号"
prop=
"workstationCode"
>
<el-form-item
label=
"工厂"
prop=
"factoryCode"
>
<el-select
v-model=
"form.factoryCode"
class=
"form-item"
clearable
placeholder=
"请选择工厂"
>
<el-option
v-for=
"item in factoryCodes"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"工作中心编号"
prop=
"workstationCode"
>
<el-input
v-model=
"form.workstationCode"
placeholder=
"请输入工作站编码"
disabled
maxlength=
"64"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"工作
站
名称"
prop=
"workstationName"
>
<el-form-item
label=
"工作
中心
名称"
prop=
"workstationName"
>
<el-input
v-model=
"form.workstationName"
placeholder=
"请输入工作
站
名称"
placeholder=
"请输入工作
中心
名称"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"工作站地点"
prop=
"workstationAddress"
>
<el-input
v-model=
"form.workstationAddress"
placeholder=
"请输入工作站地点"
/>
<el-form-item
label=
"工作中心类型"
prop=
"workstationType"
>
<el-select
v-model=
"form.workstationType"
placeholder=
"请选择工作中心类型"
>
<el-option
v-for=
"dict in dict.type.md_workstation_type"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"工作中心用途"
prop=
"usageCode"
>
<el-select
v-model=
"form.usageCode"
placeholder=
"请选择工作中心用途"
>
<el-option
v-for=
"dict in dict.type.md_workstation_usage"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"所在车间"
prop=
"workshopId"
>
<el-select
style=
"width:100%;"
v-model=
"form.workshopId"
placeholder=
"请选择车间"
>
<el-select
v-model=
"form.workshopId"
placeholder=
"请选择车间"
>
<el-option
v-for=
"item in workshopOptions"
:key=
"item.workshopId"
...
...
@@ -232,11 +303,9 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"所属工序"
prop=
"processId"
>
<el-select
style=
"width:100%;"
v-model=
"form.processId"
placeholder=
"请选择工序"
>
<el-select
v-model=
"form.processId"
placeholder=
"请选择工序"
>
<el-option
v-for=
"item in processOptions"
:key=
"item.processId"
...
...
@@ -254,7 +323,103 @@
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"负责人"
prop=
"responsiblePerson"
>
<el-input
v-model=
"form.nickName"
placeholder=
"请选择负责人"
readonly=
"readonly"
>
<el-button
slot=
"append"
icon=
"el-icon-search"
@
click=
"handleBrandSelect"
></el-button>
</el-input>
<BrandSelect
ref=
"brSelect"
@
onSelected=
"onBrandSelected"
></BrandSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"标准值码"
prop=
"standardValueCode"
>
<el-select
v-model=
"form.standardValueCode"
placeholder=
"请选择标准值码"
>
<el-option
v-for=
"dict in dict.type.standard_value_code"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"加工方式"
prop=
"processingMethod"
>
<el-select
v-model=
"form.processingMethod"
placeholder=
"请选择标准值码"
>
<el-option
v-for=
"dict in dict.type.process_control_code"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<!-- 成本中心-待完善为查询接口 -->
<el-col
:span=
"12"
>
<el-form-item
label=
"成本中心"
prop=
"costCenterCode"
>
<el-input
v-model=
"form.costCenterCode"
placeholder=
"请选择成本中心"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"看机人数"
prop=
"watchingAircraftNum"
>
<el-input
v-model=
"form.watchingAircraftNum"
placeholder=
"请输入看机人数"
type=
"number"
min=
"1"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"是否倒冲"
prop=
"isBackflush"
>
<el-radio-group
v-model=
"form.isBackflush"
disabled
v-if=
"optType == 'view'"
>
<el-radio
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"dict.value"
>
{{ dict.label }}
</el-radio
>
</el-radio-group>
<el-radio-group
v-model=
"form.isBackflush"
v-else
>
<el-radio
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"dict.value"
>
{{ dict.label }}
</el-radio
>
</el-radio-group>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"是否启用"
prop=
"enableFlag"
>
<el-radio-group
v-model=
"form.enableFlag"
...
...
@@ -292,16 +457,16 @@
</el-row>
</el-form>
<el-divider
content-position=
"center"
v-if=
"form.workstationId != null"
>
工作
站
资源
</el-divider
>
工作
中心
资源
</el-divider
>
<MachinerySelectSingle
<
!-- <
MachinerySelectSingle
ref="machinerySelect"
@onSelected="onMachineryAdd"
></MachinerySelectSingle>
></MachinerySelectSingle>
-->
<el-row
v-if=
"form.workstationId != null"
>
<el-col
:span=
"24"
>
<el-carousel
trigger=
"click"
type=
"card"
:autoplay=
"false"
>
<el-carousel-item>
<
!-- <
el-carousel-item>
<el-card shadow="always" style="width: 450px">
<div slot="header">
<span>设备资源</span>
...
...
@@ -320,7 +485,7 @@
style="align: center"
></WorkStationMachine>
</el-card>
</el-carousel-item>
</el-carousel-item>
-->
<el-carousel-item>
<el-card
shadow=
"always"
style=
"width: 400px"
>
<div
slot=
"header"
>
...
...
@@ -340,7 +505,7 @@
></Workstationworker>
</el-card>
</el-carousel-item>
<el-carousel-item>
<
!-- <
el-carousel-item>
<el-card shadow="always" style="width: 400px">
<div slot="header">
<span>工装夹具</span>
...
...
@@ -358,7 +523,7 @@
:workstationId="form.workstationId"
></WorkStationTool>
</el-card>
</el-carousel-item>
</el-carousel-item>
-->
</el-carousel>
</el-col>
</el-row>
...
...
@@ -372,7 +537,6 @@
</el-dialog>
</div>
</template>
<
script
>
import
{
listWorkstation
,
...
...
@@ -382,31 +546,38 @@ import {
updateWorkstation
,
}
from
"@/api/mes/md/workstation"
;
//设备资源选择与保存
import
WorkStationMachine
from
"./components/machine"
;
import
MachinerySelectSingle
from
"@/components/machinerySelect/single.vue"
;
import
{
addWorkstationmachine
}
from
"@/api/mes/md/workstationmachine"
;
//
import WorkStationMachine from "./components/machine";
//
import MachinerySelectSingle from "@/components/machinerySelect/single.vue";
//
import { addWorkstationmachine } from "@/api/mes/md/workstationmachine";
//人力资源选择与保存
import
Workstationworker
from
"./components/worker"
;
import
BrandSelect
from
"@/components/userSelect/single.vue"
;
//工装夹具资源选择与保存
import
WorkStationTool
from
"./components/tool"
;
import
{
getTreeList
}
from
"@/api/mes/wm/warehouse"
;
//
import WorkStationTool from "./components/tool";
//
import { getTreeList } from "@/api/mes/wm/warehouse";
import
{
listAllProcess
}
from
"@/api/mes/pro/process"
;
import
{
genCode
}
from
"@/api/system/autocode/rule"
;
import
{
listAllWorkshop
}
from
"@/api/mes/md/workshop"
;
export
default
{
name
:
"Workstation"
,
dicts
:
[
"sys_yes_no"
],
dicts
:
[
"sys_yes_no"
,
"md_workstation_type"
,
"md_workstation_usage"
,
"standard_value_code"
,
"process_control_code"
,
],
components
:
{
WorkStationMachine
,
MachinerySelectSingle
,
//
WorkStationMachine,
//
MachinerySelectSingle,
Workstationworker
,
WorkStationTool
,
// WorkStationTool,
BrandSelect
,
},
data
()
{
return
{
//自动生成编码
autoGenFlag
:
fals
e
,
autoGenFlag
:
tru
e
,
optType
:
undefined
,
warehouseInfo
:
[],
warehouseOptions
:
[],
...
...
@@ -415,6 +586,10 @@ export default {
value
:
"pId"
,
label
:
"pName"
,
},
factoryCodes
:
[
{
value
:
"1000"
,
label
:
"广州市宝绅科技应用有限公司"
},
{
value
:
"1010"
,
label
:
"广州市宝绅科技有限公司RFID工厂"
},
],
// 遮罩层
loading
:
true
,
// 选中数组
...
...
@@ -443,16 +618,12 @@ export default {
pageSize
:
10
,
workstationCode
:
null
,
workstationName
:
null
,
workstationAddress
:
null
,
workshopId
:
null
,
workshopCode
:
null
,
workshopName
:
null
,
processId
:
null
,
processCode
:
null
,
processName
:
null
,
warehouseId
:
null
,
locationId
:
null
,
areaId
:
null
,
enableFlag
:
null
,
stdWorkingTime
:
null
,
},
...
...
@@ -485,7 +656,7 @@ export default {
this
.
getList
();
this
.
getWorkshops
();
this
.
getProcess
();
this
.
getWarehouseList
();
//
this.getWarehouseList();
},
methods
:
{
/** 查询工作站列表 */
...
...
@@ -510,38 +681,38 @@ export default {
});
},
//获取仓库
getWarehouseList
()
{
getTreeList
().
then
((
response
)
=>
{
this
.
warehouseOptions
=
response
.
data
;
this
.
warehouseOptions
.
map
((
w
)
=>
{
w
.
children
.
map
((
l
)
=>
{
let
lstr
=
JSON
.
stringify
(
l
.
children
)
.
replace
(
/locationId/g
,
"lId"
)
.
replace
(
/areaId/g
,
"pId"
)
.
replace
(
/areaName/g
,
"pName"
);
l
.
children
=
JSON
.
parse
(
lstr
);
});
//
getWarehouseList() {
//
getTreeList().then((response) => {
//
this.warehouseOptions = response.data;
//
this.warehouseOptions.map((w) => {
//
w.children.map((l) => {
//
let lstr = JSON.stringify(l.children)
//
.replace(/locationId/g, "lId")
//
.replace(/areaId/g, "pId")
//
.replace(/areaName/g, "pName");
//
l.children = JSON.parse(lstr);
//
});
let
wstr
=
JSON
.
stringify
(
w
.
children
)
.
replace
(
/warehouseId/g
,
"wId"
)
.
replace
(
/locationId/g
,
"pId"
)
.
replace
(
/locationName/g
,
"pName"
);
w
.
children
=
JSON
.
parse
(
wstr
);
});
let
ostr
=
JSON
.
stringify
(
this
.
warehouseOptions
)
.
replace
(
/warehouseId/g
,
"pId"
)
.
replace
(
/warehouseName/g
,
"pName"
);
this
.
warehouseOptions
=
JSON
.
parse
(
ostr
);
});
},
//
let wstr = JSON.stringify(w.children)
//
.replace(/warehouseId/g, "wId")
//
.replace(/locationId/g, "pId")
//
.replace(/locationName/g, "pName");
//
w.children = JSON.parse(wstr);
//
});
//
let ostr = JSON.stringify(this.warehouseOptions)
//
.replace(/warehouseId/g, "pId")
//
.replace(/warehouseName/g, "pName");
//
this.warehouseOptions = JSON.parse(ostr);
//
});
//
},
//选择默认的仓库、库区、库位
handleWarehouseChanged
(
obj
)
{
if
(
obj
!=
null
)
{
this
.
form
.
warehouseId
=
obj
[
0
];
this
.
form
.
locationId
=
obj
[
1
];
this
.
form
.
areaId
=
obj
[
2
];
}
},
//
handleWarehouseChanged(obj) {
//
if (obj != null) {
//
this.form.warehouseId = obj[0];
//
this.form.locationId = obj[1];
//
this.form.areaId = obj[2];
//
}
//
},
// 取消按钮
cancel
()
{
this
.
open
=
false
;
...
...
@@ -553,24 +724,28 @@ export default {
workstationId
:
null
,
workstationCode
:
null
,
workstationName
:
null
,
workstation
Address
:
null
,
workstation
Type
:
null
,
workshopId
:
null
,
workshopCode
:
null
,
workshopName
:
null
,
processId
:
null
,
processCode
:
null
,
processName
:
null
,
warehouseId
:
null
,
locationId
:
null
,
areaId
:
null
,
enableFlag
:
"Y"
,
remark
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
usageCode
:
null
,
responsiblePerson
:
null
,
nickName
:
null
,
isBackflush
:
null
,
standardValueCode
:
null
,
processingMethod
:
null
,
costCenterCode
:
null
,
watchingAircraftNum
:
null
,
factoryCode
:
null
,
};
this
.
autoGenFlag
=
fals
e
;
this
.
autoGenFlag
=
tru
e
;
this
.
resetForm
(
"form"
);
},
/** 搜索按钮操作 */
...
...
@@ -583,19 +758,29 @@ export default {
this
.
queryParams
=
{
pageNum
:
1
,
pageSize
:
10
,
workstationId
:
null
,
workstationCode
:
null
,
workstationName
:
null
,
workstation
Address
:
null
,
workstation
Type
:
null
,
workshopId
:
null
,
workshopCode
:
null
,
workshopName
:
null
,
processId
:
null
,
processCode
:
null
,
processName
:
null
,
warehouseId
:
null
,
locationId
:
null
,
areaId
:
null
,
enableFlag
:
null
,
enableFlag
:
"Y"
,
remark
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
usageCode
:
null
,
responsiblePerson
:
null
,
nickName
:
null
,
isBackflush
:
null
,
standardValueCode
:
null
,
processingMethod
:
null
,
costCenterCode
:
null
,
watchingAircraftNum
:
null
,
factoryCode
:
null
,
};
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
...
...
@@ -694,19 +879,19 @@ export default {
}
},
//设备资源选择弹出
handleMachineryAdd
()
{
this
.
$refs
.
machinerySelect
.
showFlag
=
true
;
},
//
handleMachineryAdd() {
//
this.$refs.machinerySelect.showFlag = true;
//
},
//设备资源选择回调
onMachineryAdd
(
rows
)
{
debugger
;
this
.
loading
=
true
;
rows
.
workstationId
=
this
.
form
.
workstationId
;
addWorkstationmachine
(
rows
).
then
((
response
)
=>
{
this
.
$refs
.
machineryList
.
getList
();
this
.
loading
=
false
;
});
},
//
onMachineryAdd(rows) {
//
debugger;
//
this.loading = true;
//
rows.workstationId = this.form.workstationId;
//
addWorkstationmachine(rows).then((response) => {
//
this.$refs.machineryList.getList();
//
this.loading = false;
//
});
//
},
//人力资源-岗位新增
handlePostAdd
()
{
this
.
$refs
.
postList
.
handleAdd
();
...
...
@@ -715,6 +900,16 @@ export default {
handleToolTypeAdd
()
{
this
.
$refs
.
toolList
.
handleAdd
();
},
handleBrandSelect
()
{
this
.
$refs
.
brSelect
.
showFlag
=
true
;
},
onBrandSelected
(
row
)
{
if
(
row
!=
undefined
&&
row
!=
null
)
{
// this.form.userId = row.userId;
this
.
form
.
userName
=
row
.
responsiblePerson
;
this
.
form
.
nickName
=
row
.
nickName
;
}
},
},
};
</
script
>
src/views/mes/pro/productionSolution/components/ProogingProcess.vue
View file @
5dd0e5db
...
...
@@ -13,14 +13,14 @@
/>
<el-table-column
label=
"加工方式"
prop=
"
controlCode
"
prop=
"
processingMethod
"
align=
"center"
width=
"215"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.process_control_code"
:value=
"scope.row.
controlCode
"
:value=
"scope.row.
processingMethod
"
/>
</
template
>
</el-table-column>
...
...
@@ -204,9 +204,9 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"加工方式"
prop=
"
controlCode
"
>
<el-form-item
label=
"加工方式"
prop=
"
processingMethod
"
>
<el-select
v-model=
"form.
controlCode
"
v-model=
"form.
processingMethod
"
placeholder=
"请选择加工方式"
clearable
style=
"width: 150px"
...
...
@@ -220,7 +220,7 @@
</el-select>
</el-form-item>
</el-col>
<
template
v-if=
"form.
controlCode
== 'PP02'"
>
<
template
v-if=
"form.
processingMethod
== 'PP02'"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"采购信息记录号"
...
...
src/views/mes/pro/workorder/components/WorkOrderSale.vue
View file @
5dd0e5db
...
...
@@ -23,7 +23,7 @@
</el-col>
</el-row>
-->
<el-form
<
!--
<
el-form
class=
"page-form"
:model=
"form"
ref=
"form"
...
...
@@ -294,9 +294,9 @@
></el-input></el-form-item
></el-col>
</el-row>
</el-form>
</el-form>
-->
<
!--
<
el-table
:data=
"tableData"
>
<el-table
:data=
"tableData"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"指令号"
...
...
@@ -456,6 +456,39 @@
prop=
"purchaseOrg"
width=
"120"
/>
<!--
<el-table-column
label=
"包装数量"
align=
"center"
prop=
"packNum"
width=
"120"
/>
<el-table-column
label=
"按指令包装"
align=
"center"
prop=
"packByDirective"
width=
"120"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.sys_yes_no"
:value=
"scope.row.packByDirective"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"按size包装"
align=
"center"
prop=
"packBySize"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.sys_yes_no"
:value=
"scope.row.packBySize"
/>
</
template
>
-->
<!-- </el-table-column> -->
<el-table-column
v-if=
"mode != 'info'"
label=
"操作"
...
...
@@ -470,16 +503,16 @@
@
click=
"updateRow(row, $index)"
>
修改
</el-button
>
<el-button
<
!--
<
el-button
type=
"text"
icon=
"el-icon-delete"
size=
"small"
@
click=
"deleteRow($index)"
>
删除
</el-button
>
>
-->
</
template
>
</el-table-column>
</el-table>
-->
</el-table>
</div>
</template>
...
...
src/views/mes/pro/workorder/proofingInfo.vue
View file @
5dd0e5db
...
...
@@ -187,7 +187,36 @@
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"厚度(丝)"
prop=
"thickness"
>
<el-input
v-model=
"form.thickness"
placeholder=
"厚度(丝)"
/>
<el-input
v-model=
"form.thickness"
placeholder=
"请输入厚度(丝)"
/>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"包装数量"
prop=
"packNum"
>
<el-input
v-model=
"form.packNum"
placeholder=
"请输入包装数量"
/>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"按指令包装"
prop=
"packByDirective"
>
<el-select
v-model=
"form.packByDirective"
placeholder=
"请选择类型"
>
<el-option
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"12"
>
<el-form-item
label=
"按size包装"
prop=
"packBySize"
>
<el-select
v-model=
"form.packBySize"
placeholder=
"请选择类型"
>
<el-option
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
...
...
@@ -267,6 +296,7 @@ export default {
"mes_workorder_status"
,
"mes_workorder_sourcetype"
,
"mes_workorder_type"
,
"sys_yes_no"
,
],
provide
()
{
return
{
...
...
@@ -315,6 +345,9 @@ export default {
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
packBySize
:
null
,
packByDirective
:
null
,
packNum
:
null
,
},
// 表单校验
rules
:
{
...
...
@@ -593,6 +626,9 @@ export default {
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
packBySize
:
null
,
packByDirective
:
null
,
packNum
:
null
,
};
this
.
$refs
[
"ProogingBomRef"
].
resetState
();
this
.
$refs
[
"ProogingProcessRef"
].
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