Commit d83590df authored by youjie's avatar youjie

no message

parent e9e2182f
......@@ -61,6 +61,7 @@
<button class="hollowFixedBtn" @click="resetPageIndex()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" @click="method5(0)">{{$t('visa.v_daochu')}}</button>
<button class="normalBtn" @click="method5(1)">汇总{{$t('visa.v_daochu')}}</button>
<button class="hollowFixedBtn" @click="outerVisible=true">{{$t('objFill.daoru')}}</button>
</li>
</ul>
</div>
......@@ -424,6 +425,18 @@
</div>
</el-dialog>
<el-dialog width="410px" :title="$t('objFill.daoru')" :visible.sync="outerVisible" center>
<el-upload ref="ticketUpload" drag class="upload-demo" :action="PlatBalImport()"
:on-success="handleAvatarSuccess">
<i class="el-icon-upload"></i>
<div class="el-upload__text">
{{$t('tips.tuodongwenjian')}}
<em>{{$t('tips.dianjishanhcuan')}}</em>
</div>
<div slot="tip" class="el-upload__tip">{{$t('objFill.zhinengscexwj')}}</div>
</el-upload>
</el-dialog>
</div>
</template>
......@@ -535,7 +548,8 @@ export default {
Type:'1',
Remark:'',
Money:0
}
},
outerVisible: false,
}
},
created(){
......@@ -591,6 +605,24 @@ export default {
var that = this;
},
methods:{
//导入
PlatBalImport() {
let url =
this.domainManager().UploadFileUrl +
"?cmd=dmc_post_LocalFileUpload&fileType=1&fileLimit=1&Type=9&EmployeeId=" +
this.getLocalStorage().EmployeeId +
"&importType=" +
this.importType;
return url;
},
//上传文件后清空文件队列
handleAvatarSuccess(res, file) {
this.$refs.ticketUpload.clearFiles();
if (res.resultCode == 1) {
this.Success(res.message);
this.outerVisible = false;
}
},
GetSupperOrderEditAuth() {
var actionCode = this.$AuthCode.isQueryHistoryData;
this.CheckUserAuth(actionCode, res => {
......
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