2 Commits 224f72a0fe ... f7ccb39dfa

Author SHA1 Message Date
  Liuteng f7ccb39dfa 1 3 months ago
  Liuteng 39b71e3388 1 3 months ago
2 changed files with 7 additions and 4 deletions
  1. 2 2
      src/api/report.js
  2. 5 2
      src/views/report/components/selectDate.vue

+ 2 - 2
src/api/report.js

@@ -83,11 +83,11 @@ export function wfwzxx(data) {
   });
   });
 }
 }
 //
 //
-export function getGZ(data) {
+export function getGZ(params) {
   return request({
   return request({
     url: `/tax/informationSelect/getGZ`,
     url: `/tax/informationSelect/getGZ`,
     method: "get",
     method: "get",
-    data,
+    params,
   });
   });
 }
 }
 //代办事项
 //代办事项

+ 5 - 2
src/views/report/components/selectDate.vue

@@ -236,8 +236,11 @@ export default {
     //获取章子
     //获取章子
     getGZ() {
     getGZ() {
       return new Promise((resolve, reject) => {
       return new Promise((resolve, reject) => {
-        getGZ().then((res) => {
-          if (res.code == 200) {
+        let form = {
+          swjgdm: this.$route.query.swjgdm || "",
+        };
+        getGZ(form).then((res) => {
+          if (res.code == 200 && res.result[0]) {
             resolve(res.result[0].imageUrl || "");
             resolve(res.result[0].imageUrl || "");
           } else {
           } else {
             resolve("");
             resolve("");