Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
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
wangweidong
patzn-cloud-web-back-soil
Commits
192bdfd7
Commit
192bdfd7
authored
Jul 27, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了分包数据录入判定按钮
parent
b95f3a40
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
120 additions
and
9 deletions
+120
-9
MeterSubSampleQuery.vue
pages/meter-subcontract/MeterSubSampleQuery.vue
+1
-1
Judge.vue
pages/meter-subcontract/subpackage-input/Judge.vue
+99
-0
MeterSubSampleManage.vue
...ter-subcontract/subpackage-input/MeterSubSampleManage.vue
+7
-7
SubResultInputEdit.vue
...meter-subcontract/subpackage-input/SubResultInputEdit.vue
+13
-1
No files found.
pages/meter-subcontract/MeterSubSampleQuery.vue
View file @
192bdfd7
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<div
v-else-if=
"item.key==='jobOut'"
>
<div
v-else-if=
"item.key==='jobOut'"
>
{{
scope
.
row
[
item
.
key
]
===
1
?
'是'
:
'否'
}}
{{
scope
.
row
[
item
.
key
]
===
1
?
'是'
:
'否'
}}
</div>
</div>
<span
v-if=
"item.key==='type'"
>
<span
v-
else-
if=
"item.key==='type'"
>
<span
v-if=
"scope.row[item.key]===0"
>
<span
v-if=
"scope.row[item.key]===0"
>
检定
检定
</span>
</span>
...
...
pages/meter-subcontract/subpackage-input/Judge.vue
0 → 100644
View file @
192bdfd7
<
template
>
<div>
<Modal
v-model=
"showBackModal"
:mask-closable=
"false"
class=
"zIndex-1100"
>
<p
slot=
"header"
>
{{
modalTitle
}}
</p>
<div>
<Form
ref=
"formObj"
:model=
"formObj"
:rules=
"ruleValidate"
:label-width=
"90"
>
<Form-item
label=
"判定结果:"
prop=
"type"
>
<RadioGroup
v-model=
"formObj.singleJudge"
>
<Radio
:label=
"'PASS'"
>
合格
</Radio>
<Radio
:label=
"'FAIL'"
>
不合格
</Radio>
</RadioGroup>
</Form-item>
</Form>
</div>
<div
slot=
"footer"
>
<ModalFooter
ref=
"footerModal"
:footer=
"footerList"
@
on-result-change=
"_footerResult"
></ModalFooter>
</div>
</Modal>
</div>
</
template
>
<
script
>
/**
* 判定
*/
import
ModalFooter
from
'../../../components/base/modalFooter'
import
{
meterItem
}
from
'../../../api'
export
default
{
components
:
{
ModalFooter
},
data
()
{
return
{
ids
:
[],
// 合同ids
modalTitle
:
'判定'
,
showBackModal
:
false
,
formObj
:
{
singleJudge
:
'PASS'
},
path
:
''
,
ruleValidate
:
{
singleJudge
:
[
{
required
:
true
,
message
:
'判定结果不能为空'
,
trigger
:
'blur'
}
]
},
footerList
:
[
{
id
:
''
,
name
:
'取消'
,
type
:
''
},
{
id
:
''
,
name
:
'保存'
,
type
:
'primary'
}
]
}
},
methods
:
{
_open
(
ids
)
{
this
.
ids
=
ids
// 合同id
this
.
showBackModal
=
true
this
.
formObj
.
type
=
1
this
.
$refs
.
footerModal
.
_hideLoading
()
},
_cancel
()
{
this
.
showBackModal
=
false
},
_footerResult
(
name
)
{
switch
(
name
)
{
case
'取消'
:
this
.
_cancel
()
break
case
'保存'
:
this
.
_ok
()
break
}
this
.
$refs
.
footerModal
.
_hideLoading
()
},
_ok
()
{
this
.
$refs
.
formObj
.
validate
(
valid
=>
{
if
(
valid
)
{
const
data
=
{}
data
.
ids
=
this
.
ids
.
join
(
','
)
this
.
$extend
(
data
,
{
singleJudge
:
this
.
formObj
.
singleJudge
})
this
.
_handJudge
(
data
)
}
else
{
this
.
$Message
.
error
(
'表单验证失败!'
)
}
})
},
_handJudge
:
async
function
(
data
)
{
const
result
=
await
meterItem
.
_handJudge
(
data
)
if
(
result
)
{
this
.
$Message
.
success
(
'判定成功!'
)
this
.
showBackModal
=
false
this
.
$emit
(
'on-result-change'
)
}
}
}
}
</
script
>
pages/meter-subcontract/subpackage-input/MeterSubSampleManage.vue
View file @
192bdfd7
...
@@ -44,13 +44,13 @@
...
@@ -44,13 +44,13 @@
<div
v-else-if=
"item.key==='jobOut'"
>
<div
v-else-if=
"item.key==='jobOut'"
>
{{
scope
.
row
[
item
.
key
]
===
1
?
'是'
:
'否'
}}
{{
scope
.
row
[
item
.
key
]
===
1
?
'是'
:
'否'
}}
</div>
</div>
<!--
<div
v-else-if=
"item.key==='type'"
>
--
>
<div
v-else-if=
"item.key==='type'"
>
<!--
<Select
v-model=
"scope.row.type"
>
--
>
<Select
v-model=
"scope.row.type"
disabled
>
<!--
<Option
v-for=
"(item,index) in options"
:key=
"item.name"
:value=
"index"
>
--
>
<Option
v-for=
"(item,index) in options"
:key=
"item.name"
:value=
"index"
>
<!--
{{
item
.
name
}}
-->
{{
item
.
name
}}
<!--
</Option>
--
>
</Option
>
<!--
</Select>
--
>
</Select
>
<!--
</div>
--
>
</div
>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
<div
v-else
>
{{
scope
.
row
[
item
.
key
]
}}
</div>
</
template
>
</
template
>
</vxe-table-column>
</vxe-table-column>
...
...
pages/meter-subcontract/subpackage-input/SubResultInputEdit.vue
View file @
192bdfd7
...
@@ -64,12 +64,15 @@
...
@@ -64,12 +64,15 @@
</Row>
</Row>
</div>
</div>
</Modal>
</Modal>
<SubInputJudeg
ref=
"judge"
@
on-result-change=
"_page"
></SubInputJudeg>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
meterItem
}
from
'../../../api'
import
{
meterItem
}
from
'../../../api'
import
SubInputJudeg
from
'./Judge'
export
default
{
export
default
{
components
:
{
components
:
{
SubInputJudeg
// FoodSampleGovernDetail,
// FoodSampleGovernDetail,
// CopyModal,
// CopyModal,
// FoodSampleGovernLYEdits
// FoodSampleGovernLYEdits
...
@@ -176,6 +179,9 @@ export default {
...
@@ -176,6 +179,9 @@ export default {
case
'完成'
:
case
'完成'
:
this
.
_testEnd
()
this
.
_testEnd
()
break
break
case
'判定'
:
this
.
_judge
()
break
case
'导入检测项目'
:
case
'导入检测项目'
:
this
.
_importItem
()
this
.
_importItem
()
break
break
...
@@ -238,7 +244,13 @@ export default {
...
@@ -238,7 +244,13 @@ export default {
this
.
showModal
=
true
this
.
showModal
=
true
this
.
_page
()
this
.
_page
()
},
},
_judge
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条数据!'
)
}
else
{
this
.
$refs
.
judge
.
_open
(
this
.
selectIds
)
}
},
_testEnd
()
{
_testEnd
()
{
if
(
this
.
selectIds
.
length
===
0
)
{
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
success
(
'请选择完成检测的项目'
)
this
.
$Message
.
success
(
'请选择完成检测的项目'
)
...
...
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