|
|
|
@ -65,6 +65,16 @@
|
|
|
|
|
>导出</el-button
|
|
|
|
|
>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleDownloadData"
|
|
|
|
|
>下载元数据</el-button
|
|
|
|
|
>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar
|
|
|
|
|
:showSearch.sync="showSearch"
|
|
|
|
|
@queryTable="getList"
|
|
|
|
@ -279,6 +289,35 @@
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<!-- 密码输入框-->
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="title"
|
|
|
|
|
:visible.sync="open1"
|
|
|
|
|
width="800px"
|
|
|
|
|
append-to-body
|
|
|
|
|
>
|
|
|
|
|
<el-form
|
|
|
|
|
ref="queryForm"
|
|
|
|
|
:model="queryParams"
|
|
|
|
|
:rules="rules"
|
|
|
|
|
label-width="140px"
|
|
|
|
|
>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="14">
|
|
|
|
|
<el-form-item label="密码" prop="inputPassword">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.inputPassword"
|
|
|
|
|
placeholder="请输入密码"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submitForm1">确 定</el-button>
|
|
|
|
|
<el-button @click="cancel1">取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -290,6 +329,7 @@ import {
|
|
|
|
|
getOther,
|
|
|
|
|
getOtherPage,
|
|
|
|
|
exportOtherExcel,
|
|
|
|
|
downloadXml,
|
|
|
|
|
} from "@/api/accounting/other";
|
|
|
|
|
import { getAccessToken, getTenantId } from "@/utils/auth";
|
|
|
|
|
import { getOrganizationPage } from "@/api/setting/organization";
|
|
|
|
@ -313,6 +353,7 @@ export default {
|
|
|
|
|
title: "",
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
|
open: false,
|
|
|
|
|
open1: false,
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNo: 1,
|
|
|
|
@ -338,11 +379,16 @@ export default {
|
|
|
|
|
userId: null,
|
|
|
|
|
fileStatus: null,
|
|
|
|
|
remark: null,
|
|
|
|
|
inputPassword: null,
|
|
|
|
|
},
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {},
|
|
|
|
|
rules: {
|
|
|
|
|
inputPassword: [
|
|
|
|
|
{ required: true, message: "密码不能为空", trigger: "blur" },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
fileList: [], // 文件列表
|
|
|
|
|
uploadUrl:
|
|
|
|
|
process.env.VUE_APP_BASE_API + "/admin-api/accounting/other/upload", // 上传地址地址
|
|
|
|
@ -358,6 +404,36 @@ export default {
|
|
|
|
|
this.getOrganizationList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
submitForm1() {
|
|
|
|
|
this.$refs["queryForm"].validate((valid) => {
|
|
|
|
|
if (!valid) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// 处理查询参数
|
|
|
|
|
let params = { ...this.queryParams };
|
|
|
|
|
downloadXml(params)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
console.log(response.size);
|
|
|
|
|
if (response.size == 39) {
|
|
|
|
|
this.$modal.msgError("密码错误");
|
|
|
|
|
return false;
|
|
|
|
|
} else {
|
|
|
|
|
this.$download.excel(response, "会计其他资料元数据.xml");
|
|
|
|
|
this.open1 = false;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//下载元数据
|
|
|
|
|
handleDownloadData() {
|
|
|
|
|
this.open1 = true;
|
|
|
|
|
this.queryParams.inputPassword = null;
|
|
|
|
|
},
|
|
|
|
|
/** 取消按钮 */
|
|
|
|
|
cancel1() {
|
|
|
|
|
this.open1 = false;
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 文件预览
|
|
|
|
|
* @param fileUrl 地址
|
|
|
|
|