|
@@ -69,17 +69,26 @@
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="xcrPayTaxesList" height="650" @selection-change="handleSelectionChange">
|
|
<el-table v-loading="loading" :data="xcrPayTaxesList" height="650" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
- <el-table-column label="统一社会信用代码" align="center" prop="uniCode" width="200"/>
|
|
|
|
|
- <el-table-column label="社会信用代码" align="center" prop="socialCreditCode" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
- <el-table-column label="纳税人名称" align="center" prop="taxpayerName" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
- <el-table-column label="第一季" align="center" prop="q1" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
- <el-table-column label="第二季" align="center" prop="q2" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
- <el-table-column label="第三季" align="center" prop="q3" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
- <el-table-column label="第四季" align="center" prop="q4" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
- <el-table-column label="年度" align="center" prop="annualTotal" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
- <el-table-column label="当前是否欠缴税费" align="center" prop="isCurrentArrears" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
- <el-table-column label="欠缴税费金额" align="center" prop="arrearsAmount" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
- <el-table-column label="是否非正常户" align="center" prop="isAbnormalAccount" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
|
|
+ <el-table-column label="统一社会信用代码" align="center" prop="uniCode" width="200"/>
|
|
|
|
|
+ <el-table-column label="社会信用代码" align="center" prop="socialCreditCode" :show-overflow-tooltip='true'
|
|
|
|
|
+ width="150"/>
|
|
|
|
|
+ <el-table-column label="纳税人名称" align="center" prop="taxpayerName" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
+ <el-table-column label="第一季" align="center" prop="q1" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
+ <el-table-column label="第二季" align="center" prop="q2" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
+ <el-table-column label="第三季" align="center" prop="q3" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
+ <el-table-column label="第四季" align="center" prop="q4" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
+ <el-table-column label="年度统计总和" align="center" :show-overflow-tooltip='true' width="150">
|
|
|
|
|
+ <template #default="{row}">
|
|
|
|
|
+ {{ (row.q1+ row.q2+ row.q3+ row.q4).toFixed(2) }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="年度" align="center" prop="annualTotal" :show-overflow-tooltip='true' width="150"/>
|
|
|
|
|
+ <el-table-column label="当前是否欠缴税费" align="center" prop="isCurrentArrears" :show-overflow-tooltip='true'
|
|
|
|
|
+ width="150"/>
|
|
|
|
|
+ <el-table-column label="欠缴税费金额" align="center" prop="arrearsAmount" :show-overflow-tooltip='true'
|
|
|
|
|
+ width="150"/>
|
|
|
|
|
+ <el-table-column label="是否非正常户" align="center" prop="isAbnormalAccount" :show-overflow-tooltip='true'
|
|
|
|
|
+ width="150"/>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
|
|
<div style="position: fixed;bottom: 20px;right: 10px;">
|
|
<div style="position: fixed;bottom: 20px;right: 10px;">
|
|
@@ -117,177 +126,177 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup name="Taxes">
|
|
<script setup name="Taxes">
|
|
|
- import {
|
|
|
|
|
- listTaxes,
|
|
|
|
|
- getTaxes,
|
|
|
|
|
- delTaxes,
|
|
|
|
|
- delTaxesBatch
|
|
|
|
|
- } from "@/api/basicData/xcrPayTaxes";
|
|
|
|
|
- import {reactive, ref, toRaw} from "vue";
|
|
|
|
|
- import {getToken} from "@/utils/auth";
|
|
|
|
|
- import {ElMessage} from "element-plus";
|
|
|
|
|
- import {likeQueryMethod} from "@/utils/likeQueryMethod";
|
|
|
|
|
|
|
+import {delTaxes, delTaxesBatch, listTaxes} from "@/api/basicData/xcrPayTaxes";
|
|
|
|
|
+import {reactive, ref, toRaw} from "vue";
|
|
|
|
|
+import {getToken} from "@/utils/auth";
|
|
|
|
|
+import {ElMessage} from "element-plus";
|
|
|
|
|
+import {likeQueryMethod} from "@/utils/likeQueryMethod";
|
|
|
|
|
|
|
|
- const {proxy} = getCurrentInstance();
|
|
|
|
|
|
|
+const {proxy} = getCurrentInstance();
|
|
|
|
|
|
|
|
- const xcrPayTaxesList = ref([]);
|
|
|
|
|
- const open = ref(false);
|
|
|
|
|
- const loading = ref(true);
|
|
|
|
|
- const showSearch = ref(true);
|
|
|
|
|
- const ids = ref([]);
|
|
|
|
|
- const single = ref(true);
|
|
|
|
|
- const multiple = ref(true);
|
|
|
|
|
- const total = ref(0);
|
|
|
|
|
- const title = ref("");
|
|
|
|
|
|
|
+const xcrPayTaxesList = ref([]);
|
|
|
|
|
+const open = ref(false);
|
|
|
|
|
+const loading = ref(true);
|
|
|
|
|
+const showSearch = ref(true);
|
|
|
|
|
+const ids = ref([]);
|
|
|
|
|
+const single = ref(true);
|
|
|
|
|
+const multiple = ref(true);
|
|
|
|
|
+const total = ref(0);
|
|
|
|
|
+const title = ref("");
|
|
|
|
|
|
|
|
- const upload = reactive({
|
|
|
|
|
- // 是否显示弹出层(用户导入)
|
|
|
|
|
- open: false,
|
|
|
|
|
- // 弹出层标题(用户导入)
|
|
|
|
|
- title: '',
|
|
|
|
|
- // 是否禁用上传
|
|
|
|
|
- isUploading: false,
|
|
|
|
|
- // 设置上传的请求头部
|
|
|
|
|
- headers: {Authorization: getToken()},
|
|
|
|
|
- // 上传的地址
|
|
|
|
|
- url: import.meta.env.VITE_APP_BASE_API + '/basicData/xcrPayTaxes/importData'
|
|
|
|
|
- })
|
|
|
|
|
- const handleFileSuccess = (e) => {
|
|
|
|
|
- if (e.code == 200) {
|
|
|
|
|
- ElMessage({
|
|
|
|
|
- type: "success",
|
|
|
|
|
- message: e.msg
|
|
|
|
|
- })
|
|
|
|
|
- getList()
|
|
|
|
|
- proxy.$refs['uploadRef']?.clearFiles()
|
|
|
|
|
- } else {
|
|
|
|
|
- ElMessage({
|
|
|
|
|
- type: "error",
|
|
|
|
|
- message: e.msg
|
|
|
|
|
- })
|
|
|
|
|
- proxy.$refs['uploadRef']?.clearFiles()
|
|
|
|
|
- }
|
|
|
|
|
|
|
+const upload = reactive({
|
|
|
|
|
+ // 是否显示弹出层(用户导入)
|
|
|
|
|
+ open: false,
|
|
|
|
|
+ // 弹出层标题(用户导入)
|
|
|
|
|
+ title: '',
|
|
|
|
|
+ // 是否禁用上传
|
|
|
|
|
+ isUploading: false,
|
|
|
|
|
+ // 设置上传的请求头部
|
|
|
|
|
+ headers: {Authorization: getToken()},
|
|
|
|
|
+ // 上传的地址
|
|
|
|
|
+ url: import.meta.env.VITE_APP_BASE_API + '/basicData/xcrPayTaxes/importData'
|
|
|
|
|
+})
|
|
|
|
|
+const handleFileSuccess = (e) => {
|
|
|
|
|
+ if (e.code == 200) {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: "success",
|
|
|
|
|
+ message: e.msg
|
|
|
|
|
+ })
|
|
|
|
|
+ getList()
|
|
|
|
|
+ proxy.$refs['uploadRef']?.clearFiles()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: "error",
|
|
|
|
|
+ message: e.msg
|
|
|
|
|
+ })
|
|
|
|
|
+ proxy.$refs['uploadRef']?.clearFiles()
|
|
|
}
|
|
}
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
- function submitFileForm() {
|
|
|
|
|
- proxy.$refs['uploadRef']?.submit();
|
|
|
|
|
- upload.open = false;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+function submitFileForm() {
|
|
|
|
|
+ proxy.$refs['uploadRef']?.submit();
|
|
|
|
|
+ upload.open = false;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+function handleImport() {
|
|
|
|
|
+ upload.open = true
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
- function handleImport() {
|
|
|
|
|
- upload.open = true
|
|
|
|
|
|
|
+const data = reactive({
|
|
|
|
|
+ form: {},
|
|
|
|
|
+ queryParams: {
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
|
+ pageSize: 20,
|
|
|
|
|
+ socialCreditCode: null,
|
|
|
|
|
+ taxpayerName: null,
|
|
|
|
|
+ q1: null,
|
|
|
|
|
+ q2: null,
|
|
|
|
|
+ q3: null,
|
|
|
|
|
+ q4: null,
|
|
|
|
|
+ annualTotal: null,
|
|
|
|
|
+ isCurrentArrears: null,
|
|
|
|
|
+ arrearsAmount: null,
|
|
|
|
|
+ isAbnormalAccount: null
|
|
|
|
|
+ },
|
|
|
|
|
+ rules: {
|
|
|
|
|
+ socialCreditCode: [
|
|
|
|
|
+ {
|
|
|
|
|
+ required: true, message: "社会信用代码不能为空", trigger: "blur"
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ taxpayerName: [
|
|
|
|
|
+ {
|
|
|
|
|
+ required: true, message: "纳税人名称不能为空", trigger: "blur"
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
}
|
|
}
|
|
|
|
|
+});
|
|
|
|
|
|
|
|
- const data = reactive({
|
|
|
|
|
- form: {},
|
|
|
|
|
- queryParams: {
|
|
|
|
|
- pageNum: 1,
|
|
|
|
|
- pageSize: 20,
|
|
|
|
|
- socialCreditCode: null,
|
|
|
|
|
- taxpayerName: null,
|
|
|
|
|
- q1: null,
|
|
|
|
|
- q2: null,
|
|
|
|
|
- q3: null,
|
|
|
|
|
- q4: null,
|
|
|
|
|
- annualTotal: null,
|
|
|
|
|
- isCurrentArrears: null,
|
|
|
|
|
- arrearsAmount: null,
|
|
|
|
|
- isAbnormalAccount: null
|
|
|
|
|
- },
|
|
|
|
|
- rules: {
|
|
|
|
|
- socialCreditCode: [
|
|
|
|
|
- {
|
|
|
|
|
- required: true, message: "社会信用代码不能为空", trigger: "blur" }
|
|
|
|
|
- ],
|
|
|
|
|
- taxpayerName: [
|
|
|
|
|
- {
|
|
|
|
|
- required: true, message: "纳税人名称不能为空", trigger: "blur" }
|
|
|
|
|
- ],
|
|
|
|
|
- }
|
|
|
|
|
|
|
+const {queryParams, form, rules} = toRefs(data);
|
|
|
|
|
+
|
|
|
|
|
+/** 查询纳税信息列表 */
|
|
|
|
|
+function getList() {
|
|
|
|
|
+ loading.value = true;
|
|
|
|
|
+ let toServerObj = likeQueryMethod('uni_code', queryParams.value.uniCode, queryParams.value.pageNum, queryParams.value.pageSize);
|
|
|
|
|
+ listTaxes(toServerObj).then(response => {
|
|
|
|
|
+ xcrPayTaxesList.value = response.records;
|
|
|
|
|
+ total.value = response.total;
|
|
|
|
|
+ loading.value = false;
|
|
|
});
|
|
});
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
- const {queryParams, form, rules} = toRefs(data);
|
|
|
|
|
|
|
|
|
|
- /** 查询纳税信息列表 */
|
|
|
|
|
- function getList() {
|
|
|
|
|
- loading.value = true;
|
|
|
|
|
- let toServerObj = likeQueryMethod('uni_code', queryParams.value.uniCode, queryParams.value.pageNum, queryParams.value.pageSize);
|
|
|
|
|
- listTaxes(toServerObj).then(response => {
|
|
|
|
|
- xcrPayTaxesList.value = response.records;
|
|
|
|
|
- total.value = response.total;
|
|
|
|
|
- loading.value = false;
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// 表单重置
|
|
|
|
|
+function reset() {
|
|
|
|
|
+ form.value = {
|
|
|
|
|
+ id: null,
|
|
|
|
|
+ socialCreditCode: null,
|
|
|
|
|
+ taxpayerName: null,
|
|
|
|
|
+ q1: null,
|
|
|
|
|
+ q2: null,
|
|
|
|
|
+ q3: null,
|
|
|
|
|
+ q4: null,
|
|
|
|
|
+ annualTotal: null,
|
|
|
|
|
+ isCurrentArrears: null,
|
|
|
|
|
+ arrearsAmount: null,
|
|
|
|
|
+ isAbnormalAccount: null
|
|
|
|
|
+ };
|
|
|
|
|
+ proxy.resetForm("xcrPayTaxesRef");
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
+/** 搜索按钮操作 */
|
|
|
|
|
+function handleQuery() {
|
|
|
|
|
+ queryParams.value.pageNum = 1;
|
|
|
|
|
+ getList();
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
- // 表单重置
|
|
|
|
|
- function reset() {
|
|
|
|
|
- form.value = {
|
|
|
|
|
- id: null,
|
|
|
|
|
- socialCreditCode: null,
|
|
|
|
|
- taxpayerName: null,
|
|
|
|
|
- q1: null,
|
|
|
|
|
- q2: null,
|
|
|
|
|
- q3: null,
|
|
|
|
|
- q4: null,
|
|
|
|
|
- annualTotal: null,
|
|
|
|
|
- isCurrentArrears: null,
|
|
|
|
|
- arrearsAmount: null,
|
|
|
|
|
- isAbnormalAccount: null
|
|
|
|
|
- };
|
|
|
|
|
- proxy.resetForm("xcrPayTaxesRef");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+/** 重置按钮操作 */
|
|
|
|
|
+function resetQuery() {
|
|
|
|
|
+ proxy.resetForm("queryRef");
|
|
|
|
|
+ handleQuery();
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
- /** 搜索按钮操作 */
|
|
|
|
|
- function handleQuery() {
|
|
|
|
|
- queryParams.value.pageNum = 1;
|
|
|
|
|
- getList();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// 多选框选中数据
|
|
|
|
|
+function handleSelectionChange(selection) {
|
|
|
|
|
+ ids.value = selection.map(item => item.id);
|
|
|
|
|
+ single.value = selection.length != 1;
|
|
|
|
|
+ multiple.value = !selection.length;
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
- /** 重置按钮操作 */
|
|
|
|
|
- function resetQuery() {
|
|
|
|
|
- proxy.resetForm("queryRef");
|
|
|
|
|
- handleQuery();
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
- // 多选框选中数据
|
|
|
|
|
- function handleSelectionChange(selection) {
|
|
|
|
|
- ids.value = selection.map(item => item.id);
|
|
|
|
|
- single.value = selection.length != 1;
|
|
|
|
|
- multiple.value = !selection.length;
|
|
|
|
|
|
|
+/** 删除按钮操作 */
|
|
|
|
|
+async function handleDelete(row) {
|
|
|
|
|
+ const res = await delTaxes();
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: '删除成功'
|
|
|
|
|
+ })
|
|
|
|
|
+ getList();
|
|
|
}
|
|
}
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
+/** 批量删除*/
|
|
|
|
|
+const batchDelete = (row) => {
|
|
|
|
|
+ const idsToS = row.xhCodeId || ids.value;
|
|
|
|
|
+ (proxy.$modal).confirm('是否确认删除这' + idsToS.length + '条的数据项?').then(function () {
|
|
|
|
|
+ return delTaxesBatch(toRaw(idsToS));
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ getList();
|
|
|
|
|
+ proxy.$modal.msgSuccess("删除成功");
|
|
|
|
|
+ }).catch(() => {
|
|
|
|
|
+ });
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
- /** 删除按钮操作 */
|
|
|
|
|
- async function handleDelete(row) {
|
|
|
|
|
- const res = await delTaxes();
|
|
|
|
|
- if(res.code == 200){
|
|
|
|
|
- ElMessage({
|
|
|
|
|
- type:'success',
|
|
|
|
|
- message:'删除成功'
|
|
|
|
|
- })
|
|
|
|
|
- getList();
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- /** 批量删除*/
|
|
|
|
|
- const batchDelete = (row)=>{
|
|
|
|
|
- const idsToS = row.xhCodeId || ids.value;
|
|
|
|
|
- (proxy.$modal).confirm('是否确认删除这' + idsToS.length+'条的数据项?').then(function() {
|
|
|
|
|
- return delTaxesBatch(toRaw(idsToS));
|
|
|
|
|
- }).then(() => {
|
|
|
|
|
- getList();
|
|
|
|
|
- proxy.$modal.msgSuccess("删除成功");
|
|
|
|
|
- }).catch(() => {});
|
|
|
|
|
- }
|
|
|
|
|
|
|
+/** 导出按钮操作 */
|
|
|
|
|
+function handleExport() {
|
|
|
|
|
+ proxy.download('basicData/xcrPayTaxes/export', {
|
|
|
|
|
+ ...queryParams.value
|
|
|
|
|
+ }, `纳税信息_${new Date().getTime()}.xlsx`)
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
- /** 导出按钮操作 */
|
|
|
|
|
- function handleExport() {
|
|
|
|
|
- proxy.download('basicData/xcrPayTaxes/export', {
|
|
|
|
|
- ...queryParams.value
|
|
|
|
|
- }, `纳税信息_${new Date().getTime()}.xlsx`)
|
|
|
|
|
- }
|
|
|
|
|
- const downloadTemplate = ()=>{
|
|
|
|
|
- proxy.download('basicData/xcrPayTaxes/getUploadTemplate',{}, `纳税信息模板.xlsx`)
|
|
|
|
|
- }
|
|
|
|
|
- getList();
|
|
|
|
|
|
|
+const downloadTemplate = () => {
|
|
|
|
|
+ proxy.download('basicData/xcrPayTaxes/getUploadTemplate', {}, `纳税信息模板.xlsx`)
|
|
|
|
|
+}
|
|
|
|
|
+getList();
|
|
|
</script>
|
|
</script>
|