|
|
@@ -185,16 +185,6 @@ const data = reactive({
|
|
|
},
|
|
|
})
|
|
|
const { queryParams } = toRefs(data)
|
|
|
-import one from '@/assets/visualizationimg/one.png';
|
|
|
-import two from '@/assets/visualizationimg/two.png';
|
|
|
-import three from '@/assets/visualizationimg/three.png';
|
|
|
-import four from '@/assets/visualizationimg/four.png';
|
|
|
-import five from '@/assets/visualizationimg/five.png';
|
|
|
-import six from '@/assets/visualizationimg/six.png';
|
|
|
-import seven from '@/assets/visualizationimg/seven.png';
|
|
|
-import eight from '@/assets/visualizationimg/eight.png';
|
|
|
-import nine from '@/assets/visualizationimg/nine.png';
|
|
|
-import ten from '@/assets/visualizationimg/ten.png';
|
|
|
|
|
|
const RanKingData = [{
|
|
|
name: '湖南正清制药集团股份有限公司',
|
|
|
@@ -451,18 +441,18 @@ const previousQuarter = computed(() => {
|
|
|
const currentYear = computed(() => currentDate.value.getFullYear());
|
|
|
// 上一年
|
|
|
const lastYear = computed(() => currentDate.value.getFullYear() - 1);
|
|
|
+const quarterToAmountMap = {
|
|
|
+ '1': 'firstQuarterAmount',
|
|
|
+ '2': 'secondQuarterAmount',
|
|
|
+ '3': 'thirdQuarterAmount',
|
|
|
+ '4': 'fourthQuarterAmount'
|
|
|
+};
|
|
|
function obtaingetTrossDomesticProduct() {
|
|
|
getTrossDomesticProduct(queryParams.value).then((res) => {
|
|
|
const state2023Array = [];
|
|
|
const state2024Array = [];
|
|
|
const name = [];
|
|
|
- const quarterToAmountMap = {
|
|
|
- '1': 'firstQuarterAmount',
|
|
|
- '2': 'secondQuarterAmount',
|
|
|
- '3': 'thirdQuarterAmount',
|
|
|
- '4': 'fourthQuarterAmount'
|
|
|
- };
|
|
|
- console.log(1112, previousQuarter.value, currentYear.value, lastYear.value)
|
|
|
+
|
|
|
res.forEach(item => {
|
|
|
if (item.annualAmount == lastYear.value) {
|
|
|
if (quarterToAmountMap.hasOwnProperty(previousQuarter.value)) {
|
|
|
@@ -488,10 +478,37 @@ function obtaingetTrossDomesticProduct() {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+import one from '@/assets/visualizationimg/one.png';
|
|
|
+import two from '@/assets/visualizationimg/two.png';
|
|
|
+import three from '@/assets/visualizationimg/three.png';
|
|
|
+import four from '@/assets/visualizationimg/four.png';
|
|
|
+import five from '@/assets/visualizationimg/five.png';
|
|
|
+import six from '@/assets/visualizationimg/six.png';
|
|
|
+import seven from '@/assets/visualizationimg/seven.png';
|
|
|
+import eight from '@/assets/visualizationimg/eight.png';
|
|
|
+import nine from '@/assets/visualizationimg/nine.png';
|
|
|
+import ten from '@/assets/visualizationimg/ten.png';
|
|
|
+const RanKingDatas = ref([])
|
|
|
/** 查询纳税Top10 */
|
|
|
function obtaingetTopTenTaxation() {
|
|
|
getTopTenTaxation(queryParams.value).then((res) => {
|
|
|
- console.log("查询纳税Top10:", res)
|
|
|
+ if (quarterToAmountMap.hasOwnProperty(previousQuarter.value)) {
|
|
|
+ const amountProperty = quarterToAmountMap[previousQuarter.value];
|
|
|
+
|
|
|
+ const sortedItems = computed(() => {
|
|
|
+ return [...res].sort((a, b) => b[amountProperty] - a[amountProperty]);
|
|
|
+ });
|
|
|
+ for(var i = 0;i < 10; i++){
|
|
|
+ RanKingDatas.value.push({
|
|
|
+ name:sortedItems.value[i].enterpriseName,
|
|
|
+ value:sortedItems.value[i].amountProperty
|
|
|
+ })
|
|
|
+ }
|
|
|
+ console.log("查询纳税Top10:", sortedItems,RanKingDatas)
|
|
|
+
|
|
|
+ } else {
|
|
|
+ console.error(`Invalid quarter: ${previousQuarter.value}`);
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
|
|
|
@@ -728,7 +745,7 @@ function obtaingetDishonestDebtor() {
|
|
|
getDishonestDebtor(queryParams.value).then((res) => {
|
|
|
console.log("查询失信被执行人:", res)
|
|
|
res.forEach(item => {
|
|
|
- const ObjectValue = {
|
|
|
+ const ObjectValue = {
|
|
|
name: item.enterpriseName,
|
|
|
time: '失信被执行人',
|
|
|
state: 1,
|
|
|
@@ -742,19 +759,19 @@ function obtaingetDishonestDebtor() {
|
|
|
obtainCreditScoreList();
|
|
|
obtaingetTrossDomesticProduct();
|
|
|
obtaingetTopTenTaxation();
|
|
|
-obtaingetXiaoxiangCaiyinLoan();
|
|
|
-obtaingetTechnologyLoan();
|
|
|
-obtaingetHuiyuanLoan();
|
|
|
-obtaingetNumberOfEnterprises();
|
|
|
-obtaingetListedCompanies();
|
|
|
-obtaingetHighTechEnterprises();
|
|
|
-obtaingetTechnologySmallAndmediumSizedEnterprises();
|
|
|
-obtaingetPatentInformation();
|
|
|
-obtaingetAdministrativeSanction();
|
|
|
-obtaingetAdministrativeEnforcement();
|
|
|
-obtaingetBusinessAdnormalities();
|
|
|
-obtaingetDishonestDebtor();
|
|
|
-obtaingetSocialSecurity();
|
|
|
+// obtaingetXiaoxiangCaiyinLoan();
|
|
|
+// obtaingetTechnologyLoan();
|
|
|
+// obtaingetHuiyuanLoan();
|
|
|
+// obtaingetNumberOfEnterprises();
|
|
|
+// obtaingetListedCompanies();
|
|
|
+// obtaingetHighTechEnterprises();
|
|
|
+// obtaingetTechnologySmallAndmediumSizedEnterprises();
|
|
|
+// obtaingetPatentInformation();
|
|
|
+// obtaingetAdministrativeSanction();
|
|
|
+// obtaingetAdministrativeEnforcement();
|
|
|
+// obtaingetBusinessAdnormalities();
|
|
|
+// obtaingetDishonestDebtor();
|
|
|
+// obtaingetSocialSecurity();
|
|
|
|
|
|
|
|
|
// 如果需要的话,在beforeUnmount中清理资源
|