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
82a459d3
Commit
82a459d3
authored
Jun 15, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了委托评审查看详情
parent
a67189dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
36 deletions
+111
-36
MeterCertificateCheck.vue
pages/meter-certificate/check/MeterCertificateCheck.vue
+49
-5
MeterGoOutTestEdit.vue
pages/meter-entrust/go-out-test/MeterGoOutTestEdit.vue
+62
-31
No files found.
pages/meter-certificate/check/MeterCertificateCheck.vue
View file @
82a459d3
...
@@ -45,12 +45,14 @@
...
@@ -45,12 +45,14 @@
</Row>
</Row>
</div>
</div>
</div>
</div>
<Reason
ref=
"reasonModal"
@
on-result-change=
"_reasonResult"
></Reason>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
meterSample
}
from
'../../../api'
import
{
meterSample
}
from
'../../../api'
import
Reason
from
'../../../components/base/Reason'
export
default
{
export
default
{
components
:
{},
components
:
{
Reason
},
data
()
{
data
()
{
return
{
return
{
currentComponent
:
''
,
currentComponent
:
''
,
...
@@ -61,13 +63,18 @@ export default {
...
@@ -61,13 +63,18 @@ export default {
type
:
'success'
,
type
:
'success'
,
id
:
''
,
id
:
''
,
name
:
'提交'
name
:
'提交'
},
{
type
:
'error'
,
id
:
''
,
name
:
'退回'
}
}
],
],
iconMsg
:
[
iconMsg
:
[
{
{
type
:
'
md-create
'
,
type
:
'
ios-book
'
,
id
:
''
,
id
:
''
,
name
:
'
编辑
'
name
:
'
预览
'
},
},
{
{
type
:
'md-car'
,
type
:
'md-car'
,
...
@@ -123,6 +130,20 @@ export default {
...
@@ -123,6 +130,20 @@ export default {
this
.
_page
()
this
.
_page
()
},
},
methods
:
{
methods
:
{
_reasonResult
(
data
)
{
console
.
log
(
data
)
// this.$store
// .dispatch('FoodContract/customerBack', {
// ids: this.selectIds.join(','),
// remark: data
// })
// .then(() => {
// if (this.$store.state.FoodContract.success) {
// this.$Message.success('退回成功')
// this._page()
// }
// })
},
_modalResult
()
{
_modalResult
()
{
if
(
this
.
currentComponent
===
'FoodSubcontracterEdit'
)
{
if
(
this
.
currentComponent
===
'FoodSubcontracterEdit'
)
{
this
.
_page
()
this
.
_page
()
...
@@ -141,12 +162,23 @@ export default {
...
@@ -141,12 +162,23 @@ export default {
case
'提交'
:
case
'提交'
:
this
.
_submitToReview
()
this
.
_submitToReview
()
break
break
case
'退回'
:
this
.
_goBack
()
break
case
'search'
:
case
'search'
:
this
.
searchOpen
=
!
this
.
searchOpen
this
.
searchOpen
=
!
this
.
searchOpen
break
break
}
}
})
})
},
},
_goBack
()
{
// 退回
if
(
this
.
selectIds
.
length
===
0
)
{
this
.
$Message
.
warning
(
'请至少选择一条委托!'
)
}
else
{
this
.
$refs
.
reasonModal
.
_open
(
'退回原因'
)
}
},
_submitToReview
()
{
_submitToReview
()
{
this
.
_submitByContractIds
(
'委托评审'
)
this
.
_submitByContractIds
(
'委托评审'
)
},
},
...
@@ -180,7 +212,7 @@ export default {
...
@@ -180,7 +212,7 @@ export default {
this
.
currentComponent
=
componentName
this
.
currentComponent
=
componentName
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
switch
(
res
)
{
switch
(
res
)
{
case
'
编辑
'
:
case
'
预览
'
:
// this._editModal(true, data.id)
// this._editModal(true, data.id)
this
.
_personModal
(
data
)
this
.
_personModal
(
data
)
break
break
...
@@ -201,7 +233,19 @@ export default {
...
@@ -201,7 +233,19 @@ export default {
},
},
_personModal
(
data
)
{
_personModal
(
data
)
{
console
.
log
(
data
)
console
.
log
(
data
)
this
.
$refs
.
personModal
.
_open
(
data
.
id
)
// this.$refs.personModal._open(data.id)
this
.
_previewEdit
(
data
.
id
)
},
// 预览编辑
async
_previewEdit
(
id
)
{
const
result
=
await
meterSample
.
reportPreview
(
id
)
if
(
result
)
{
this
.
$openWindowModeless
({
objectKey
:
result
.
objectKey
,
id
:
id
,
isReport
:
0
})
}
},
},
_record
(
id
)
{
_record
(
id
)
{
this
.
$refs
.
refModal
.
_open
(
id
)
this
.
$refs
.
refModal
.
_open
(
id
)
...
...
pages/meter-entrust/go-out-test/MeterGoOutTestEdit.vue
View file @
82a459d3
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
<Form-item
label=
"传真"
prop=
"operation.fax"
class=
"width-48"
>
<Form-item
label=
"传真"
prop=
"operation.fax"
class=
"width-48"
>
<Input
v-model=
"formObj.operation.fax"
name=
"operation.fax"
placeholder=
"请输入委托单位"
/>
<Input
v-model=
"formObj.operation.fax"
name=
"operation.fax"
placeholder=
"请输入委托单位"
/>
</Form-item>
</Form-item>
<Form-item
label=
"省、市、区"
prop=
"
name
"
class=
"width-48"
>
<Form-item
label=
"省、市、区"
prop=
"
testedCityData
"
class=
"width-48"
>
<!--
<Input
v-model=
"formObj.client"
name=
"name"
placeholder=
"请输入委托单位"
/>
-->
<!--
<Input
v-model=
"formObj.client"
name=
"name"
placeholder=
"请输入委托单位"
/>
-->
<CityNameCascader
:value
=
"testedCityData"
@
on-result-change=
"_cascaderResult"
name=
"tested"
>
<CityNameCascader
v-model
=
"testedCityData"
@
on-result-change=
"_cascaderResult"
name=
"tested"
>
</CityNameCascader>
</CityNameCascader>
</Form-item>
</Form-item>
<Form-item
label=
"街道"
prop=
"street"
class=
"width-48"
>
<Form-item
label=
"街道"
prop=
"street"
class=
"width-48"
>
...
@@ -127,22 +127,20 @@ import EditModal from './EditModal'
...
@@ -127,22 +127,20 @@ import EditModal from './EditModal'
export
default
{
export
default
{
components
:
{
EditModal
,
CityNameCascader
},
components
:
{
EditModal
,
CityNameCascader
},
data
()
{
data
()
{
const
validateRemark
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
testedCityData
.
length
===
0
)
{
callback
(
new
Error
(
'内容不能为空'
))
}
else
{
callback
()
}
}
return
{
return
{
formId
:
'meterSendTestEditFormId'
,
formId
:
'meterSendTestEditFormId'
,
getPage
:
{
getPage
:
{
records
:
[]
records
:
[]
},
},
testedCityData
:
[],
testedCityData
:
[],
testedTemp
:
{
testedName
:
''
,
testedContactor
:
''
,
testedContactorTel
:
''
,
testedTel
:
''
,
testedProvince
:
''
,
testedCity
:
''
,
testedCounty
:
''
,
testedStreet
:
''
},
judgeType
:
[{
value
:
1
,
name
:
'是'
},
{
value
:
0
,
name
:
'否'
}],
judgeType
:
[{
value
:
1
,
name
:
'是'
},
{
value
:
0
,
name
:
'否'
}],
iconMsg
:
[
iconMsg
:
[
{
type
:
'ios-clock'
,
id
:
''
,
name
:
'编辑'
},
{
type
:
'ios-clock'
,
id
:
''
,
name
:
'编辑'
},
...
@@ -196,9 +194,27 @@ export default {
...
@@ -196,9 +194,27 @@ export default {
postcode
:
''
,
postcode
:
''
,
email
:
''
,
email
:
''
,
fee
:
''
fee
:
''
},
testedTemp
:
{
testedName
:
''
,
testedContactor
:
''
,
testedContactorTel
:
''
,
testedTel
:
''
,
testedProvince
:
''
,
testedCity
:
''
,
testedCounty
:
''
,
testedStreet
:
''
}
}
},
},
ruleValidate
:
{
ruleValidate
:
{
testedCityData
:
[
{
required
:
true
,
message
:
'省市区不能为空'
,
validator
:
validateRemark
,
trigger
:
'blur'
}
],
client
:
[
client
:
[
{
required
:
true
,
message
:
'委托单位不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'委托单位不能为空'
,
trigger
:
'blur'
}
],
],
...
@@ -207,8 +223,10 @@ export default {
...
@@ -207,8 +223,10 @@ export default {
],
],
'operation.tel'
:
[
'operation.tel'
:
[
{
required
:
true
,
message
:
'联系电话不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'联系电话不能为空'
,
trigger
:
'blur'
}
],
]
name
:
[{
required
:
true
,
message
:
'省市区不能为空'
,
trigger
:
'blur'
}]
// testedCityData: [
// { required: true, message: '省市区不能为空', trigger: 'blur' }
// ]
},
},
clearingWayList
:
[
'款到后测试'
,
'先测试后付款'
,
'其他情况()'
],
clearingWayList
:
[
'款到后测试'
,
'先测试后付款'
,
'其他情况()'
],
clearingWayListTemp
:
[
'款到后测试'
,
'先测试后付款'
,
'其他情况()'
],
clearingWayListTemp
:
[
'款到后测试'
,
'先测试后付款'
,
'其他情况()'
],
...
@@ -220,13 +238,13 @@ export default {
...
@@ -220,13 +238,13 @@ export default {
aptitudeData
:
[]
aptitudeData
:
[]
}
}
},
},
created
()
{
//
created() {
this
.
$set
(
//
this.$set(
this
.
formObj
,
//
this.formObj,
'tested'
,
//
'tested',
JSON
.
parse
(
JSON
.
stringify
(
this
.
testedTemp
))
//
JSON.parse(JSON.stringify(this.testedTemp))
)
//
)
},
//
},
methods
:
{
methods
:
{
_ctimeChange
(
data
)
{
_ctimeChange
(
data
)
{
console
.
log
(
'时间'
,
data
)
console
.
log
(
'时间'
,
data
)
...
@@ -258,32 +276,42 @@ export default {
...
@@ -258,32 +276,42 @@ export default {
_emptyProvince
()
{
_emptyProvince
()
{
this
.
cityData
=
[]
this
.
cityData
=
[]
this
.
testedCityData
=
[]
this
.
testedCityData
=
[]
this
.
formObj
.
tested
.
testedProvince
=
''
// this.formObj.tested.testedProvince = ''
this
.
formObj
.
tested
.
testedCity
=
''
// this.formObj.tested.testedCity = ''
this
.
formObj
.
tested
.
testedCounty
=
''
// this.formObj.tested.testedCounty = ''
this
.
formObj
.
testedTemp
.
testedProvince
=
''
this
.
formObj
.
testedTemp
.
testedCity
=
''
this
.
formObj
.
testedTemp
.
testedCounty
=
''
},
},
_testedChange
(
data
,
msg
)
{
_testedChange
(
data
,
msg
)
{
// 省、市、区
// 省、市、区
console
.
log
(
'数据'
)
console
.
log
(
'数据'
)
console
.
log
(
data
)
console
.
log
(
data
)
console
.
log
(
msg
)
console
.
log
(
'msg'
,
msg
)
if
(
msg
===
'clear'
)
{
if
(
msg
===
'clear'
)
{
this
.
formObj
.
tested
.
testedProvince
=
''
// this.formObj.tested.testedProvince = ''
this
.
formObj
.
tested
.
testedCity
=
''
// this.formObj.tested.testedCity = ''
this
.
formObj
.
tested
.
testedCounty
=
''
// this.formObj.tested.testedCounty = ''
this
.
formObj
.
testedTemp
.
testedProvince
=
''
this
.
formObj
.
testedTemp
.
testedCity
=
''
this
.
formObj
.
testedTemp
.
testedCounty
=
''
this
.
formObj
.
province
=
''
this
.
formObj
.
province
=
''
this
.
formObj
.
city
=
''
this
.
formObj
.
city
=
''
this
.
formObj
.
county
=
''
this
.
formObj
.
county
=
''
this
.
testedCityData
=
[]
this
.
testedCityData
=
[]
}
else
{
}
else
{
this
.
formObj
.
tested
.
testedProvince
=
data
.
value
[
0
]
// this.formObj.tested.testedProvince = data.value[0]
this
.
formObj
.
tested
.
testedCity
=
data
.
value
[
1
]
// this.formObj.tested.testedCity = data.value[1]
this
.
formObj
.
tested
.
testedCounty
=
data
.
value
[
2
]
// this.formObj.tested.testedCounty = data.value[2]
// this.formObj.testedTemp.testedProvince = data.value[0]
// this.formObj.testedTemp.testedCity = data.value[1]
// this.formObj.testedTemp.testedCounty = data.value[0]
this
.
formObj
.
province
=
data
.
value
[
0
]
this
.
formObj
.
province
=
data
.
value
[
0
]
this
.
formObj
.
city
=
data
.
value
[
1
]
this
.
formObj
.
city
=
data
.
value
[
1
]
this
.
formObj
.
county
=
data
.
value
[
2
]
this
.
formObj
.
county
=
data
.
value
[
2
]
this
.
testedCityData
=
[
data
.
value
[
0
],
data
.
value
[
1
],
data
.
value
[
2
]]
this
.
testedCityData
=
[
data
.
value
[
0
],
data
.
value
[
1
],
data
.
value
[
2
]]
console
.
log
(
'地址'
,
this
.
testedCityData
)
}
}
},
},
_getJudgeBasisList
(
data
)
{
_getJudgeBasisList
(
data
)
{
...
@@ -447,6 +475,8 @@ export default {
...
@@ -447,6 +475,8 @@ export default {
this
.
getPage
.
records
=
[]
this
.
getPage
.
records
=
[]
this
.
id
=
''
this
.
id
=
''
this
.
modalTitle
=
'出检委托单登记'
this
.
modalTitle
=
'出检委托单登记'
this
.
testedCityData
=
[]
console
.
log
(
'098765'
,
this
.
testedCityData
.
length
)
},
},
_openEdit
(
formObj
)
{
_openEdit
(
formObj
)
{
...
@@ -460,6 +490,7 @@ export default {
...
@@ -460,6 +490,7 @@ export default {
this
.
formObj
=
formObj
this
.
formObj
=
formObj
this
.
_showAddress
(
formObj
)
this
.
_showAddress
(
formObj
)
this
.
getPage
.
records
=
formObj
.
sampleList
this
.
getPage
.
records
=
formObj
.
sampleList
console
.
log
(
this
.
formObj
)
},
},
_getAptitudeList
:
async
function
()
{
_getAptitudeList
:
async
function
()
{
const
result
=
await
lmsBaseDict
.
getItem
(
'subcontractorAptitude'
)
const
result
=
await
lmsBaseDict
.
getItem
(
'subcontractorAptitude'
)
...
...
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