Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
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
ximai
mes-pad
Commits
1f3a00d3
Commit
1f3a00d3
authored
Oct 28, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
89f2e5f1
8c6f39cb
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
252 additions
and
106 deletions
+252
-106
http.api.js
common/http.api.js
+3
-1
th_TH.json
lang/th_TH.json
+3
-2
zh_CN.json
lang/zh_CN.json
+7
-2
abnormalReason.vue
pages/mes/prodReport/components/abnormalReason.vue
+116
-0
userPersonnel.vue
pages/mes/prodReport/components/userPersonnel.vue
+11
-30
index.vue
pages/mes/prodReport/index.vue
+112
-71
No files found.
common/http.api.js
View file @
1f3a00d3
...
@@ -147,7 +147,7 @@ const install = (Vue, vm) => {
...
@@ -147,7 +147,7 @@ const install = (Vue, vm) => {
//查看人员管理
//查看人员管理
userQuery
:
(
params
=
{})
=>
userQuery
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/md/workunitWorker/
list
'
,
params
),
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/md/workunitWorker/
getMdWorkunitWorkerByUserName
'
,
params
),
//增加缺陷记录
//增加缺陷记录
addDefectrecord
:
(
params
=
{})
=>
addDefectrecord
:
(
params
=
{})
=>
...
@@ -420,6 +420,8 @@ const install = (Vue, vm) => {
...
@@ -420,6 +420,8 @@ const install = (Vue, vm) => {
abnormal
:
{
abnormal
:
{
detail
:
(
params
=
{})
=>
detail
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/qc/information/list'
,
params
),
vm
.
$u
.
get
(
config
.
adminPath
+
'/qc/information/list'
,
params
),
getAbnormalNumber
:
()
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/qc/report/getAbnormalNumber'
),
newlyAdd
:
(
params
=
{})
=>
newlyAdd
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/qc/report'
,
params
),
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/qc/report'
,
params
),
},
},
...
...
lang/th_TH.json
View file @
1f3a00d3
...
@@ -204,7 +204,7 @@
...
@@ -204,7 +204,7 @@
"请输入工作单元名称"
:
"กรุณาใส่ชื่อหน่วยงาน"
,
"请输入工作单元名称"
:
"กรุณาใส่ชื่อหน่วยงาน"
,
"工作中心名称"
:
"ชื่อศูนย์งาน"
,
"工作中心名称"
:
"ชื่อศูนย์งาน"
,
"工号"
:
"หมายเลขพนักงาน"
,
"工号"
:
"หมายเลขพนักงาน"
,
"请
输入编号"
:
"กรุณาใส่หมายเลข
"
,
"请
扫描/输入工号"
:
"กรุณาสแกน/ป้อนหมายเลขที่ทํางานของคุณ
"
,
"姓名"
:
"ชื่อ"
,
"姓名"
:
"ชื่อ"
,
"请输入名称"
:
"กรุณาใส่ชื่อ"
,
"请输入名称"
:
"กรุณาใส่ชื่อ"
,
"规格书类型:"
:
"ประเภทเอกสารสเปค:"
,
"规格书类型:"
:
"ประเภทเอกสารสเปค:"
,
...
@@ -296,5 +296,6 @@
...
@@ -296,5 +296,6 @@
"开始下载"
:
"เริ่มดาวน์โหลด"
,
"开始下载"
:
"เริ่มดาวน์โหลด"
,
"进度:"
:
"ความคืบหน้า:"
,
"进度:"
:
"ความคืบหน้า:"
,
"共"
:
"ทั้งหมด"
,
"共"
:
"ทั้งหมด"
,
"条"
:
"บทความ"
"条"
:
"บทความ"
,
"车间异常单编号"
:
"หมายเลขคําสั่งซื้อข้อยกเว้นร้านค้า"
}
}
\ No newline at end of file
lang/zh_CN.json
View file @
1f3a00d3
...
@@ -204,7 +204,7 @@
...
@@ -204,7 +204,7 @@
"请输入工作单元名称"
:
"请输入工作单元名称"
,
"请输入工作单元名称"
:
"请输入工作单元名称"
,
"工作中心名称"
:
"工作中心名称"
,
"工作中心名称"
:
"工作中心名称"
,
"工号"
:
"工号"
,
"工号"
:
"工号"
,
"请
输入编号"
:
"请输入编
号"
,
"请
扫描/输入工号"
:
"请扫描/输入工
号"
,
"姓名"
:
"姓名"
,
"姓名"
:
"姓名"
,
"请输入名称"
:
"请输入名称"
,
"请输入名称"
:
"请输入名称"
,
"规格书类型:"
:
"规格书类型:"
,
"规格书类型:"
:
"规格书类型:"
,
...
@@ -296,5 +296,10 @@
...
@@ -296,5 +296,10 @@
"开始下载"
:
"开始下载"
,
"开始下载"
:
"开始下载"
,
"进度:"
:
"进度:"
,
"进度:"
:
"进度:"
,
"共"
:
"共"
,
"共"
:
"共"
,
"条"
:
"条"
"条"
:
"条"
,
"车间异常单编号"
:
"车间异常单编号"
,
"查不到报工人数据"
:
"查不到报工人数据"
,
"请输入报工人工号"
:
"请输入报工人工号"
,
"选择原因"
:
"选择原因"
,
"不合格原因"
:
"不合格原因"
}
}
\ No newline at end of file
pages/mes/prodReport/components/abnormalReason.vue
0 → 100644
View file @
1f3a00d3
<
template
>
<view
class=
"dmodel-table"
>
<view
class=
"search"
>
<u-form
:model=
"tableParams"
labelAlign=
"right"
class=
"tableForm"
>
<u-form-item
:label=
"$t('不合格原因')"
label-width=
"100px"
name=
"abnormalReason"
>
<uni-easyinput
type=
"text"
v-model=
"tableParams.abnormalReason"
/>
</u-form-item>
<u-form-item>
<u-button
class=
"btn"
@
click=
"handleClick"
type=
"primary"
size=
"medium"
>
{{
$t
(
'搜索'
)
}}
</u-button>
</u-form-item>
</u-form>
</view>
<view>
<zb-table
ref=
"zbTable"
rowKey=
"abnormalId"
:columns=
"tableColumn"
:data=
"tableData"
:stripe=
"true"
@
toggleRowSelection=
"toggleRowSelection"
></zb-table>
</view>
<view
class=
"uni-pagination-box"
><uni-pagination
show-icon
:page-size=
"params.pageSize"
:current=
"params.pageNum"
:total=
"total"
@
change=
"change"
/></view>
</view>
</
template
>
<
script
>
import
i18n
from
'../../../../lang/index'
export
default
{
props
:
{
},
data
()
{
return
{
params
:
{
pageNum
:
1
,
pageSize
:
10
,
abnormalType
:
"UNQUALIFIED_REASON"
},
total
:
0
,
tableParams
:
{
abnormalReason
:
null
},
tableData
:
[],
tableSelectData
:
[],
tableColumn
:
[
{
type
:
'radio'
,
width
:
40
},
{
name
:
'abnormalReason'
,
label
:
i18n
.
t
(
'不合格原因'
),
width
:
160
},
{
name
:
'remark'
,
label
:
i18n
.
t
(
'备注'
),
width
:
160
}
]
};
},
// computed: {
// tableData() {
// return this.data || []
// }
// },
mounted
()
{
this
.
getList
();
// this.data.workstationName
},
methods
:
{
handleClick
()
{
if
(
this
.
tableParams
.
abnormalReason
)
{
this
.
params
.
abnormalReason
=
this
.
tableParams
.
abnormalReason
;
}
else
{
delete
this
.
params
.
abnormalReason
}
this
.
params
.
pageNum
=
1
;
this
.
getList
();
},
async
getList
()
{
const
res
=
await
this
.
$u
.
api
.
abnormal
.
detail
(
this
.
params
);
if
(
res
.
code
==
200
)
{
this
.
tableData
=
res
.
rows
this
.
total
=
res
.
total
;
}
},
// 分页触发
change
(
e
)
{
this
.
params
.
pageNum
=
e
.
current
;
this
.
getList
();
},
toggleRowSelection
(
checked
,
arr
)
{
this
.
tableSelectData
=
arr
;
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.dmodel-table
{
height
:
1200rpx
;
margin-top
:
20rpx
;
padding
:
0
20rpx
;
position
:
relative
;
}
.tableForm
{
display
:
flex
;
margin-bottom
:
20rpx
;
}
.btn
{
margin-left
:
10px
;
}
.uni-pagination-box
{
position
:
absolute
;
right
:
20rpx
;
bottom
:
40rpx
;
}
</
style
>
\ No newline at end of file
pages/mes/prodReport/components/userPersonnel.vue
View file @
1f3a00d3
...
@@ -3,20 +3,13 @@
...
@@ -3,20 +3,13 @@
<view
class=
"search"
>
<view
class=
"search"
>
<u-form
:model=
"tableParams"
labelAlign=
"right"
class=
"tableForm"
>
<u-form
:model=
"tableParams"
labelAlign=
"right"
class=
"tableForm"
>
<u-form-item
:label=
"$t('工号')"
label-width=
"60px"
name=
"userName"
>
<u-form-item
:label=
"$t('工号')"
label-width=
"60px"
name=
"userName"
>
<uni-easyinput
type=
"text"
v-model=
"tableParams.userName"
:placeholder=
"$t('请输入编号')"
/>
<u-input
type=
"text"
v-model=
"tableParams.userName"
:placeholder=
"$t('请扫描/输入工号')"
@
confirm=
"confirmUserName($event)"
/>
</u-form-item>
<u-form-item
:label=
"$t('姓名')"
label-width=
"60px"
name=
"nickName"
>
<uni-easyinput
type=
"text"
v-model=
"tableParams.nickName"
:placeholder=
"$t('请输入名称')"
/>
</u-form-item>
<u-form-item>
<u-button
class=
"btn"
@
click=
"handleClick"
type=
"primary"
size=
"medium"
>
{{
$t
(
'搜索'
)
}}
</u-button>
</u-form-item>
</u-form-item>
</u-form>
</u-form>
</view>
</view>
<view>
<view>
<zb-table
ref=
"zbTable"
rowKey=
"userName"
:columns=
"tableColumn"
:data=
"tableData"
:stripe=
"true"
@
toggleRowSelection=
"toggleRowSelection"
></zb-table>
<zb-table
ref=
"zbTable"
rowKey=
"userName"
:columns=
"tableColumn"
:data=
"tableData"
:stripe=
"true"
@
toggleRowSelection=
"toggleRowSelection"
></zb-table>
</view>
</view>
<view
class=
"uni-pagination-box"
><uni-pagination
show-icon
:page-size=
"params.pageSize"
:current=
"params.pageNum"
:total=
"total"
@
change=
"change"
/></view>
</view>
</view>
</
template
>
</
template
>
...
@@ -33,8 +26,6 @@ export default {
...
@@ -33,8 +26,6 @@ export default {
data
()
{
data
()
{
return
{
return
{
params
:
{
params
:
{
pageNum
:
1
,
pageSize
:
10
,
workunitId
:
this
.
data
?.
workunitId
||
null
workunitId
:
this
.
data
?.
workunitId
||
null
},
},
total
:
0
,
total
:
0
,
...
@@ -45,10 +36,6 @@ export default {
...
@@ -45,10 +36,6 @@ export default {
tableData
:
[],
tableData
:
[],
tableSelectData
:
[],
tableSelectData
:
[],
tableColumn
:
[
tableColumn
:
[
{
type
:
'selection'
,
width
:
40
},
{
{
name
:
'userName'
,
name
:
'userName'
,
label
:
i18n
.
t
(
'工号'
),
label
:
i18n
.
t
(
'工号'
),
...
@@ -74,10 +61,15 @@ export default {
...
@@ -74,10 +61,15 @@ export default {
// }
// }
// },
// },
mounted
()
{
mounted
()
{
this
.
getList
();
//
this.getList();
// this.data.workstationName
// this.data.workstationName
},
},
methods
:
{
methods
:
{
confirmUserName
(
e
)
{
this
.
tableParams
.
userName
=
e
if
(
!
this
.
tableParams
.
userName
)
return
this
.
$u
.
toast
(
i18n
.
t
(
'请输入报工人工号'
))
this
.
handleClick
()
},
handleClick
()
{
handleClick
()
{
if
(
this
.
tableParams
.
userName
)
{
if
(
this
.
tableParams
.
userName
)
{
this
.
params
.
userName
=
this
.
tableParams
.
userName
;
this
.
params
.
userName
=
this
.
tableParams
.
userName
;
...
@@ -89,27 +81,16 @@ export default {
...
@@ -89,27 +81,16 @@ export default {
}
else
{
}
else
{
delete
this
.
params
.
nickName
delete
this
.
params
.
nickName
}
}
this
.
params
.
pageNum
=
1
;
this
.
getList
();
this
.
getList
();
},
},
async
getList
()
{
async
getList
()
{
const
res
=
await
this
.
$u
.
api
.
userQuery
(
this
.
params
);
const
res
=
await
this
.
$u
.
api
.
userQuery
(
this
.
params
);
console
.
log
(
res
,
'res'
);
if
(
res
.
code
==
200
&&
res
.
data
)
{
if
(
res
.
code
==
200
)
{
this
.
tableData
.
push
(
res
.
data
)
this
.
tableData
=
res
.
rows
.
map
((
item
)
=>
{
}
else
{
return
{
this
.
$u
.
toast
(
i18n
.
t
(
'查不到报工人数据'
))
...
item
,
workunitName
:
this
.
data
?.
workunitName
||
null
};
});
this
.
total
=
res
.
total
;
}
}
},
},
// 分页触发
change
(
e
)
{
this
.
params
.
pageNum
=
e
.
current
;
this
.
getList
();
},
toggleRowSelection
(
checked
,
arr
)
{
toggleRowSelection
(
checked
,
arr
)
{
this
.
tableSelectData
=
arr
;
this
.
tableSelectData
=
arr
;
...
...
pages/mes/prodReport/index.vue
View file @
1f3a00d3
...
@@ -157,7 +157,7 @@
...
@@ -157,7 +157,7 @@
<
/u-form-item
>
<
/u-form-item
>
<
/u-col
>
<
/u-col
>
<
u
-
col
span
=
"6"
>
<
u
-
col
span
=
"6"
>
<
u
-
form
-
item
:
label
=
"$t('工序:')"
prop
=
"
nick
Name"
>
<
u
-
form
-
item
:
label
=
"$t('工序:')"
prop
=
"
process
Name"
>
{{
feedback
.
processName
}}
{{
feedback
.
processName
}}
<
/u-form-item
>
<
/u-form-item
>
<
/u-col
>
<
/u-col
>
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
<
/u-form-item
>
<
/u-form-item
>
<
/u-col
>
<
/u-col
>
<
u
-
col
span
=
"6"
>
<
u
-
col
span
=
"6"
>
<
u
-
form
-
item
:
label
=
"$t('未收货数:')"
prop
=
"
nickName
"
>
<
u
-
form
-
item
:
label
=
"$t('未收货数:')"
prop
=
"
unquantityFeedback
"
>
{{
feedback
.
unquantityFeedback
}}
{{
feedback
.
unquantityFeedback
}}
<
/u-form-item
>
<
/u-form-item
>
<
/u-col
>
<
/u-col
>
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
<
/u-form-item
>
<
/u-form-item
>
<
/u-col
>
<
/u-col
>
<
u
-
col
span
=
"6"
>
<
u
-
col
span
=
"6"
>
<
u
-
form
-
item
:
label
=
"$t('产品名称:')"
prop
=
"
nick
Name"
>
<
u
-
form
-
item
:
label
=
"$t('产品名称:')"
prop
=
"
product
Name"
>
{{
feedback
.
productName
}}
{{
feedback
.
productName
}}
<
/u-form-item
>
<
/u-form-item
>
<
/u-col
>
<
/u-col
>
...
@@ -283,14 +283,7 @@
...
@@ -283,14 +283,7 @@
>
>
<
u
-
number
-
box
<
u
-
number
-
box
:
min
=
"0"
:
min
=
"0"
@
change
=
"quantityChanged()"
:
max
=
"getFeedbackMax(feedback)"
:
max
=
"
feedback.isSerialReport &&
Number(feedback.isSerialReport) === 1 &&
!isWaiXie
? 1
: 9999999999999999999999999999999999999999
"
:
input
-
width
=
"190"
:
input
-
width
=
"190"
v
-
model
=
"feedback.quantityQualify"
v
-
model
=
"feedback.quantityQualify"
:
long
-
press
=
"false"
:
long
-
press
=
"false"
...
@@ -304,8 +297,7 @@
...
@@ -304,8 +297,7 @@
>
>
<
u
-
number
-
box
<
u
-
number
-
box
:
min
=
"0"
:
min
=
"0"
@
change
=
"quantityChanged()"
:
max
=
"getquantityQualifyMax(feedback)"
:
max
=
"99999999999999999999999999999999999999999"
:
input
-
width
=
"190"
:
input
-
width
=
"190"
v
-
model
=
"feedback.quantityUnqualify"
v
-
model
=
"feedback.quantityUnqualify"
:
long
-
press
=
"false"
:
long
-
press
=
"false"
...
@@ -323,14 +315,25 @@
...
@@ -323,14 +315,25 @@
/>
/>
<
/u-form-item
>
<
/u-form-item
>
<
/u-col
>
<
/u-col
>
<
u
-
col
span
=
"6"
>
<
u
-
form
-
item
:
label
=
"$t('不合格原因:')"
prop
=
"abnormalReason"
>
<
u
-
input
v
-
model
=
"feedback.abnormalReason"
disabled
><
/u-input
>
<
u
-
button
@
tap
=
"chooseReason(feedback)"
type
=
"success"
size
=
"mini"
>
{{
$t
(
'选择原因'
)
}}
<
/u-butto
n
>
<
/u-form-item
>
<
/u-col
>
<
u
-
col
:
span
=
"6"
>
<
u
-
col
:
span
=
"6"
>
<
u
-
form
-
item
:
label
=
"$t('报工人:')"
prop
=
"nickName"
>
<
u
-
form
-
item
:
label
=
"$t('报工人:')"
prop
=
"nickName"
>
<
u
-
input
v
-
model
=
"feedback.nickName"
><
/u-input
>
<
u
-
input
v
-
model
=
"feedback.nickName"
disabled
><
/u-input
>
<
u
-
button
<
u
-
button
@
tap
=
"getCode(feedback)"
@
tap
=
"getCode(feedback)"
type
=
"success"
type
=
"success"
size
=
"mini"
size
=
"mini"
>
{{
$t
(
'报工人员'
)
}}
<
/u-butto
n
>
{{
$t
(
'报工人员
扫码
'
)
}}
<
/u-butto
n
>
>
<
/u-form-item
>
<
/u-form-item
>
<
/u-col
>
<
/u-col
>
...
@@ -345,25 +348,6 @@
...
@@ -345,25 +348,6 @@
<
/u-form-item
>
<
/u-form-item
>
<
/u-col
>
<
/u-col
>
<
/u-row
>
<
/u-row
>
<!--
<
u
-
row
>
-->
<!--
<
u
-
col
span
=
"3"
width
:
max
-
content
>
<
u
-
button
class
=
"auto-size-button"
type
=
"default"
@
tap
=
"changeShow()"
>
隐藏
<
/u-button
>
<
/u-col
>
<
view
class
=
"box"
v
-
if
=
"timeTest.isshow"
>
<
u
-
col
span
=
"6"
>
<
u
-
form
-
item
label
=
"合格数量(副):"
prop
=
"feedbackQuantityFu"
>
<
uni
-
number
-
box
:
min
=
"0"
@
change
=
"quantityChangedV2(feedback, feedbackQuantityFu)"
v
-
model
=
"feedbackQuantityFu"
><
/uni-number-box
>
<
/u-form-item
>
<
/u-col
>
<
u
-
col
span
=
"6"
>
<
u
-
form
-
item
label
=
"不良品数量(副):"
prop
=
"feedbackUnQuantityFu"
>
<
uni
-
number
-
box
:
min
=
"0"
@
change
=
"quantityChangedV2(feedback, feedbackUnQuantityFu)"
v
-
model
=
"feedbackUnQuantityFu"
><
/uni-number-box
>
<
/u-form-item
>
<
/u-col
>
<
/view> --
>
<
/u-form
>
<
/u-form
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
...
@@ -433,6 +417,29 @@
...
@@ -433,6 +417,29 @@
/>
/>
<
/view
>
<
/view
>
<
/u-modal
>
<
/u-modal
>
<!--
//生产报工报工人员 -->
<
u
-
modal
:
title
=
"$t('不合格原因')"
:
cancelText
=
"$t('取消')"
:
confirmText
=
"$t('确认')"
@
confirm
=
"abnormalReasonDetermine()"
show
-
cancel
-
button
:
title
-
style
=
"{
'background-color': '#1E3770',
color: '#FFFFFF',
'line-height': '37px',
'padding-top': '0px',
}
"
v
-
model
=
"abnormalReasonVisible"
width
=
"1300rpx"
>
<
view
>
<
abnormalReason
ref
=
"abnormalReasonRef"
v
-
if
=
"abnormalReasonVisible"
/>
<
/view
>
<
/u-modal
>
<
u
-
modal
<
u
-
modal
:
title
=
"$t('暂停原因')"
:
title
=
"$t('暂停原因')"
:
cancelText
=
"$t('取消')"
:
cancelText
=
"$t('取消')"
...
@@ -494,6 +501,11 @@
...
@@ -494,6 +501,11 @@
<
/u-form-item> --
>
<
/u-form-item> --
>
<
u
-
row
>
<
u
-
row
>
<
u
-
col
span
=
"6"
>
<
u
-
form
-
item
:
label
=
"$t('车间异常单编号')"
prop
=
"abnormalNumber"
label
-
width
=
"110px"
>
<
u
-
input
v
-
model
=
"ExceptionForms.abnormalNumber"
disabled
><
/u-input
>
<
/u-form-item
>
<
/u-col
>
<
u
-
col
span
=
"6"
>
<
u
-
col
span
=
"6"
>
<
u
-
form
-
item
:
label
=
"$t('异常类型')"
prop
=
"abnormalType"
>
<
u
-
form
-
item
:
label
=
"$t('异常类型')"
prop
=
"abnormalType"
>
<
uni
-
data
-
select
<
uni
-
data
-
select
...
@@ -681,6 +693,7 @@ import config from '@/common/config.js'
...
@@ -681,6 +693,7 @@ import config from '@/common/config.js'
import
SearchInput
from
'@/components/ScanInput/index.vue'
import
SearchInput
from
'@/components/ScanInput/index.vue'
import
User
from
'@/components/User/User.vue'
import
User
from
'@/components/User/User.vue'
import
abnormalReason
from
'./components/abnormalReason.vue'
import
userPersonnel
from
'./components/userPersonnel.vue'
import
userPersonnel
from
'./components/userPersonnel.vue'
import
printTemplate
from
'./components/printTemplate.vue'
import
printTemplate
from
'./components/printTemplate.vue'
import
editFeeding
from
'./components/editFeeding.vue'
import
editFeeding
from
'./components/editFeeding.vue'
...
@@ -697,6 +710,7 @@ export default {
...
@@ -697,6 +710,7 @@ export default {
mixins
:
[
cameraAuthMixin
],
mixins
:
[
cameraAuthMixin
],
components
:
{
components
:
{
SearchInput
,
SearchInput
,
abnormalReason
,
editFeeding
,
editFeeding
,
userPersonnel
,
userPersonnel
,
printTemplate
,
printTemplate
,
...
@@ -861,6 +875,7 @@ export default {
...
@@ -861,6 +875,7 @@ export default {
reason
:
null
,
reason
:
null
,
desc
:
null
,
desc
:
null
,
}
,
}
,
abnormalReasonVisible
:
false
,
screenHeight
:
768
,
screenHeight
:
768
,
usePersonData
:
{
}
,
usePersonData
:
{
}
,
title
:
i18n
.
t
(
'生产报工'
),
title
:
i18n
.
t
(
'生产报工'
),
...
@@ -1078,6 +1093,7 @@ export default {
...
@@ -1078,6 +1093,7 @@ export default {
ExceptionForms
:
{
ExceptionForms
:
{
abnormalType
:
null
,
abnormalType
:
null
,
abnormalNumber
:
null
,
abnormalReason
:
null
,
abnormalReason
:
null
,
}
,
}
,
viewSopPicture
:
[],
viewSopPicture
:
[],
...
@@ -1610,6 +1626,24 @@ export default {
...
@@ -1610,6 +1626,24 @@ export default {
numclik
(...
arg
)
{
numclik
(...
arg
)
{
console
.
log
(
'99999999'
,
arg
)
console
.
log
(
'99999999'
,
arg
)
}
,
}
,
getFeedbackMax
(
feedback
){
if
(
feedback
.
isSerialReport
&&
Number
(
feedback
.
isSerialReport
)
===
1
&&
!
this
.
isWaiXie
)
{
return
1
}
else
if
(
this
.
isWaiXie
||
feedback
.
surpassState
){
return
9999999999999999999999999999999999999999
}
else
if
(
!
feedback
.
surpassState
)
{
return
feedback
.
workorderUnfeedbackSum
-
feedback
.
quantityUnqualify
}
}
,
getquantityQualifyMax
(
feedback
){
if
(
feedback
.
isSerialReport
&&
Number
(
feedback
.
isSerialReport
)
===
1
&&
!
this
.
isWaiXie
)
{
return
1
}
else
if
(
this
.
isWaiXie
||
feedback
.
surpassState
){
return
9999999999999999999999999999999999999999
}
else
if
(
!
feedback
.
surpassState
)
{
return
feedback
.
workorderUnfeedbackSum
-
feedback
.
quantityQualify
}
}
,
changeWorkstation
()
{
changeWorkstation
()
{
uni
.
$emit
(
'changeWorkunit'
)
uni
.
$emit
(
'changeWorkunit'
)
}
,
}
,
...
@@ -1887,6 +1921,9 @@ export default {
...
@@ -1887,6 +1921,9 @@ export default {
this
.
usePersonData
=
row
this
.
usePersonData
=
row
this
.
userTempVisible
=
true
this
.
userTempVisible
=
true
}
,
}
,
chooseReason
(
row
)
{
this
.
abnormalReasonVisible
=
true
}
,
toggleRowSelection
(
checked
,
arr
)
{
toggleRowSelection
(
checked
,
arr
)
{
console
.
log
(
arr
,
'this.tableSelectData'
)
console
.
log
(
arr
,
'this.tableSelectData'
)
this
.
tableSelectData
=
arr
this
.
tableSelectData
=
arr
...
@@ -1894,11 +1931,20 @@ export default {
...
@@ -1894,11 +1931,20 @@ export default {
knifeTemp
()
{
knifeTemp
()
{
// this.$u.toast('刀具校验通过!');
// this.$u.toast('刀具校验通过!');
}
,
}
,
abnormalReasonDetermine
(){
const
tableSelectData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
$refs
.
abnormalReasonRef
.
tableSelectData
)
)
this
.
feedbackForms
[
0
].
abnormalId
=
tableSelectData
[
0
].
abnormalId
this
.
feedbackForms
[
0
].
abnormalReason
=
tableSelectData
[
0
].
abnormalReason
this
.
feedbackForms
[
0
].
abnormalType
=
tableSelectData
[
0
].
abnormalType
this
.
feedbackForms
[
0
].
abnormalRemark
=
tableSelectData
[
0
].
remark
}
,
userDetermine
()
{
userDetermine
()
{
let
nick
=
''
let
nick
=
''
let
user
=
''
let
user
=
''
const
tableSelectData
=
JSON
.
parse
(
const
tableSelectData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
$refs
.
userPersonnelRef
.
table
Select
Data
)
JSON
.
stringify
(
this
.
$refs
.
userPersonnelRef
.
tableData
)
)
)
const
a
=
tableSelectData
.
length
-
1
const
a
=
tableSelectData
.
length
-
1
tableSelectData
.
forEach
((
item
)
=>
{
tableSelectData
.
forEach
((
item
)
=>
{
...
@@ -2175,39 +2221,12 @@ export default {
...
@@ -2175,39 +2221,12 @@ export default {
}
}
}
)
}
)
}
,
}
,
quantityChanged
(
val
)
{
this
.
feedbackForm
.
quantity
=
this
.
feedbackForm
.
quantityQualify
+
this
.
feedbackForm
.
quantityUnqualify
}
,
changeShow
()
{
changeShow
()
{
console
.
log
(
this
.
timeTest
.
isshow
)
console
.
log
(
this
.
timeTest
.
isshow
)
this
.
timeTest
.
isshow
=
!
this
.
timeTest
.
isshow
this
.
timeTest
.
isshow
=
!
this
.
timeTest
.
isshow
}
,
}
,
quantityChangedV2
(
feedback
,
val1
,
val2
)
{
let
qq
=
val1
===
0
||
val1
===
null
?
0
:
val1
let
quq
=
val2
===
0
||
val2
===
null
?
0
:
val2
if
(
qq
>
0
)
{
feedback
.
quantityQualify
=
qq
/
(
feedback
.
unitOfConvert
||
1
)
}
if
(
quq
>
0
)
{
feedback
.
quantityUnqualify
=
quq
/
(
feedback
.
unitOfConvert
||
1
)
}
feedback
.
quantityUnqualify
=
isNaN
(
feedback
.
quantityUnqualify
)
||
feedback
.
quantityUnqualify
===
null
?
0
:
feedback
.
quantityUnqualify
feedback
.
quantityQualify
=
isNaN
(
feedback
.
quantityQualify
)
||
feedback
.
quantityQualify
===
null
?
0
:
feedback
.
quantityQualify
feedback
.
quantity
=
feedback
.
quantityUnqualify
+
feedback
.
quantityQualify
}
,
getPrintTemplate
(
row
)
{
getPrintTemplate
(
row
)
{
this
.
printTemplateData
=
row
this
.
printTemplateData
=
row
this
.
printTemplateVisible
=
true
this
.
printTemplateVisible
=
true
...
@@ -2260,7 +2279,7 @@ export default {
...
@@ -2260,7 +2279,7 @@ export default {
reportQualify
:
item
.
quantityQualify
+
item
.
quantityUnqualify
,
reportQualify
:
item
.
quantityQualify
+
item
.
quantityUnqualify
,
printName
:
''
,
printName
:
''
,
lastProcess
:
item
.
isLastProcess
==
1
,
//未工序
lastProcess
:
item
.
isLastProcess
==
1
,
//未工序
nickName
:
this
.
vuex_user
.
nickName
,
nickName
:
''
,
workorderCode
:
workorderCode
:
item
.
proWorkorderList
.
length
>
0
item
.
proWorkorderList
.
length
>
0
?
item
.
proWorkorderList
[
0
].
workorderCode
?
item
.
proWorkorderList
[
0
].
workorderCode
...
@@ -2275,6 +2294,10 @@ export default {
...
@@ -2275,6 +2294,10 @@ export default {
feedbackTime
:
this
.
parseTime
(
new
Date
()),
feedbackTime
:
this
.
parseTime
(
new
Date
()),
whether
:
''
,
whether
:
''
,
closeType
:
null
,
closeType
:
null
,
abnormalId
:
null
,
abnormalReason
:
null
,
abnormalType
:
null
,
abnormalRemark
:
null
,
printTemplate
:
''
,
printTemplate
:
''
,
tableSizeData
:
[],
tableSizeData
:
[],
decompressionValue
:
''
,
decompressionValue
:
''
,
...
@@ -2684,11 +2707,16 @@ export default {
...
@@ -2684,11 +2707,16 @@ export default {
}
)
}
)
}
,
}
,
doException
()
{
async
doException
()
{
if
(
this
.
tableSelectData
.
length
>
1
)
{
if
(
this
.
tableSelectData
.
length
>
1
)
{
this
.
$u
.
toast
(
i18n
.
t
(
'不允许同时操作多条任务'
))
this
.
$u
.
toast
(
i18n
.
t
(
'不允许同时操作多条任务'
))
return
return
}
}
let
abnormalNumber
=
''
const
data
=
await
this
.
$u
.
api
.
abnormal
.
getAbnormalNumber
()
if
(
data
.
code
===
200
)
{
abnormalNumber
=
data
.
data
}
this
.
ExceptionForms
=
{
this
.
ExceptionForms
=
{
abnormalType
:
null
,
abnormalType
:
null
,
abnormalReason
:
null
,
abnormalReason
:
null
,
...
@@ -2706,6 +2734,7 @@ export default {
...
@@ -2706,6 +2734,7 @@ export default {
abnormalType
:
''
,
abnormalType
:
''
,
abnormalReason
:
''
,
abnormalReason
:
''
,
abnormalTime
:
''
,
abnormalTime
:
''
,
abnormalNumber
:
abnormalNumber
}
)
}
)
this
.
errorVisible
=
true
this
.
errorVisible
=
true
}
,
}
,
...
@@ -2734,13 +2763,17 @@ export default {
...
@@ -2734,13 +2763,17 @@ export default {
this
.
feedbackQuantityFu
=
0
this
.
feedbackQuantityFu
=
0
this
.
timeTest
.
isshow
=
false
this
.
timeTest
.
isshow
=
false
this
.
feedbackForms
.
forEach
((
item
)
=>
{
this
.
feedbackForms
.
forEach
((
item
)
=>
{
if
(
item
.
returnMa
==
'1'
)
{
if
(
!
item
.
nickName
)
{
if
(
!
this
.
curTaskInfo
.
returnReason
)
{
this
.
$u
.
toast
(
i18n
.
t
(
'报工人不能为空'
))
this
.
$u
.
toast
(
i18n
.
t
(
'原因不能为空!'
))
this
.
proVisible
=
true
this
.
proVisible
=
true
this
.
$refs
.
uModal
.
clearLoading
()
return
return
}
}
this
.
materialReturnSave
()
if
(
item
.
quantityUnqualify
&&
Number
(
item
.
quantityUnqualify
)
>
0
&&
!
item
.
abnormalReason
)
{
this
.
$u
.
toast
(
i18n
.
t
(
'不合格原因不能为空'
))
this
.
proVisible
=
true
this
.
$refs
.
uModal
.
clearLoading
()
return
}
}
if
(
if
(
...
@@ -2780,6 +2813,10 @@ export default {
...
@@ -2780,6 +2813,10 @@ export default {
itemName
:
item
.
processName
,
itemName
:
item
.
processName
,
workstationId
:
item
.
workstationId
,
workstationId
:
item
.
workstationId
,
workstationCode
:
item
.
workstationCode
,
workstationCode
:
item
.
workstationCode
,
abnormalId
:
item
.
abnormalId
,
abnormalReason
:
item
.
abnormalReason
,
abnormalType
:
item
.
abnormalType
,
abnormalRemark
:
item
.
abnormalRemark
,
workorderId
:
item
.
workorderId
,
workorderId
:
item
.
workorderId
,
workorderCode
:
item
.
workorderCode
,
workorderCode
:
item
.
workorderCode
,
workstationName
:
item
.
workstationName
,
workstationName
:
item
.
workstationName
,
...
@@ -2811,6 +2848,10 @@ export default {
...
@@ -2811,6 +2848,10 @@ export default {
itemId
:
item
.
itemId
,
itemId
:
item
.
itemId
,
itemCode
:
item
.
itemCode
,
itemCode
:
item
.
itemCode
,
itemName
:
item
.
itemName
,
itemName
:
item
.
itemName
,
abnormalId
:
item
.
abnormalId
,
abnormalReason
:
item
.
abnormalReason
,
abnormalType
:
item
.
abnormalType
,
abnormalRemark
:
item
.
abnormalRemark
,
workstationId
:
item
.
workstationId
,
workstationId
:
item
.
workstationId
,
workstationCode
:
item
.
workstationCode
,
workstationCode
:
item
.
workstationCode
,
workorderId
:
item
.
workorderId
,
workorderId
:
item
.
workorderId
,
...
...
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