Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
cb8cff42
Commit
cb8cff42
authored
Aug 31, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
59ce326c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
378 additions
and
16 deletions
+378
-16
assembling.js
src/api/assembling.js
+18
-0
workOrder.vue
src/views/ProductionProcess/workOrder.vue
+82
-2
homePageTable.vue
src/views/homePageTable.vue
+0
-10
assembling.vue
src/views/productTraceability/assembling.vue
+38
-2
packing.vue
src/views/productTraceability/packing.vue
+240
-2
No files found.
src/api/assembling.js
View file @
cb8cff42
...
...
@@ -11,6 +11,24 @@ export function formAssembling(query) {
})
}
// 装配线别号信息导出
export
function
exportLineNo
(
query
)
{
return
request
({
url
:
'/nltorderlinelogic/exportByLine'
,
method
:
'get'
,
params
:
query
,
responseType
:
'blob'
})
}
// 查询Scan SN
export
function
getSnsVague
(
params
)
{
return
request
({
url
:
'/datamonitor/getSnsVague'
,
method
:
'get'
,
params
})
}
// 查询装配追溯详情
export
function
queryDeviceAss
(
query
)
{
return
request
({
...
...
src/views/ProductionProcess/workOrder.vue
View file @
cb8cff42
...
...
@@ -223,7 +223,7 @@
title=
"工单信息"
class=
"workOrderDialog"
:visible
.
sync=
"open"
width=
"
8
0%"
width=
"
9
0%"
append-to-body
@
close=
"cancel"
>
...
...
@@ -508,13 +508,23 @@
<span>
{{
scope
.
row
.
batchNo
||
'-'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
v-if=
"form.type === '包装线'"
:show-overflow-tooltip=
"true"
align=
"center"
>
<el-table-column
v-if=
"form.type === '包装线'"
:show-overflow-tooltip=
"true"
align=
"center"
prop=
"remarks"
>
<
template
slot=
"header"
>
<div>
备注
</div>
<!--
<div>
Name
</div>
-->
</
template
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
remarks
||
'-'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
v-if=
"form.type === '包装线'"
width=
"180px"
:show-overflow-tooltip=
"true"
>
<
template
slot=
"header"
>
<div>
操作
</div>
<!--
<div>
Name
</div>
-->
</
template
>
<
template
slot-scope=
"scope"
>
<el-link
type=
"primary"
@
click=
"changePo(scope.row)"
>
修改配置批号
</el-link>
<el-link
type=
"primary"
@
click=
"changeRemark(scope.row)"
>
备注
</el-link>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -589,6 +599,39 @@
<el-button
class=
"redBtn"
type=
"danger"
@
click=
"OKPo"
>
确定 Confirm
</el-button>
</div>
</el-dialog>
<el-dialog
:close-on-click-modal=
"false"
title=
"修改备注"
class=
"workOrderDialogImport"
:visible
.
sync=
"remarksDialog"
width=
"40%"
append-to-body
>
<el-form
ref=
"formRemarks"
:model=
"formRemarks"
size=
"small"
label-width=
"auto"
>
<el-form-item
class=
"labelHeight"
label=
"批号"
prop=
"batchNo"
>
<div
slot=
"label"
class=
"labelClassLot"
>
<div
class=
"labelName"
>
备注
</div>
<div
class=
"labelName"
>
Remarks
</div>
</div>
<el-input
v-model
.
trim=
"formRemarks.remarks"
:maxlength=
"300"
type=
"textarea"
:rows=
"2"
:autosize=
"{ minRows: 4, maxRows: 6}"
show-word-limit
placeholder=
"请输入备注"
clearable
style=
"width: 100%;"
size=
"small"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"canleBtn"
@
click=
"cancelRemarks"
>
关闭 Close
</el-button>
<el-button
class=
"redBtn"
type=
"danger"
@
click=
"OKReamrks"
>
确定 Confirm
</el-button>
</div>
</el-dialog>
</div>
</template>
...
...
@@ -621,6 +664,11 @@ export default {
batchNo
:
''
,
businessId
:
''
},
// 备注表单
formRemarks
:
{
remarks
:
''
,
businessId
:
''
},
// tabs默认选中
tabsName
:
'bom'
,
// 搜索框参数
...
...
@@ -632,6 +680,8 @@ export default {
},
// po弹窗标志
poDialog
:
false
,
// 备注弹窗标志
remarksDialog
:
false
,
// 遮罩标志
Loading
:
true
,
Loading1
:
true
,
...
...
@@ -979,9 +1029,39 @@ export default {
this
.
formPo
.
batchNo
=
JSON
.
parse
(
JSON
.
stringify
(
row
.
batchNo
))
this
.
poDialog
=
true
},
/**
* 修改配置备注点击事件
*/
changeRemark
(
row
)
{
this
.
formRemarks
.
businessId
=
row
.
batchId
this
.
formRemarks
.
remarks
=
JSON
.
parse
(
JSON
.
stringify
(
row
.
remarks
))
this
.
remarksDialog
=
true
},
cancelPo
()
{
this
.
poDialog
=
false
},
cancelRemarks
()
{
this
.
remarksDialog
=
false
},
OKReamrks
()
{
const
params
=
{
businessId
:
this
.
formRemarks
.
businessId
,
remarks
:
this
.
formRemarks
.
remarks
}
editPo
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'操作成功'
)
this
.
getLineTable
()
this
.
formRemarks
.
businessId
=
''
this
.
formRemarks
.
remarks
=
''
this
.
remarksDialog
=
false
}
else
{
this
.
$message
.
error
(
res
.
message
)
}
}).
catch
(
err
=>
{
this
.
$message
.
error
(
err
.
message
)
})
},
OKPo
()
{
this
.
$refs
[
'formPo'
].
validate
(
validPO
=>
{
if
(
validPO
)
{
...
...
src/views/homePageTable.vue
View file @
cb8cff42
...
...
@@ -943,16 +943,6 @@ export default {
},
getRelationSnTable
(
row
)
{
this
.
openSnModalFlag
=
true
// const params = {
// orderId: this.orderId,
// materSn: row.materSn,
// lineId: row.lineId
// }
// this.SNModelLoading1 = true
// getSnsDetail(params).then(res => {
// this.SNModelLoading1 = false
// this.SNRelationTableList = res.data
// })
const
params
=
{
materSn
:
row
.
materSn
,
scanType
:
'1'
...
...
src/views/productTraceability/assembling.vue
View file @
cb8cff42
...
...
@@ -500,6 +500,14 @@
</el-col>
</el-row>
</el-form>
<div
style=
"float: right;margin: 0 10px 10px 10px"
>
<el-button
type=
"danger"
size=
"small"
class=
"redBtn"
@
click=
"handleExport"
>
导出 Export
</el-button>
</div>
<el-table
v-if=
"open.beachLineDialog || open.kitsDialog"
v-loading=
"false"
...
...
@@ -978,8 +986,8 @@
</template>
<
script
>
import
{
formAssembling
,
queryBatch
,
queryDeviceAss
,
queryTestInfo
}
from
'@/api/assembling'
import
{
getOrder
,
list
ModelOrder
,
list
OrderLine
,
listOrderMater
,
listStation
}
from
'@/api/workOrder'
import
{
formAssembling
,
queryBatch
,
queryDeviceAss
,
queryTestInfo
,
exportLineNo
}
from
'@/api/assembling'
import
{
getOrder
,
listOrderLine
,
listOrderMater
,
listStation
}
from
'@/api/workOrder'
import
{
listRepairRecordDetails
}
from
'@/api/repairRecord'
import
{
getDicts
}
from
'@/api/system/dict/data'
...
...
@@ -1126,6 +1134,34 @@ export default {
}
},
methods
:
{
/**
* 装配线别号信息导出
*/
handleExport
()
{
const
queryParams
=
{
lineId
:
this
.
form
.
lineId
,
orderId
:
this
.
form
.
orderId
}
this
.
$confirm
(
'是否确认导出装配线别号信息?'
,
'提示'
,
{
confirmButtonText
:
'确定 Confirm'
,
cancelButtonText
:
'取消 Cancel'
,
cancelButtonClass
:
'btn-custom-cancel'
,
type
:
'warning'
}).
then
(
function
()
{
return
exportLineNo
(
queryParams
).
then
(
response
=>
{
const
blob
=
new
Blob
([
response
])
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
downloadElement
.
href
=
href
downloadElement
.
download
=
'装配线别号信息'
+
'.xls'
// 下载后文件名
document
.
body
.
appendChild
(
downloadElement
)
downloadElement
.
click
()
// 点击下载
document
.
body
.
removeChild
(
downloadElement
)
// 下载完成移除元素
window
.
URL
.
revokeObjectURL
(
href
)
// 释放掉blob对象
// this.download(response.msg);
})
})
},
/**
* 查询按钮方法
*/
...
...
src/views/productTraceability/packing.vue
View file @
cb8cff42
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