页面修改

main
mo 1 year ago
parent 2af786b50c
commit c7bb206f9c

@ -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;
}

Loading…
Cancel
Save