Commit 060e54b6 authored by 吴春's avatar 吴春

1

parent 29dbaa82
......@@ -688,7 +688,8 @@
</span>
<button class="hollowFixedBtn" @click="resetPageIndex(),getPageList()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" @click="method5()">导出</button>
<button v-if="DataList&&DataList.length>0" class="hollowFixedBtn" @click="Markers">标记</button>
<!-- <button v-if="DataList&&DataList.length>0" class="hollowFixedBtn" @click="Markers">标记</button> -->
<button v-if="DataList&&DataList.length>0" class="hollowFixedBtn" @click="outerVisibleAdd=true,Markers">导入</button>
</li>
</ul>
<!-- <div style="text-align: right;">
......@@ -845,6 +846,18 @@
</el-upload>
</el-dialog>
<el-dialog custom-class='w700' title="导入" :visible.sync="outerVisibleAdd" center>
<el-upload style="text-align: center;" drag class="upload-demo"
:action="importFileUrl3"
:on-success="handleAvatarSuccessStatus"
:before-upload="beforeAvatarUpload">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
<!-- <div slot="tip" class="el-upload__tip">只能上传Excel文件</div> -->
</el-upload>
</el-dialog>
</div>
</template>
<script>
......@@ -864,6 +877,7 @@
searchList: [],
widthSon: '700px',
colorSon: "#f5f5f5",
outerVisibleAdd:false,
Finance_InvoiceUpdate:false,
Finance_ExpenseType:false,
msg: {
......@@ -1023,6 +1037,7 @@
IsLeave:0,
},
importFileUrl2:'',
importFileUrl3:'',
outerVisible: false
}
},
......@@ -1038,6 +1053,11 @@
"?cmd=dmc_post_LocalFileUpload&Type=15&fileType=1&fileLimit=10&EmployeeId="+userInfo.EmployeeId
+'&RB_Group_id='+userInfo.RB_Group_id +'&KingdeeBId=' + this.msg.RB_Branch_Id
;
this.importFileUrl3=this.domainManager().UploadFileUrl +
"?cmd=dmc_post_LocalFileUpload&Type=17&fileType=1&fileLimit=10&EmployeeId="+userInfo.EmployeeId
+'&RB_Group_id='+userInfo.RB_Group_id +'&KingdeeBId=' + this.msg.RB_Branch_Id
;
this.getCompanyMsg.RB_Group_Id = this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo
.RB_Group_id; //集团ID
this.DepartIDs = userInfo.RB_Department_Id;
......@@ -1399,6 +1419,28 @@
}
},
//上传
handleAvatarSuccessStatus(res, file) {
let that = this
if (res.resultCode == 1) {
this.Success(res.message);
this.outerVisibleAdd = false;
this.getPageList();
}else{
that.$confirm(res.message, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
}).catch(() => {
});
}
},
financeRemove(id) { //作废
this.$confirm('是否对申请单进行作废操作?作废后不可恢复!', '提示', {
confirmButtonText: '确定',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment