|
@@ -79,7 +79,6 @@
|
|
|
<el-input type="textarea" :rows="4" v-model="form.applyInfo.applicationReason"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
-
|
|
|
<span class="detail-part-title">审核信息</span>
|
|
|
<el-form :model="form.CheckInfo" label-position="top" ref="CheckInfo" class="form-detail">
|
|
|
<template v-if="route.params.type==='Detail'">
|
|
@@ -137,9 +136,10 @@ const form = reactive({
|
|
|
applyReason: ''
|
|
|
},
|
|
|
CheckInfo: {
|
|
|
- checkBy: '',
|
|
|
+ auditorId: '',
|
|
|
checkTime: '',
|
|
|
- checkDes: '',
|
|
|
+ auditReason: '',
|
|
|
+ auditState:''
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -149,7 +149,9 @@ function handleClose() {
|
|
|
})
|
|
|
}
|
|
|
const CheckInfo = ref(null)
|
|
|
-function handleSave(auditState) {
|
|
|
+const state = ref(null)
|
|
|
+function handleSave(stateValue) {
|
|
|
+ state.value = stateValue
|
|
|
Promise.all([CheckInfo.value.validate()]).then(valid => {
|
|
|
if(valid.findIndex(val => val===false)===-1) {
|
|
|
// 校验通过
|
|
@@ -157,9 +159,9 @@ function handleSave(auditState) {
|
|
|
for (const k in form.CheckInfo) {
|
|
|
pForm[k] = form.CheckInfo[k]
|
|
|
}
|
|
|
- pForm.auditState=auditState.value;
|
|
|
+ pForm['auditState'] = state.value;
|
|
|
console.log(pForm);
|
|
|
- pForm['primaryId'] = route.params.id
|
|
|
+ pForm['primaryId'] = route.params.id2
|
|
|
AuditSave(pForm).then(res => {
|
|
|
if(res.code=='200'&&res.data==='保存成功') {
|
|
|
ElMessage({type:'success', message: '修改成功'})
|
|
@@ -169,9 +171,7 @@ function handleSave(auditState) {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-function handleSave1() {
|
|
|
|
|
|
-}
|
|
|
onBeforeMount(()=> {
|
|
|
if(route.params.type!=='add') {
|
|
|
ServiceManageDetail(route.params.id).then(res => {
|
|
@@ -223,8 +223,8 @@ onBeforeMount(()=> {
|
|
|
|
|
|
})
|
|
|
ApplicationDetail(data.id).then(res => {
|
|
|
- console.log(res)
|
|
|
- form.applyInfo.accessIp = res.data.accessIp // xx
|
|
|
+ form.applyInfo.accessIp = res.data.accessIp
|
|
|
+ form.applyInfo.id = res.data.id
|
|
|
form.applyInfo.serviceLife = res.data.serviceLife
|
|
|
form.applyInfo.dailyVisits = res.data.dailyVisits
|
|
|
form.applyInfo.developmentVolume = res.data.developmentVolume
|
|
@@ -236,12 +236,11 @@ onBeforeMount(()=> {
|
|
|
} else {
|
|
|
ElMessage({type:'error', message: '查询失败'})
|
|
|
}
|
|
|
- })
|
|
|
- AuditDetail(route.params.id2).then(res => {
|
|
|
- form.CheckInfo.auditorId = res.data.auditorId
|
|
|
- form.CheckInfo.auditorTime = res.data.auditorTime
|
|
|
- form.CheckInfo.auditReason = res.data.auditReason
|
|
|
- console.log(form)
|
|
|
+ AuditDetail(route.params.id2).then(res => {
|
|
|
+ console.log(res)
|
|
|
+ form.CheckInfo.auditorTime = res.data.auditorTime
|
|
|
+ form.CheckInfo.auditReason = res.data.auditReason
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
})
|