ccjgmwz 3 年之前
父节点
当前提交
2727ed1eed

+ 1 - 1
src/views/houseSelfCollect/inspectionManagement.vue

@@ -268,7 +268,7 @@
 								this.warehouseCount = _wareHouse.count
 							} 
 						for (let i = 0; i < response.length; i++) {
-							if(response[i].warehouseName==_wareHouse.value){
+							if(_wareHouse && response[i].warehouseName==_wareHouse.value){
 								this.warehouseCount = response[i].count
 							}
 							this.warehouseList.push({

+ 12 - 14
src/views/houseSelfCollect/paymentManagement.vue

@@ -155,7 +155,7 @@
               scope.row.approveStatus ||
               (scope.row.status != '待结算' && !scope.row.approveStatus)
             "
-            @click="print(scope.row)"
+            @click="print1(scope.row)"
             v-hasPermission="`acquisitionManagement.acquisitionPay.finace`"
           >财务打印</el-button>
           <el-button
@@ -348,24 +348,24 @@ export default {
         response.data.imgList = [
           {
             name:'xml1',
-            src: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/75215bed1ad7408aa73d6474bfe82854.png"
+            src: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/75215bed1ad7408aa73d6474bfe82854.png'
           },
             {
             name:'xml2',
-            src: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/75215bed1ad7408aa73d6474bfe82854.png"
+            src: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/75215bed1ad7408aa73d6474bfe82854.png'
           },  {
             name:'xml3',
-            src: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/75215bed1ad7408aa73d6474bfe82854.png"
+            src: 'https://taohaoliang.oss-cn-beijing.aliyuncs.com/admin/75215bed1ad7408aa73d6474bfe82854.png'
           }
          ]
         this.invoicingImgList = response.data.imgList
         if(response.data.imgList.length>0){
           for(let i = 0;i<response.data.imgList;i++){
           //创建标签下载文件
-            let a = document.createElement("a");
+            let a = document.createElement('a');
             a.href = response.data.imgList[i].src;
-            let urlArr = a.href.split(".");
-            a.setAttribute('download',response.data.imgList[i].name+".xml");
+            let urlArr = a.href.split('.');
+            a.setAttribute('download',response.data.imgList[i].name+'.xml');
             a.click();
             a.remove();
           }
@@ -764,13 +764,12 @@ export default {
           })
       }
     },
+    print1(row) {
+      this.isShowPrintType = true
+      this.rowData = row
+    },
     print(row) {
-      console.log('打印数据', row)
-      if (sessionStorage.getItem('ws-pf_roleName') == '财务') {
-        this.isShowPrintType = true
-        this.rowData = row
-      } else {
-        getpaymentexamine({ id: row.id })
+      getpaymentexamine({ id: row.id })
           .toPromise()
           .then(response => {
             this.printData = response
@@ -787,7 +786,6 @@ export default {
               date.getDate() +
               '日'
           })
-      }
     },
     examine() {
       if (this.modification.length == 0) {

+ 1 - 0
src/views/houseSelfCollect/settlement.vue

@@ -441,6 +441,7 @@ export default {
     }
   },
   activated() {
+    debugger
     this.types = this.$route.query.type
     if( this.types == 2){
          this.disabled=true