|
@@ -146,16 +146,23 @@
|
|
|
</template>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <div class="formContent-item_title">社区名称</div>
|
|
|
+ <div class="formContent-item_title">{{this.address}}</div>
|
|
|
</el-col>
|
|
|
<el-col
|
|
|
:span="24"
|
|
|
class="span_margin_bottom"
|
|
|
>
|
|
|
- <span>物业缴费情况:</span><span>未缴清物业费用,无法办理月卡</span>
|
|
|
+ <span>物业缴费情况:</span><span>{{this.reasonNum == null ? '已缴清物业费,可以办理月卡':this.reasonNum}}</span>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <span>审核结果:</span><span style="color:red">不通过</span>
|
|
|
+ <span>审核结果:</span>
|
|
|
+
|
|
|
+ <span v-if="this.auditStatusNum == 0">待审核</span>
|
|
|
+ <span v-else-if="this.auditStatusNum == 1">通过</span>
|
|
|
+ <span
|
|
|
+ style="color:red"
|
|
|
+ v-else-if="this.auditStatusNum == 2"
|
|
|
+ >未通过</span>
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
@@ -179,6 +186,7 @@ export default {
|
|
|
modular: '1'
|
|
|
},
|
|
|
modularType: '0',
|
|
|
+ parkcarAuditNum: '',
|
|
|
businessRecordList: [
|
|
|
{
|
|
|
name: '车主信息'
|
|
@@ -187,6 +195,9 @@ export default {
|
|
|
name: '物业缴费情况'
|
|
|
}
|
|
|
],
|
|
|
+ address: '',
|
|
|
+ auditStatusNum: '',
|
|
|
+ reasonNum: '',
|
|
|
rules: {
|
|
|
resource: [
|
|
|
{ required: true, message: '请选择审核方式', trigger: 'change' }
|
|
@@ -198,6 +209,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ parkcarAudit () {
|
|
|
+ this.$http.get(`/czc-community/parkcarAudit/find/${this.params.id}`).then(({ data, msg, status }) => {
|
|
|
+ debugger
|
|
|
+ this.parkcarAuditNum = '1'
|
|
|
+ this.address = data.address;
|
|
|
+ this.auditStatusNum = data.auditStatus;
|
|
|
+ this.reasonNum = data.reason;
|
|
|
+ })
|
|
|
+ },
|
|
|
formDataRadio () {
|
|
|
if (this.ruleForm.resource == 1) {
|
|
|
this.ruleForm.desc = ''
|
|
@@ -206,13 +226,23 @@ export default {
|
|
|
submit () {
|
|
|
this.$refs.ruleForm.validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ if (this.parkcarAuditNum != '1') {
|
|
|
+ this.$http.post('/czc-community/parkcarAudit/audit',
|
|
|
+ { userType: this.params.userType, userId: this.params.userId, houseId: this.params.houseId, buildId: this.params.buildId, id: this.params.id, auditStatus: this.ruleForm.resource, reason: this.params.reason, }).
|
|
|
+ then(({ data, msg, status }) => {
|
|
|
+ this.ruleForm.modular = '2';
|
|
|
+ this.$message.success('成功');
|
|
|
+ if (this.ruleForm.resource == 1) {
|
|
|
+ this.parkcarAudit();
|
|
|
+ } else if (this.ruleForm.resource == 2) {
|
|
|
+ this.$emit('close');
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
- debugger
|
|
|
- if (this.modularType == '0') {
|
|
|
- this.ruleForm.modular = '2';
|
|
|
- } else {
|
|
|
- alert('1');
|
|
|
+ if (this.parkcarAuditNum == 1) {
|
|
|
this.$emit('close');
|
|
|
+ this.params.callback();
|
|
|
}
|
|
|
} else {
|
|
|
|
|
@@ -223,6 +253,7 @@ export default {
|
|
|
},
|
|
|
created () {
|
|
|
debugger
|
|
|
+ this.params;
|
|
|
// this.ruleForm.modular = this.params.modular;
|
|
|
this.ruleForm.modular = '1';
|
|
|
}
|