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
78792f00
Commit
78792f00
authored
Jun 20, 2024
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面调整
parent
b796b3dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
5 deletions
+34
-5
addDialog.vue
pages/mes/qc/components/addDialog.vue
+32
-3
index.vue
pages/mes/qc/index.vue
+2
-2
No files found.
pages/mes/qc/components/addDialog.vue
View file @
78792f00
...
...
@@ -64,7 +64,7 @@
</u-row>
</u-form>
<view
class=
"btnbox"
>
<u-button
type=
"success"
v-if=
"
btnType === 'firstEdit' || !btnType
"
size=
"medium"
@
click=
"handleAddFirstEdit"
>
新增
</u-button>
<u-button
type=
"success"
v-if=
"
isEdit
"
size=
"medium"
@
click=
"handleAddFirstEdit"
>
新增
</u-button>
</view>
<view
class=
"line-content-item"
>
<uni-table
ref=
"qcLineTable"
class=
"line-table"
border
stripe
:loading=
"loading"
emptyText=
"未查询到数据"
>
...
...
@@ -72,6 +72,7 @@
<uni-th
width=
"100px"
align=
"center"
>
质检项目
</uni-th>
<uni-th
width=
"100px"
align=
"center"
>
检验要求
</uni-th>
<uni-th
width=
"150px"
align=
"center"
>
检验结果
</uni-th>
<!--
<uni-th
width=
"15px"
align=
"center"
>
操作
</uni-th>
-->
</uni-tr>
<uni-tr
v-for=
"(line, index) in qcLines"
:key=
"index + 'index'"
>
<uni-td
align=
"center"
>
{{
line
.
indexName
}}
</uni-td>
...
...
@@ -80,6 +81,9 @@
<uni-data-checkbox
v-if=
"line.inputType == 2"
multiple
v-model=
"line.qualityCheckResults"
:localdata=
"line.selectValues"
></uni-data-checkbox>
<uni-easyinput
v-else
v-model=
"line.qualityCheckResults"
></uni-easyinput>
</uni-td>
<!--
<uni-td
width=
"15px"
align=
"center"
>
<view
@
click=
"del('qcAddList', index)"
:style=
"
{color: isEdit ? '#e56048' : '#ddd'}">删除
</view>
</uni-td>
-->
</uni-tr>
<uni-tr
v-for=
"(line, index) in qcAddList"
:key=
"index + 'add'"
>
<uni-td
align=
"center"
>
...
...
@@ -92,6 +96,9 @@
<uni-td
width=
"150px"
align=
"center"
>
<uni-easyinput
v-model=
"line.qualityCheckResults"
></uni-easyinput>
</uni-td>
<!--
<uni-td
width=
"15px"
align=
"center"
>
<view
@
click=
"del('qcAddList', index)"
:style=
"
{color: isEdit ? '#e56048' : '#ddd'}">删除
</view>
</uni-td>
-->
</uni-tr>
</uni-table>
</view>
...
...
@@ -149,7 +156,11 @@
},
created
()
{
this
.
visable
=
true
console
.
log
(
'qqq'
,
this
.
dict
.
type
.
mes_qc_result
)
},
computed
:
{
isEdit
()
{
return
this
.
btnType
===
'firstEdit'
||
!
this
.
btnType
||
this
.
btnType
===
'sjqrFinish'
}
},
watch
:
{
visable
(){
...
...
@@ -178,6 +189,20 @@
}
},
methods
:
{
del
(
list
,
index
){
if
(
this
.
isEdit
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'您确定要删除此项吗?'
,
style
:
'z-index: 99999'
,
success
:
async
(
res
)
=>
{
if
(
res
.
confirm
)
{
this
[
list
].
splice
(
index
,
1
)
}
}
})
}
},
getTemplateLineList
()
{
this
.
$u
.
api
.
getIpqcLineList
({
...
...
@@ -344,10 +369,14 @@
}
.btnbox
{
//
display
:
flex
;
margin-bottom
:
20
rpx
;
margin-bottom
:
10
rpx
;
margin-top
:
10
rpx
;
padding-left
:
40
rpx
;
.u-btn
{
width
:
150
rpx
;
}
}
.del-modal
{
z-index
:
99999
;
}
</
style
>
\ No newline at end of file
pages/mes/qc/index.vue
View file @
78792f00
...
...
@@ -72,12 +72,12 @@
<u-modal
width=
"90%"
@
confirm=
"submitIpqc"
@
cancel=
"closemodel"
v-model=
"qcModalFlag"
:showConfirmButton=
"showIpqcConfirmButton"
:showCancelButton=
"true"
title=
"请填写检验单"
content=
"操作内容"
>
<u-form
ref=
"qcForm"
label-width=
"90px"
class=
"addForm"
>
<u-row>
<u-col
span=
"
5
"
>
<u-col
span=
"
4
"
>
<u-form-item
label=
"任务编号"
>
<SearchInput
v-model=
"qcForm.taskCode"
placeholder=
"请输入任务编号"
hassearchbtn=
"true"
@
serach=
"searchTask"
/>
</u-form-item>
</u-col>
<u-col
span=
"
3
"
>
<u-col
span=
"
4
"
>
<u-form-item
label=
"检验单名称"
label-width=
"90px"
>
<u-input
v-model=
"qcForm.ipqcName"
placeholder=
"请输入检验单名称"
></u-input>
</u-form-item>
...
...
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