소스 검색

Finish Hotfix-26

chen 3 년 전
부모
커밋
2c10e3b574
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      src/views/engin_deposit/components/refund_list-detail.vue

+ 12 - 0
src/views/engin_deposit/components/refund_list-detail.vue

@@ -250,6 +250,7 @@
 
 
     <h3 class="gdzl">工程资料</h3>
     <h3 class="gdzl">工程资料</h3>
     <el-button
     <el-button
+      :disabled="isDis"
       class="batchDownload"
       class="batchDownload"
       type="primary"
       type="primary"
       size="small"
       size="small"
@@ -321,6 +322,11 @@
                 src="@/assets/common/pdf.png"
                 src="@/assets/common/pdf.png"
                 v-if="checkFileType(scope.row.fileUrl) == 'pdf'"
                 v-if="checkFileType(scope.row.fileUrl) == 'pdf'"
               />
               />
+              <img
+                v-if="checkFileType(item.url) == 'file'"
+                class="file"
+                src="@/assets/common/zip.jpeg"
+              />
             </template>
             </template>
           </el-table-column>
           </el-table-column>
           <el-table-column
           <el-table-column
@@ -535,6 +541,7 @@ export default {
   },
   },
   data() {
   data() {
     return {
     return {
+      isDis: true,
       imageURL: this.$imageUrl,
       imageURL: this.$imageUrl,
       title: "审批",
       title: "审批",
       imageURL: this.$imageUrl,
       imageURL: this.$imageUrl,
@@ -632,6 +639,11 @@ export default {
     async getData(data) {
     async getData(data) {
       const res = await getDepositManageDetail(data);
       const res = await getDepositManageDetail(data);
       console.log(res);
       console.log(res);
+      if (res.data.dataList.length == 0) {
+        this.isDis = true;
+      } else {
+        this.isDis = false;
+      }
       res.data.items.forEach((item) => {
       res.data.items.forEach((item) => {
         // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
         // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
         item.sums1 = ["hasSendQty", "dataQty", "qty"];
         item.sums1 = ["hasSendQty", "dataQty", "qty"];