添加审查状态
This commit is contained in:
@@ -228,15 +228,13 @@
|
|||||||
{{ unitApply.unitName
|
{{ unitApply.unitName
|
||||||
}}<a-tag
|
}}<a-tag
|
||||||
style="margin-left:4px;"
|
style="margin-left:4px;"
|
||||||
:color="['orange', 'green', 'red'][unitApply.status]"
|
:color="status[userApply.status].color"
|
||||||
>{{
|
>{{ status[userApply.status].text }}</a-tag
|
||||||
["进行中", "已成功", "已失败"][unitApply.status] || "未申领"
|
|
||||||
}}</a-tag
|
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<a-button
|
<a-button
|
||||||
v-if="unitApply.status == 2"
|
v-if="unitApply.status == -3"
|
||||||
type="link"
|
type="link"
|
||||||
@click="modifyOrder(unitApply)"
|
@click="modifyOrder(unitApply)"
|
||||||
:disabled="disabledModify"
|
:disabled="disabledModify"
|
||||||
@@ -470,9 +468,9 @@ export default {
|
|||||||
var current = toRaw(unitApplyList.value).find(
|
var current = toRaw(unitApplyList.value).find(
|
||||||
p => p.id == progressingId
|
p => p.id == progressingId
|
||||||
);
|
);
|
||||||
if (current.status == null) {
|
if (current.status == 0) {
|
||||||
await sendUnitApply(progressingId);
|
await sendUnitApply(progressingId);
|
||||||
} else if (current.status == 0) {
|
} else if (current.status == 2) {
|
||||||
await queryUnitApply(progressingId);
|
await queryUnitApply(progressingId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -624,13 +622,13 @@ export default {
|
|||||||
}
|
}
|
||||||
unitApplyList.value = unitApplyListRes.data;
|
unitApplyList.value = unitApplyListRes.data;
|
||||||
const current = unitApplyListRes.data.find(
|
const current = unitApplyListRes.data.find(
|
||||||
d => d.status == null || d.status == 0
|
d => [0, 1, 2].indexOf(d.status) > -1
|
||||||
);
|
);
|
||||||
if (current) {
|
if (current) {
|
||||||
progressingId = current.id;
|
progressingId = current.id;
|
||||||
initPage(current);
|
initPage(current);
|
||||||
} else {
|
} else {
|
||||||
const successApply = unitApplyListRes.data.find(d => d.status == 1);
|
const successApply = unitApplyListRes.data.find(d => d.status == 3);
|
||||||
if (successApply) {
|
if (successApply) {
|
||||||
isSuccess.value = true;
|
isSuccess.value = true;
|
||||||
} else {
|
} else {
|
||||||
@@ -676,7 +674,37 @@ export default {
|
|||||||
isSuccess,
|
isSuccess,
|
||||||
modifyOrder,
|
modifyOrder,
|
||||||
router: useRouter(),
|
router: useRouter(),
|
||||||
progressingId
|
progressingId,
|
||||||
|
status: {
|
||||||
|
0: {
|
||||||
|
color: "orange",
|
||||||
|
text: "未申领"
|
||||||
|
},
|
||||||
|
1: {
|
||||||
|
color: "orange",
|
||||||
|
text: "审核通过"
|
||||||
|
},
|
||||||
|
"-1": {
|
||||||
|
color: "red",
|
||||||
|
text: "审核拒绝"
|
||||||
|
},
|
||||||
|
2: {
|
||||||
|
color: "orange",
|
||||||
|
text: "进行中"
|
||||||
|
},
|
||||||
|
3: {
|
||||||
|
color: "green",
|
||||||
|
text: "申请通过"
|
||||||
|
},
|
||||||
|
"-3": {
|
||||||
|
color: "red",
|
||||||
|
text: "申请拒绝"
|
||||||
|
},
|
||||||
|
4: {
|
||||||
|
color: "red",
|
||||||
|
text: "已失效"
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -111,10 +111,8 @@
|
|||||||
{{ userApply.idCardName
|
{{ userApply.idCardName
|
||||||
}}<a-tag
|
}}<a-tag
|
||||||
style="margin-left: 4px"
|
style="margin-left: 4px"
|
||||||
:color="['orange', 'green', 'red'][userApply.status]"
|
:color="applyStatus[userApply.status].color"
|
||||||
>{{
|
>{{ applyStatus[userApply.status].text }}</a-tag
|
||||||
["进行中", "已成功", "已失败"][userApply.status] || "未申领"
|
|
||||||
}}</a-tag
|
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
<p>身份证号:{{ userApply.idCardNo }}</p>
|
<p>身份证号:{{ userApply.idCardNo }}</p>
|
||||||
@@ -195,7 +193,37 @@ export default {
|
|||||||
disableEdit: true,
|
disableEdit: true,
|
||||||
currentApplyId: 0,
|
currentApplyId: 0,
|
||||||
isSuccess: false,
|
isSuccess: false,
|
||||||
router: this.$router
|
router: this.$router,
|
||||||
|
applyStatus: {
|
||||||
|
0: {
|
||||||
|
color: "orange",
|
||||||
|
text: "未申领"
|
||||||
|
},
|
||||||
|
1: {
|
||||||
|
color: "orange",
|
||||||
|
text: "审核通过"
|
||||||
|
},
|
||||||
|
"-1": {
|
||||||
|
color: "red",
|
||||||
|
text: "审核拒绝"
|
||||||
|
},
|
||||||
|
2: {
|
||||||
|
color: "orange",
|
||||||
|
text: "进行中"
|
||||||
|
},
|
||||||
|
3: {
|
||||||
|
color: "green",
|
||||||
|
text: "申请通过"
|
||||||
|
},
|
||||||
|
"-3": {
|
||||||
|
color: "red",
|
||||||
|
text: "申请拒绝"
|
||||||
|
},
|
||||||
|
4: {
|
||||||
|
color: "red",
|
||||||
|
text: "已失效"
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -317,13 +345,13 @@ export default {
|
|||||||
}
|
}
|
||||||
this.organizeList = organizeInfo.data;
|
this.organizeList = organizeInfo.data;
|
||||||
this.userApplyList = userApplyList.data;
|
this.userApplyList = userApplyList.data;
|
||||||
var success = this.userApplyList.find(p => p.status === 1);
|
var success = this.userApplyList.find(p => p.status === 3);
|
||||||
if (success) {
|
if (success) {
|
||||||
this.isSuccess = true;
|
this.isSuccess = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var current = this.userApplyList.find(
|
var current = this.userApplyList.find(
|
||||||
p => p.status === null || p.status === 0
|
p => [0, 1, 2].indexOf(p.status) > -1
|
||||||
);
|
);
|
||||||
if (current) {
|
if (current) {
|
||||||
this.form.idCardName = current.idCardName;
|
this.form.idCardName = current.idCardName;
|
||||||
|
|||||||
Reference in New Issue
Block a user