'-'
zhangwei
2025-07-28 bb576469eb1e2cb2bf8e1717902702ca28f5ef65
src/views/mine/index.vue
@@ -22,6 +22,7 @@
const ruleFormRef = ref<FormInstance>();
const isLoading = ref(false);
const showDialog = ref(false);
const nowRole = ref({});
const state = reactive({
  userInfo: useUserStoreHook().enterpriseInfo,
  headers: {
@@ -188,25 +189,13 @@
  showDialog: false
});
onMounted(async () => {
  // let res = await useUserStoreHook().getCusExtendInfo();
  // if (res.code == 200) {
  //   state.userInfo = res.result;
  //   state.userInfo.enterpriseTypeName = res.result.enterpriseType;
  //   state.ruleForm = res.result;
  //   state.ruleForm.enterpriseType = state.ruleForm.enterpriseType.split(",");
  // } else {
  //   message(res.message, {
  //     type: "error"
  //   });
  // }
  state.ruleForm = cloneDeep(state.userInfo);
  console.log(state.userInfo);
  state.ruleForm.enterpriseType = state.ruleForm.enterpriseType.split(",");
  let nowRole = useUserStoreHook()?.exRoles;
  if (nowRole.length >= 1 && !route.query.code) {
    state.ruleForm.transactionCode = nowRole[0].code;
    state.userInfo.transactionName = nowRole[0].name;
  nowRole.value = useUserStoreHook()?.nowRole;
  console.log(nowRole.value);
  if (nowRole.value) {
    state.ruleForm.transactionCode = nowRole.value.code;
    state.userInfo.transactionName = nowRole.value.name;
  } else {
    state.ruleForm.transactionCode = route.query.code;
    state.userInfo.enterpriseTypeName = route.query.name;
@@ -348,7 +337,8 @@
</script>
<template>
  <el-descriptions class="margin-top" title="" :column="3" :size="size" border>
  <div>
    <el-descriptions class="margin-top" title="" :column="3" border>
    <!-- <template #extra>
      <el-button type="primary">Operation</el-button>
    </template> -->
@@ -357,6 +347,7 @@
        <div class="cell-item">交易主体</div>
      </template>
      {{ state.userInfo.transactionName }}
        <el-tag v-if="!nowRole.hasFlsh" type="danger">资料审核中 </el-tag>
    </el-descriptions-item>
    <el-descriptions-item>
      <template #label>
@@ -770,6 +761,7 @@
      </span>
    </template>
  </el-dialog>
  </div>
</template>
<style lang="scss">