update:编码

This commit is contained in:
2021-06-04 11:00:34 +08:00
parent 2a1c694906
commit fe95499fbf
3 changed files with 21 additions and 19 deletions

View File

@@ -87,7 +87,11 @@
</p> </p>
<p>发起时间: {{ sealApply.createTime }}</p> <p>发起时间: {{ sealApply.createTime }}</p>
<p v-if="sealApply.rejectMsg">不通过原因:{{ sealApply.rejectMsg }}</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-button>
</a-card> </a-card>
@@ -123,7 +127,7 @@ export default {
var filePath = ref(""); var filePath = ref("");
var showDrawer = ref(false); var showDrawer = ref(false);
onMounted(async () => { onMounted(async () => {
var resp = await get("/api2/ca/sealApplyList"); var resp = await get("/api2/CASeal/List");
if (resp.data) { if (resp.data) {
sealApplyList.value = resp.data; sealApplyList.value = resp.data;
// var currentApply = sealApplyList.value.find( // var currentApply = sealApplyList.value.find(
@@ -140,7 +144,7 @@ export default {
} }
}); });
async function createSealApply() { async function createSealApply() {
var resp = await post("/api2/ca/sealApply", formModel); var resp = await post("/api2/CASeal/Create", formModel);
if (resp.errorCode == 0) { if (resp.errorCode == 0) {
message.success("创建成功", useReload); message.success("创建成功", useReload);
} else { } else {
@@ -148,7 +152,7 @@ export default {
} }
} }
async function sendSealApply(id) { async function sendSealApply(id) {
var resp = await post("/api2/ca/sendSealApply", { id }); var resp = await post("/api2/CASeal/Send", { id });
if (resp.errorCode == 0) { if (resp.errorCode == 0) {
message.success("申请成功", useReload); message.success("申请成功", useReload);
} else { } else {
@@ -156,7 +160,7 @@ export default {
} }
} }
async function querySealApply(id) { async function querySealApply(id) {
var resp = await get("/api2/ca/querySealApply", { id }); var resp = await get("/api2/CASeal/QueryStatus", { id });
if (resp.errorCode == 0) { if (resp.errorCode == 0) {
message.success( message.success(
"当前状态:" + ["待审核", "已通过", "已拒绝"][resp.data], "当前状态:" + ["待审核", "已通过", "已拒绝"][resp.data],

View File

@@ -475,7 +475,7 @@ export default {
); );
const useReload = inject("reload"); const useReload = inject("reload");
const queryUnitApply = async id => { const queryUnitApply = async id => {
const res = await get("/api2/CA/QueryUnitApplyResult", { const res = await get("/api2/CAUnit/QueryStatus", {
id id
}); });
if (res.errorCode == 0) { if (res.errorCode == 0) {
@@ -489,7 +489,7 @@ export default {
} }
}; };
const sendUnitApply = async id => { const sendUnitApply = async id => {
const resp = await get("/api2/CA/SendCreateOrder", { const resp = await get("/api2/CAUnit/Send", {
orderId: id orderId: id
}); });
if (resp.errorCode != 0) { if (resp.errorCode != 0) {
@@ -501,12 +501,11 @@ export default {
const createUnitApply = async () => { const createUnitApply = async () => {
try { try {
await validate(); await validate();
const resp = await post("/api2/CA/createUnitApply", toRaw(modelRef)); const resp = await post("/api2/CAUnit/Create", toRaw(modelRef));
if (resp.errorCode != 0) { if (resp.errorCode != 0) {
message.error(resp.errorMsg); message.error(resp.errorMsg, (onclose = useReload));
} else { } else {
message.success("提交成功", (onclose = useReload)); message.success("提交成功", (onclose = useReload));
await sendUnitApply(resp.data);
} }
} catch { } catch {
0; 0;
@@ -521,12 +520,11 @@ export default {
"businessLicensePicId", "businessLicensePicId",
"sealApplyPicId" "sealApplyPicId"
]); ]);
const resp = await post("/api2/CA/modifyUnitApply", toRaw(modelRef)); const resp = await post("/api2/CAUnit/Modify", toRaw(modelRef));
if (resp.errorCode != 0) { if (resp.errorCode != 0) {
message.error(resp.errorMsg); message.error(resp.errorMsg, (onclose = useReload));
} else { } else {
message.success("提交成功", (onclose = useReload)); message.success("提交成功", (onclose = useReload));
await sendUnitApply(resp.data);
} }
} catch (error) { } catch (error) {
1; 1;
@@ -715,7 +713,7 @@ export default {
return; return;
} }
organizeList.value = organizeInfoRes.data; organizeList.value = organizeInfoRes.data;
const unitApplyListRes = await get("/api2/CA/UnitApplyList"); const unitApplyListRes = await get("/api2/CAUnit/List");
if (unitApplyListRes.errorCode != 0) { if (unitApplyListRes.errorCode != 0) {
message.error(unitApplyListRes.errorMsg); message.error(unitApplyListRes.errorMsg);
spining.value = false; spining.value = false;

View File

@@ -236,7 +236,7 @@ export default {
return; return;
} }
var res = await get("/api2/CA/GetPhoneCode", { var res = await get("/api2/CA/GetPhoneCode", {
type: 1, type: 0,
phone: this.form.phone phone: this.form.phone
}); });
if (res.errorCode !== 0) { if (res.errorCode !== 0) {
@@ -289,7 +289,7 @@ export default {
console.log("error", error); console.log("error", error);
return; return;
} }
const resp = await post("/api2/CA/createUserApply", this.form); const resp = await post("/api2/CAUser/Create", this.form);
if (resp.errorCode != 0) { if (resp.errorCode != 0) {
message.error(resp.errorMsg); message.error(resp.errorMsg);
} else { } else {
@@ -301,7 +301,7 @@ export default {
} }
}, },
async sendUserApply(id) { async sendUserApply(id) {
const res = await post("/api2/CA/SendCreateApply", { const res = await post("/api2/CAUser/Send", {
applyId: id || this.currentApplyId applyId: id || this.currentApplyId
}); });
if (res.errorCode == 0) { if (res.errorCode == 0) {
@@ -311,7 +311,7 @@ export default {
} }
}, },
async getStatus() { async getStatus() {
const res = await get("/api2/CA/UserApplyGetStatus", { const res = await get("/api2/CAUser/QueryStatus", {
id: this.currentApplyId id: this.currentApplyId
}); });
if (res.errorCode == 0) { if (res.errorCode == 0) {
@@ -337,7 +337,7 @@ export default {
created: async function() { created: async function() {
//获取所在组织信息和个人数字认证信息 //获取所在组织信息和个人数字认证信息
const organizeInfo = await get("/api2/UserInfo/Organize"); const organizeInfo = await get("/api2/UserInfo/Organize");
const userApplyList = await get("/api2/CA/UserApplyList"); const userApplyList = await get("/api2/CAUser/List");
console.log(userApplyList); console.log(userApplyList);
if (organizeInfo.errorCode !== 0 || userApplyList.errorCode !== 0) { if (organizeInfo.errorCode !== 0 || userApplyList.errorCode !== 0) {
message.error("数据异常请稍后重试"); message.error("数据异常请稍后重试");