update:编码
This commit is contained in:
@@ -87,7 +87,11 @@
|
||||
</p>
|
||||
<p>发起时间: {{ sealApply.createTime }}</p>
|
||||
<p v-if="sealApply.rejectMsg">不通过原因:{{ sealApply.rejectMsg }}</p>
|
||||
<a-button type="primary" @click="onSubmit(sealApply.id)">
|
||||
<a-button
|
||||
v-if="sealApply.status == 1 || sealApply.status == 0"
|
||||
type="primary"
|
||||
@click="onSubmit(sealApply.id)"
|
||||
>
|
||||
进度查询
|
||||
</a-button>
|
||||
</a-card>
|
||||
@@ -123,7 +127,7 @@ export default {
|
||||
var filePath = ref("");
|
||||
var showDrawer = ref(false);
|
||||
onMounted(async () => {
|
||||
var resp = await get("/api2/ca/sealApplyList");
|
||||
var resp = await get("/api2/CASeal/List");
|
||||
if (resp.data) {
|
||||
sealApplyList.value = resp.data;
|
||||
// var currentApply = sealApplyList.value.find(
|
||||
@@ -140,7 +144,7 @@ export default {
|
||||
}
|
||||
});
|
||||
async function createSealApply() {
|
||||
var resp = await post("/api2/ca/sealApply", formModel);
|
||||
var resp = await post("/api2/CASeal/Create", formModel);
|
||||
if (resp.errorCode == 0) {
|
||||
message.success("创建成功", useReload);
|
||||
} else {
|
||||
@@ -148,7 +152,7 @@ export default {
|
||||
}
|
||||
}
|
||||
async function sendSealApply(id) {
|
||||
var resp = await post("/api2/ca/sendSealApply", { id });
|
||||
var resp = await post("/api2/CASeal/Send", { id });
|
||||
if (resp.errorCode == 0) {
|
||||
message.success("申请成功", useReload);
|
||||
} else {
|
||||
@@ -156,7 +160,7 @@ export default {
|
||||
}
|
||||
}
|
||||
async function querySealApply(id) {
|
||||
var resp = await get("/api2/ca/querySealApply", { id });
|
||||
var resp = await get("/api2/CASeal/QueryStatus", { id });
|
||||
if (resp.errorCode == 0) {
|
||||
message.success(
|
||||
"当前状态:" + ["待审核", "已通过", "已拒绝"][resp.data],
|
||||
|
||||
@@ -475,7 +475,7 @@ export default {
|
||||
);
|
||||
const useReload = inject("reload");
|
||||
const queryUnitApply = async id => {
|
||||
const res = await get("/api2/CA/QueryUnitApplyResult", {
|
||||
const res = await get("/api2/CAUnit/QueryStatus", {
|
||||
id
|
||||
});
|
||||
if (res.errorCode == 0) {
|
||||
@@ -489,7 +489,7 @@ export default {
|
||||
}
|
||||
};
|
||||
const sendUnitApply = async id => {
|
||||
const resp = await get("/api2/CA/SendCreateOrder", {
|
||||
const resp = await get("/api2/CAUnit/Send", {
|
||||
orderId: id
|
||||
});
|
||||
if (resp.errorCode != 0) {
|
||||
@@ -501,12 +501,11 @@ export default {
|
||||
const createUnitApply = async () => {
|
||||
try {
|
||||
await validate();
|
||||
const resp = await post("/api2/CA/createUnitApply", toRaw(modelRef));
|
||||
const resp = await post("/api2/CAUnit/Create", toRaw(modelRef));
|
||||
if (resp.errorCode != 0) {
|
||||
message.error(resp.errorMsg);
|
||||
message.error(resp.errorMsg, (onclose = useReload));
|
||||
} else {
|
||||
message.success("提交成功", (onclose = useReload));
|
||||
await sendUnitApply(resp.data);
|
||||
}
|
||||
} catch {
|
||||
0;
|
||||
@@ -521,12 +520,11 @@ export default {
|
||||
"businessLicensePicId",
|
||||
"sealApplyPicId"
|
||||
]);
|
||||
const resp = await post("/api2/CA/modifyUnitApply", toRaw(modelRef));
|
||||
const resp = await post("/api2/CAUnit/Modify", toRaw(modelRef));
|
||||
if (resp.errorCode != 0) {
|
||||
message.error(resp.errorMsg);
|
||||
message.error(resp.errorMsg, (onclose = useReload));
|
||||
} else {
|
||||
message.success("提交成功", (onclose = useReload));
|
||||
await sendUnitApply(resp.data);
|
||||
}
|
||||
} catch (error) {
|
||||
1;
|
||||
@@ -715,7 +713,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
organizeList.value = organizeInfoRes.data;
|
||||
const unitApplyListRes = await get("/api2/CA/UnitApplyList");
|
||||
const unitApplyListRes = await get("/api2/CAUnit/List");
|
||||
if (unitApplyListRes.errorCode != 0) {
|
||||
message.error(unitApplyListRes.errorMsg);
|
||||
spining.value = false;
|
||||
|
||||
@@ -236,7 +236,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
var res = await get("/api2/CA/GetPhoneCode", {
|
||||
type: 1,
|
||||
type: 0,
|
||||
phone: this.form.phone
|
||||
});
|
||||
if (res.errorCode !== 0) {
|
||||
@@ -289,7 +289,7 @@ export default {
|
||||
console.log("error", error);
|
||||
return;
|
||||
}
|
||||
const resp = await post("/api2/CA/createUserApply", this.form);
|
||||
const resp = await post("/api2/CAUser/Create", this.form);
|
||||
if (resp.errorCode != 0) {
|
||||
message.error(resp.errorMsg);
|
||||
} else {
|
||||
@@ -301,7 +301,7 @@ export default {
|
||||
}
|
||||
},
|
||||
async sendUserApply(id) {
|
||||
const res = await post("/api2/CA/SendCreateApply", {
|
||||
const res = await post("/api2/CAUser/Send", {
|
||||
applyId: id || this.currentApplyId
|
||||
});
|
||||
if (res.errorCode == 0) {
|
||||
@@ -311,7 +311,7 @@ export default {
|
||||
}
|
||||
},
|
||||
async getStatus() {
|
||||
const res = await get("/api2/CA/UserApplyGetStatus", {
|
||||
const res = await get("/api2/CAUser/QueryStatus", {
|
||||
id: this.currentApplyId
|
||||
});
|
||||
if (res.errorCode == 0) {
|
||||
@@ -337,7 +337,7 @@ export default {
|
||||
created: async function() {
|
||||
//获取所在组织信息和个人数字认证信息
|
||||
const organizeInfo = await get("/api2/UserInfo/Organize");
|
||||
const userApplyList = await get("/api2/CA/UserApplyList");
|
||||
const userApplyList = await get("/api2/CAUser/List");
|
||||
console.log(userApplyList);
|
||||
if (organizeInfo.errorCode !== 0 || userApplyList.errorCode !== 0) {
|
||||
message.error("数据异常请稍后重试");
|
||||
|
||||
Reference in New Issue
Block a user