Commit 151a5169 authored by youjie's avatar youjie

no message

parent 9895f12a
...@@ -709,8 +709,8 @@ ...@@ -709,8 +709,8 @@
</li> </li>
</ul> </ul>
<div style="text-align: right;"> <div style="text-align: right;">
<button class="normalBtn" @click="method5(15)">核算项目校对导入</button> <button class="normalBtn" @click="outerVisible = true">核算项目校对导入</button>
<button class="hollowFixedBtn" @click="method5(1)">核算项目校对导</button> <button class="hollowFixedBtn" @click="method5(1)">核算项目校对导出</button>
</div> </div>
</div> </div>
<div class="_fnDm_content" v-loading='loading'> <div class="_fnDm_content" v-loading='loading'>
...@@ -846,6 +846,17 @@ ...@@ -846,6 +846,17 @@
<button class="normalBtn" type="primary" @click="determine">查询</button> <button class="normalBtn" type="primary" @click="determine">查询</button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog custom-class='w700' title="导入" :visible.sync="outerVisible" center>
<el-upload style="text-align: center;" drag class="upload-demo"
:action="importFileUrl2"
:on-success="handleAvatarSuccess"
: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> </div>
</template> </template>
<script> <script>
...@@ -1012,6 +1023,8 @@ ...@@ -1012,6 +1023,8 @@
PostId:0, PostId:0,
IsLeave:0, IsLeave:0,
}, },
importFileUrl2:'',
outerVisible: false
} }
}, },
created() { created() {
...@@ -1022,6 +1035,10 @@ ...@@ -1022,6 +1035,10 @@
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.importFileUrl2=this.domainManager().UploadFileUrl +
"?cmd=dmc_post_LocalFileUpload&Type=15&fileType=1&fileLimit=1&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 this.getCompanyMsg.RB_Group_Id = this.employeeMsg.GroupId = this.getDepartmentMsg.RB_Group_Id = userInfo
.RB_Group_id; //集团ID .RB_Group_id; //集团ID
this.DepartIDs = userInfo.RB_Department_Id; this.DepartIDs = userInfo.RB_Department_Id;
...@@ -1249,15 +1266,35 @@ ...@@ -1249,15 +1266,35 @@
}else{ }else{
this.msg.BranchIds = '' this.msg.BranchIds = ''
} }
if(type==15){ if(type==1){
this.msg.type = 15
this.GetLocalFile("Financial_post_DownLoadFinanceToKingdeeItem", this.msg, "核算项目校对导入.xls");
}else if(type==1){
this.GetLocalFile("Financial_post_DownLoadFinanceToKingdeeItem", this.msg, "核算项目校对导出.xls"); this.GetLocalFile("Financial_post_DownLoadFinanceToKingdeeItem", this.msg, "核算项目校对导出.xls");
}else{ }else{
this.GetLocalFile("Financial_post_DownLoadFinanceToKingdee", this.msg, "金蝶数据导出.xls"); this.GetLocalFile("Financial_post_DownLoadFinanceToKingdee", this.msg, "金蝶数据导出.xls");
} }
}, },
beforeAvatarUpload(file) {
return
},
//上传
handleAvatarSuccess(res, file) {
let that = this
if (res.resultCode == 1) {
this.Success(res.message);
this.outerVisible = false;
this.getList();
}else{
that.$confirm(res.message, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
}).catch(() => {
});
}
},
financeRemove(id) { //作废 financeRemove(id) { //作废
this.$confirm('是否对申请单进行作废操作?作废后不可恢复!', '提示', { this.$confirm('是否对申请单进行作废操作?作废后不可恢复!', '提示', {
confirmButtonText: '确定', 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