Browse Source

成本分配表-附件

jbb 1 year ago
parent
commit
ddda7e176d
1 changed files with 18 additions and 1 deletions
  1. 18 1
      src/views/reportForms/cost-allocation-table.vue

+ 18 - 1
src/views/reportForms/cost-allocation-table.vue

@@ -33,7 +33,7 @@
 
             <a-col :md="6" :sm="8">
               <a-form-model-item label="产品款号" prop="poStyleNum">
-                <span :title=" detailsPlanNum.poStyleNum">{{ detailsPlanNum.poStyleNum | ellipsis}}</span>
+                <span :title="detailsPlanNum.poStyleNum">{{ detailsPlanNum.poStyleNum | ellipsis}}</span>
                 <!-- {{ detailsPlanNum.poStyleNum }} -->
               </a-form-model-item>
             </a-col>
@@ -233,6 +233,9 @@
                 <a-button type="primary" >附件上传</a-button>
               </a-upload>
             </a-col>
+            <a-col :md="6" :sm="8" class="noprint">
+              <a-button type="primary" @click="openEnclosure">附件</a-button>
+            </a-col>
         </a-form-model>
       </div>
       </a-row>
@@ -820,6 +823,20 @@ export default {
       this.detailsPlanNum.shuiemoney = shuiemoneyAll.toFixed(3)
       this.detailsPlanNum.rmbNorTaxExpense = obj.disbursedLocalmoney.toFixed(2)
       this.detailsPlanNum.rmbExpense = obj.iNatMoney.toFixed(2)
+    },
+     // 附件
+     openEnclosure(){
+      this.$refs.attachmentDisplay.AttachmentModVis = true
+      var attachList = [];
+      if (this.detailsPlanNum != null && this.detailsPlanNum.accessorItemList != null){
+        this.detailsPlanNum.accessorItemList.forEach(e=>{
+          var attach = {};
+          attach.name = e.filename;
+          attach.src=e.fileurl;
+          attachList.push(attach);
+        });
+      }
+      this.$refs.attachmentDisplay.attachmentData =  attachList;
     },
     //打印
     daYin(){