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
97f5de25
Commit
97f5de25
authored
Mar 14, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改任务工单加搜索功能
parent
b0481d49
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
9 deletions
+74
-9
index.vue
pages/mes/prodReport/index.vue
+74
-9
No files found.
pages/mes/prodReport/index.vue
View file @
97f5de25
...
...
@@ -13,8 +13,24 @@
<!-- <!–
<u-button
type=
"primary"
@
click=
"commonClick('KnifeTemp')"
>
刀模上架
</u-button>
–>
-->
<!-- <!–
<u-button
type=
"primary"
@
click=
"commonClick('')"
>
生产投料
</u-button>
–>
-->
<!--
</view>
-->
<view>
<u-form
:model=
"tableParams"
labelAlign=
"right"
class=
"tableForm"
>
<u-form-item
label=
"编排单号"
label-width=
"70px"
name=
"arrangeCode"
>
<uni-easyinput
type=
"text"
suffixIcon=
"scan"
v-model=
"tableParams.arrangeCode"
@
iconClick=
"iconClickArrangeCode"
placeholder=
"请输入编排单号"
/>
</u-form-item>
<u-form-item
label=
"生产工单编号"
label-width=
"100px"
name=
"workorderCode"
>
<uni-easyinput
type=
"text"
suffixIcon=
"scan"
v-model=
"tableParams.workorderCode"
@
iconClick=
"iconClickWorkorderCode"
placeholder=
"请输入生产工单编号"
/>
</u-form-item>
<u-form-item
name=
"allowProduce"
label-width=
"80px"
label=
"当前可加工"
>
<uni-data-checkbox
v-model=
"tableParams.allowProduce"
@
change=
"getTaskList"
:localdata=
"allowProduceLocal"
></uni-data-checkbox>
</u-form-item>
<u-form-item
name=
"allowProduce"
label-width=
"10px"
>
<u-button
@
click=
"getTaskList"
type=
"primary"
size=
"medium"
>
搜索
</u-button>
</u-form-item>
</u-form>
</view>
<view
class=
"prod-body-left-task"
>
<zb-table
ref=
"zbtable"
:columns=
"tableColumn"
...
...
@@ -593,15 +609,32 @@
import
SearchInput
from
'@/components/ScanInput/index.vue'
;
import
dModelList
from
'./components/dModelList.vue'
;
import
userPersonnel
from
'./components/userPersonnel.vue'
;
import
UButton
from
'../../../uview-ui/components/u-button/u-button.vue'
;
export
default
{
name
:
'ProdReport'
,
components
:
{
SearchInput
,
dModelList
,
userPersonnel
userPersonnel
,
UButton
},
data
()
{
return
{
tableParams
:
{
allowProduce
:
1
,
workorderCode
:
''
,
arrangeCode
:
''
},
allowProduceLocal
:
[
{
text
:
'是'
,
value
:
1
},
{
text
:
'否'
,
value
:
0
}
],
stopReasonForm
:
{
reason
:
null
,
desc
:
null
...
...
@@ -982,6 +1015,34 @@ userTempVisible: false,
// e.stopPropagation()
// }
// },
iconClickArrangeCode
()
{
uni
.
scanCode
(
{
success
:(
res
)
=>
{
console
.
log
(
res
,
'res'
)
this
.
tableParams
.
arrangeCode
=
res
.
result
this
.
getTaskList
()
},
fail
:
()
=>
{
this
.
$u
.
toast
(
'扫码失败,请重新扫描'
)
}
}
)
},
iconClickWorkorderCode
(
data
)
{
uni
.
scanCode
(
{
success
:(
res
)
=>
{
console
.
log
(
res
,
'res'
)
this
.
tableParams
.
workorderCode
=
res
.
result
this
.
getTaskList
()
},
fail
:
()
=>
{
this
.
$u
.
toast
(
'扫码失败,请重新扫描'
)
}
}
)
},
numclik
(...
arg
)
{
console
.
log
(
'99999999'
,
arg
);
},
...
...
@@ -1244,17 +1305,16 @@ userTempVisible: false,
getTaskList
()
{
this
.
form
=
{};
const
t
=
this
;
console
.
log
(
this
.
tableParams
,
'this.tableParams'
)
this
.
$u
.
api
.
getTaskList
({
workunitId
:
t
.
vuex_workunit
.
workunitId
workunitId
:
t
.
vuex_workunit
.
workunitId
,
...
this
.
tableParams
})
.
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
// 过滤可加工数量为0的数据
this
.
tableData
=
res
.
rows
.
filter
(
item
=>
{
return
!
(
item
.
quantityWait
==
'0'
)
})
this
.
tableData
=
res
.
rows
if
(
this
.
tableData
.
length
>
0
)
{
this
.
curTaskInfo
=
this
.
tableData
[
0
];
this
.
getMaterialUsageRecordList
();
...
...
@@ -1732,6 +1792,11 @@ userTempVisible: false,
width
:
40%
;
}
.tableForm
{
display
:flex
;
margin
:
20rpx
0rpx
;
}
.task_card
{
width
:
90%
;
margin
:
5px
;
...
...
@@ -1794,7 +1859,7 @@ userTempVisible: false,
}
.prod-body-left-task
{
height
:
calc
(
100vh
-
8
0rpx
);
height
:
calc
(
100vh
-
20
0rpx
);
min-height
:
400rpx
;
border
:
1px
solid
rgb
(
232
,
232
,
232
);
/
deep
/
.item-tr.trbg
.item-td
{
...
...
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