Liuteng il y a 2 mois
Parent
commit
d1db77a2a3

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "newsmzc",
-  "version": "2.2.0",
+  "version": "2.3.0",
   "private": true,
   "scripts": {
     "serve": "vue-cli-service serve",

+ 2 - 2
src/api/TaxAdministration.js

@@ -332,8 +332,8 @@ export function downloadTaxRecord(data) {
 export function getTaxList(data) {
     return request({
         url: '/humanSociety/commonService/getTaxList',
-        method: 'get',
-        // data
+        method: 'post',
+        data
     })
 }
 // 税案通报列表查询详情

+ 59 - 26
src/views/HVversion/VocationalWork/TaxAdministration/satb/component/lb.vue

@@ -1,17 +1,23 @@
 <template>
   <yw-box class="qywszm-box" title="通报列表">
     <div class="box">
-      <div class="list btnActive" v-for="(item, index) in data" :key="index" @click="next(item)">
+      <div
+        class="list btnActive"
+        v-for="(item, index) in data"
+        :key="index"
+        @click="next(item)"
+      >
         <div class="left">
-        {{item.name}}
-         </div>
-        <div class="right">{{ item.fbTime}}</div>
+          {{ item.name }}
+        </div>
+        <div class="right">{{ item.fbTime }}</div>
       </div>
     </div>
   </yw-box>
 </template>
 
 <script>
+import { debug } from "@/api/zxbg";
 import { getTaxList } from "@/api/TaxAdministration";
 export default {
   data() {
@@ -19,20 +25,20 @@ export default {
       data: {},
     };
   },
-  created(){
-
-this.getlist()
-},
+  created() {
+    this.getlist();
+  },
 
-  methods:{
-      // 获取列表
-      getlist() {
-      console.log(1);
-      getTaxList().then((res) => {
+  methods: {
+    // 获取列表
+    async getlist() {
+      let form = {
+        cookie: await this.getCookie(),
+      };
+      getTaxList(form).then((res) => {
         this.$loading.hide();
         if (res.code == 200) {
-          console.log(res);
-          this.data=res.data 
+          this.data = res.data;
         } else {
           this.$msgbox({
             title: "提示",
@@ -43,13 +49,41 @@ this.getlist()
         }
       });
     },
-    next(e){
-      console.log(e);
-      sessionStorage.setItem("satb",JSON.stringify(e))
-      this.$emit("update:nowStep", 2);
-      this.$emit("update:nowPage", "wc");
-    }
-  }
+    getCookie() {
+      return new Promise((resolve, reject) => {
+        let form = {};
+        form.namespace = "ServiceApp.service";
+        form.serviceId = "FileService";
+        form.funcId = "ReadIni";
+        form.xlh = "123456";
+        form.data = {
+          Section: "init",
+          Key: "zjwzCookies",
+          NoText: "",
+          iniFilePath: "C:\\smzc\\config.ini",
+        };
+        debug(JSON.stringify(form)).then((res) => {
+          if (res.data) {
+            if (res.data.data == "" || res.data.data == undefined) {
+              this.$msgbox({
+                title: "提示",
+                content: "获取 cookie 失败",
+                type: "error",
+                showCansole: false,
+              }).then(() => {});
+              reject("获取 cookie 失败");
+            } else {
+              resolve(res.data.data);
+            }
+          }
+        });
+      });
+    },
+    next(e) {
+      window.location.href = e.url;
+      var a = callbackObjAsync.showBackExit();
+    },
+  },
 };
 </script>
 
@@ -57,11 +91,10 @@ this.getlist()
 @media (min-width: 1800px) {
   .qywszm-box {
     .box {
-      margin-top: -50px;
+      margin-top: -20px;
       width: 100%;
       height: 110%;
       overflow: auto;
-      // background-color: aqua;
       .list {
         display: flex;
         justify-content: space-between;
@@ -95,7 +128,7 @@ this.getlist()
 @media (max-width: 1800px) {
   .qywszm-box {
     .box {
-      margin-top: -50px;
+      margin-top: -20px;
       width: 100%;
       height: 110%;
       overflow: auto;
@@ -144,4 +177,4 @@ this.getlist()
 ::-webkit-scrollbar {
   width: 10px;
 }
-</style>
+</style>

+ 1 - 1
src/views/HVversion/VocationalWork/TaxAdministration/satb/index.vue

@@ -37,7 +37,7 @@ export default {
       time: 120,
       // 进度条
       nowStep: 1,
-      stepList: ["税案通报", "列表", "完成"],
+      stepList: ["税案通报", "列表"],
 
       nowPage: "lb",
       pageList: ["lb", "wc"],