更新财务

This commit is contained in:
weipengfei 2023-08-29 11:06:48 +08:00
parent ce81a9e4ca
commit 530e524ac8
2 changed files with 5 additions and 26 deletions

View File

@ -47,6 +47,7 @@
</el-card>
<el-card class="!border-none mt-4" shadow="never">
<el-table size="large" v-loading="pager.loading" :data="pager.lists">
<el-table-column label="ID" prop="id" min-width="80" />
<el-table-column label="用户编号" prop="user_info.sn" min-width="100" />
<el-table-column
label="归属公司"
@ -117,7 +118,7 @@ import { usePaging } from "@/hooks/usePaging";
import { useRoute } from "vue-router";
const route = useRoute();
console.log("company_id", route.query?.company_id);
// console.log("company_id", route.query?.company_id);
const queryParams = reactive({
user_info: "",

View File

@ -147,23 +147,18 @@
</div>
</template>
<script lang="ts" setup name="companyLists">
<script lang="ts" setup name="financeCompanyLists">
import { usePaging } from "@/hooks/usePaging";
import { useDictData } from "@/hooks/useDictOptions";
import useUserStore from "@/stores/modules/user";
import {
apiCompanyLists,
apiCompanyDelete,
authentication,
} from "@/api/company";
import { apiCompanyLists } from "@/api/company";
import { timeFormat } from "@/utils/util";
import feedback from "@/utils/feedback";
import { dictDataLists } from "@/api/setting/dict";
import { getRoutePath } from "@/router";
import { dictContractTypeList } from "@/utils/dict.ts";
const userStore = useUserStore();
console.log(userStore.userInfo.company_id);
// console.log(userStore.userInfo.company_id);
const route = useRoute();
const company_type_show = ref(true);
@ -209,23 +204,6 @@ const { pager, getLists, resetParams, resetPage } = usePaging({
params: queryParams,
});
//
const handleDelete = async (id: number | any[]) => {
await feedback.confirm("确定要删除?");
await apiCompanyDelete({ id });
getLists();
};
const handleAuthentication = async (id: number | any[]) => {
await feedback.confirm("确定要认证?");
await authentication({ id });
getLists();
};
//
const auditing = () => {
ElMessage.warning("请等待合同审核完成!");
};
getLists();
</script>
<style lang="scss">