|  | @@ -246,6 +246,14 @@
 | 
	
		
			
				|  |  |                </h4>
 | 
	
		
			
				|  |  |                </a-form-model-item>
 | 
	
		
			
				|  |  |              </a-col>
 | 
	
		
			
				|  |  | +            <a-col :md="6" :sm="8" class="noprint">
 | 
	
		
			
				|  |  | +              <a-upload  productName="file" :showUploadList="true" :file-list="fileList" :headers="tokenHeader" :multiple="false"   :action="importExcelUrl"   :data="{code:this.detailsPlanNum.planNum,name:this.fileName}"  >
 | 
	
		
			
				|  |  | +                <a-button type="primary" disabled>附件上传</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>
 | 
	
	
		
			
				|  | @@ -328,7 +336,8 @@
 | 
	
		
			
				|  |  |         <Csubmit-information ref="CsubmitInformation" @close="closeInformation"></Csubmit-information>
 | 
	
		
			
				|  |  |         <!-- 选择指派人员 -->
 | 
	
		
			
				|  |  |         <select-user-modal ref="SelectUserModal" @selectFinished="selectFinished"></select-user-modal>
 | 
	
		
			
				|  |  | -    </div>
 | 
	
		
			
				|  |  | +       <attachment-display ref="attachmentDisplay"></attachment-display>
 | 
	
		
			
				|  |  | +      </div>
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |    </a-modal>
 | 
	
		
			
				|  |  |  </template>
 | 
	
	
		
			
				|  | @@ -352,11 +361,11 @@ import accidentListModal from '@views/cost-allocation-total/modal/accidentListMo
 | 
	
		
			
				|  |  |  import SelectUserModal from '@views/cost-allocation-total/modal/SelectUserModal.vue'
 | 
	
		
			
				|  |  |  import { USER_AUTH } from "@/store/mutation-types"
 | 
	
		
			
				|  |  |  import { seachPlanNum, addHalfInfo,deleteFileDetail,assignedData,cancelSubmit } from '@api/document/cost-allocation-total.js'
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +import AttachmentDisplay from '@views/reportForms/fabric-loss-table/attachment-display.vue'
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: 'CostAllocationTable', // 成本分配 (新增)
 | 
	
		
			
				|  |  |    mixins: [JeecgListMixin],
 | 
	
		
			
				|  |  | -  components: { JEllipsis,SelectUserModal,CsubmitInformation, moment, tabs, mainTableExpenseCNYModal, mainTableExpenseUSDModal, accidentListModal },
 | 
	
		
			
				|  |  | +  components: { JEllipsis,AttachmentDisplay,SelectUserModal,CsubmitInformation, moment, tabs, mainTableExpenseCNYModal, mainTableExpenseUSDModal, accidentListModal },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
	
		
			
				|  | @@ -504,18 +513,18 @@ export default {
 | 
	
		
			
				|  |  |                this.detailsPlanNum.shortseveral = 0
 | 
	
		
			
				|  |  |                this.detailsPlanNum.shortvalue = 0
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            // var fileList =  (this.detailsPlanNum.attachs!==''&&this.detailsPlanNum.attachs)?this.detailsPlanNum.attachs.split(","):[]
 | 
	
		
			
				|  |  | -            //   this.fileList = []
 | 
	
		
			
				|  |  | -            //   if(fileList.length!==0){
 | 
	
		
			
				|  |  | -            //     fileList.map(item=>{
 | 
	
		
			
				|  |  | -            //       this.fileList.push({
 | 
	
		
			
				|  |  | -            //         uid: '-1',
 | 
	
		
			
				|  |  | -            //         name: item,
 | 
	
		
			
				|  |  | -            //         status: 'done',
 | 
	
		
			
				|  |  | -            //         url:'http://www.myfitt.cn:18001/jeecg-boot/sys/common/static' +'/'+item
 | 
	
		
			
				|  |  | -            //       })
 | 
	
		
			
				|  |  | -            //   })
 | 
	
		
			
				|  |  | -            //   }
 | 
	
		
			
				|  |  | +            var fileList =  (this.detailsPlanNum.attachs!==''&&this.detailsPlanNum.attachs)?this.detailsPlanNum.attachs.split(","):[]
 | 
	
		
			
				|  |  | +              this.fileList = []
 | 
	
		
			
				|  |  | +              if(fileList.length!==0){
 | 
	
		
			
				|  |  | +                fileList.map(item=>{
 | 
	
		
			
				|  |  | +                  this.fileList.push({
 | 
	
		
			
				|  |  | +                    uid: '-1',
 | 
	
		
			
				|  |  | +                    name: item,
 | 
	
		
			
				|  |  | +                    status: 'done',
 | 
	
		
			
				|  |  | +                    url:'http://www.myfitt.cn:18001/jeecg-boot/sys/common/static' +'/'+item
 | 
	
		
			
				|  |  | +                  })
 | 
	
		
			
				|  |  | +              })
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  |              //调整表头格式
 | 
	
		
			
				|  |  |              this.adjustingHeader()
 | 
	
		
			
				|  |  |              // this.accidentListData = res.result.syCostAllocationAccidentList //事故单
 | 
	
	
		
			
				|  | @@ -649,6 +658,20 @@ export default {
 | 
	
		
			
				|  |  |        this.color2 = this.color2>0?this.color2:-this.color2
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    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;
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      //判断有无指派人
 | 
	
		
			
				|  |  |      determineAssignedPerson(){
 |