|
|
|
@ -169,7 +169,7 @@
|
|
|
|
|
>查看
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="scope.row.fileStatus == '0'"
|
|
|
|
|
v-if="scope.row.fileStatus == '0'"
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
@ -178,7 +178,7 @@
|
|
|
|
|
>修改</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="scope.row.fileStatus == '0'"
|
|
|
|
|
v-if="scope.row.fileStatus == '0'"
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
@ -376,6 +376,8 @@
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<!-- 记账凭证 -->
|
|
|
|
|
<el-divider v-if="optType != 'add'">记账凭证</el-divider>
|
|
|
|
|
<el-table :data="tableData" style="width: 100%" v-if="optType != 'add'">
|
|
|
|
|
<el-table-column prop="digest" label="摘要" width="180">
|
|
|
|
@ -387,6 +389,9 @@
|
|
|
|
|
<el-table-column prop="creditorMoney" label="贷方金额">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<!-- 凭证详情 -->
|
|
|
|
|
<el-divider v-if="optType != 'add'">凭证详情</el-divider>
|
|
|
|
|
<el-tabs
|
|
|
|
|
style="margin-top: 20px"
|
|
|
|
|
v-if="optType != 'add'"
|
|
|
|
@ -532,7 +537,6 @@ import {
|
|
|
|
|
getVoucherDetailsPage,
|
|
|
|
|
downloadXml,
|
|
|
|
|
} from "@/api/accounting/voucher";
|
|
|
|
|
import { listUser } from "@/api/system/user";
|
|
|
|
|
import { getSiteTree } from "@/api/setting/organization";
|
|
|
|
|
import { listData } from "@/api/system/dict/data";
|
|
|
|
|
import { getAttachmentPage } from "@/api/accounting/attachment";
|
|
|
|
@ -630,7 +634,6 @@ export default {
|
|
|
|
|
{ required: true, message: "凭证号不能为空", trigger: "blur" },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
userOptions: [], //用户数据
|
|
|
|
|
siteOptions: [], //归档位置数据
|
|
|
|
|
siteArray: [], //归档位置选中值
|
|
|
|
|
typeOptions: [], //凭证类别
|
|
|
|
@ -645,38 +648,11 @@ export default {
|
|
|
|
|
watch() {},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getUserList();
|
|
|
|
|
this.getSiteList();
|
|
|
|
|
this.handleInitList();
|
|
|
|
|
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;
|
|
|
|
|
},
|
|
|
|
|
/** 查询列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
@ -862,12 +838,6 @@ export default {
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
},
|
|
|
|
|
//获取用户
|
|
|
|
|
getUserList() {
|
|
|
|
|
listUser().then((response) => {
|
|
|
|
|
this.userOptions = response.data.list;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
handleAdd() {
|
|
|
|
|
this.reset();
|
|
|
|
@ -963,6 +933,32 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
//下载元数据
|
|
|
|
|
handleDownloadData() {
|
|
|
|
|
this.open1 = true;
|
|
|
|
|
this.queryParams.inputPassword = null;
|
|
|
|
|
},
|
|
|
|
|
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(() => {});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 人员选择弹窗
|
|
|
|
|
handleSelectUser1() {
|
|
|
|
|
this.$refs.UserSelect1.showFlag = true;
|
|
|
|
@ -975,7 +971,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 审核人选择
|
|
|
|
|
onUserSelected1(obj) {
|
|
|
|
|
console.log(obj);
|
|
|
|
|
if (obj != undefined && obj != null) {
|
|
|
|
|
this.form.audit = obj.username;
|
|
|
|
|
}
|
|
|
|
|