|
|
@ -134,6 +134,17 @@
|
|
|
|
>下载元数据</el-button
|
|
|
|
>下载元数据</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-document"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
|
|
|
@click="handleGLPZ"
|
|
|
|
|
|
|
|
>关联凭证</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar
|
|
|
|
<right-toolbar
|
|
|
|
:showSearch.sync="showSearch"
|
|
|
|
:showSearch.sync="showSearch"
|
|
|
|
@queryTable="getList"
|
|
|
|
@queryTable="getList"
|
|
|
@ -692,6 +703,35 @@
|
|
|
|
<el-button @click="cancel1">取 消</el-button>
|
|
|
|
<el-button @click="cancel1">取 消</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
<!-- 会计凭证选择框-->
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
:title="title"
|
|
|
|
|
|
|
|
:visible.sync="open2"
|
|
|
|
|
|
|
|
width="800px"
|
|
|
|
|
|
|
|
append-to-body
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules1" label-width="140px">
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="14">
|
|
|
|
|
|
|
|
<el-form-item label="会计凭证" prop="voucherId">
|
|
|
|
|
|
|
|
<el-select v-model="form.voucherId" placeholder="请选择会计凭证">
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in kjpzOptions"
|
|
|
|
|
|
|
|
:key="item.recordId"
|
|
|
|
|
|
|
|
:label="item.voucherNum"
|
|
|
|
|
|
|
|
:value="item.flowId"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button type="primary" @click="submitForm2">确 定</el-button>
|
|
|
|
|
|
|
|
<el-button @click="cancel2">取 消</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -707,6 +747,7 @@ import {
|
|
|
|
downloadXml,
|
|
|
|
downloadXml,
|
|
|
|
getInvoicesPageTime,
|
|
|
|
getInvoicesPageTime,
|
|
|
|
} from "@/api/accounting/invoices";
|
|
|
|
} from "@/api/accounting/invoices";
|
|
|
|
|
|
|
|
import { getVoucherPage } from "@/api/accounting/voucher";
|
|
|
|
import { listData } from "@/api/system/dict/data";
|
|
|
|
import { listData } from "@/api/system/dict/data";
|
|
|
|
import { getAccessToken } from "@/utils/auth";
|
|
|
|
import { getAccessToken } from "@/utils/auth";
|
|
|
|
|
|
|
|
|
|
|
@ -717,6 +758,8 @@ export default {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
|
|
|
|
// 多个禁用
|
|
|
|
|
|
|
|
multiple: true,
|
|
|
|
// 导出遮罩层
|
|
|
|
// 导出遮罩层
|
|
|
|
exportLoading: false,
|
|
|
|
exportLoading: false,
|
|
|
|
downloadLoading: false,
|
|
|
|
downloadLoading: false,
|
|
|
@ -733,6 +776,7 @@ export default {
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示弹出层
|
|
|
|
open: false,
|
|
|
|
open: false,
|
|
|
|
open1: false,
|
|
|
|
open1: false,
|
|
|
|
|
|
|
|
open2: false,
|
|
|
|
accountingType: "in",
|
|
|
|
accountingType: "in",
|
|
|
|
fileList: [],
|
|
|
|
fileList: [],
|
|
|
|
time: null,
|
|
|
|
time: null,
|
|
|
@ -820,6 +864,9 @@ export default {
|
|
|
|
{ required: true, message: "密码不能为空", trigger: "blur" },
|
|
|
|
{ required: true, message: "密码不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
rules1: {
|
|
|
|
|
|
|
|
voucherId: [{ required: true, message: "请选择凭证", trigger: "blur" }],
|
|
|
|
|
|
|
|
},
|
|
|
|
// 用户导入参数
|
|
|
|
// 用户导入参数
|
|
|
|
upload: {
|
|
|
|
upload: {
|
|
|
|
// 是否显示弹出层(用户导入)
|
|
|
|
// 是否显示弹出层(用户导入)
|
|
|
@ -843,10 +890,12 @@ export default {
|
|
|
|
invoiceStateOptions: [], //发票状态
|
|
|
|
invoiceStateOptions: [], //发票状态
|
|
|
|
inOrOutOptions: [], //发票进销项
|
|
|
|
inOrOutOptions: [], //发票进销项
|
|
|
|
qrCheckCodeOptions: [], //发票二维码查验状态
|
|
|
|
qrCheckCodeOptions: [], //发票二维码查验状态
|
|
|
|
|
|
|
|
kjpzOptions: [], //会计凭证
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.getKJPZ();
|
|
|
|
this.handleInitList();
|
|
|
|
this.handleInitList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -892,7 +941,8 @@ export default {
|
|
|
|
this.total = response.data.total;
|
|
|
|
this.total = response.data.total;
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} /** 查询列表2 */,
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 查询列表2 */
|
|
|
|
getList2() {
|
|
|
|
getList2() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
// 执行查询
|
|
|
|
// 执行查询
|
|
|
@ -902,6 +952,7 @@ export default {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
handleOneMonth() {
|
|
|
|
handleOneMonth() {
|
|
|
|
this.time = 1;
|
|
|
|
this.time = 1;
|
|
|
|
this.getList2();
|
|
|
|
this.getList2();
|
|
|
@ -914,6 +965,12 @@ export default {
|
|
|
|
this.time = 12;
|
|
|
|
this.time = 12;
|
|
|
|
this.getList2();
|
|
|
|
this.getList2();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//获取会计凭证
|
|
|
|
|
|
|
|
getKJPZ() {
|
|
|
|
|
|
|
|
getVoucherPage().then((res) => {
|
|
|
|
|
|
|
|
this.kjpzOptions = res.data.list || [];
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
//获取字典数据
|
|
|
|
//获取字典数据
|
|
|
|
handleInitList() {
|
|
|
|
handleInitList() {
|
|
|
|
// 获取发票类型
|
|
|
|
// 获取发票类型
|
|
|
@ -980,6 +1037,10 @@ export default {
|
|
|
|
cancel1() {
|
|
|
|
cancel1() {
|
|
|
|
this.open1 = false;
|
|
|
|
this.open1 = false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/** 取消按钮 */
|
|
|
|
|
|
|
|
cancel2() {
|
|
|
|
|
|
|
|
this.open2 = false;
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 表单重置 */
|
|
|
|
/** 表单重置 */
|
|
|
|
reset() {
|
|
|
|
reset() {
|
|
|
|
this.form = {
|
|
|
|
this.form = {
|
|
|
@ -1057,8 +1118,14 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
|
|
|
console.log(selection);
|
|
|
|
this.ids = selection.map((item) => item.id);
|
|
|
|
this.ids = selection.map((item) => item.id);
|
|
|
|
this.multiple = !selection.length;
|
|
|
|
if (selection.length == 1) {
|
|
|
|
|
|
|
|
this.multiple = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.multiple = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.form = selection[0];
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
handleAdd() {
|
|
|
|
handleAdd() {
|
|
|
@ -1130,6 +1197,24 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {});
|
|
|
|
.catch(() => {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//关联凭证
|
|
|
|
|
|
|
|
handleGLPZ() {
|
|
|
|
|
|
|
|
this.open2 = true;
|
|
|
|
|
|
|
|
this.form.voucherId = null;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
submitForm2() {
|
|
|
|
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
|
|
|
|
if (!valid) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
updateInvoices(this.form).then((response) => {
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("关联成功");
|
|
|
|
|
|
|
|
this.open2 = false;
|
|
|
|
|
|
|
|
this.multiple = true;
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
handleExport() {
|
|
|
|
handleExport() {
|
|
|
|
// 处理查询参数
|
|
|
|
// 处理查询参数
|
|
|
@ -1181,19 +1266,25 @@ export default {
|
|
|
|
submitFileForm() {
|
|
|
|
submitFileForm() {
|
|
|
|
this.$refs.upload.submit();
|
|
|
|
this.$refs.upload.submit();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//下载元数据
|
|
|
|
handleDownloadData() {
|
|
|
|
handleDownloadData() {
|
|
|
|
this.open1 = true;
|
|
|
|
this.open1 = true;
|
|
|
|
this.queryParams.inputPassword = null;
|
|
|
|
this.queryParams.inputPassword = null;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
submitForm1() {
|
|
|
|
submitForm1() {
|
|
|
|
// 处理查询参数
|
|
|
|
this.$refs["queryForm"].validate((valid) => {
|
|
|
|
let params = { ...this.queryParams };
|
|
|
|
if (!valid) {
|
|
|
|
downloadXml(params)
|
|
|
|
return;
|
|
|
|
.then((response) => {
|
|
|
|
}
|
|
|
|
this.$download.excel(response, "发票元数据.xml");
|
|
|
|
// 处理查询参数
|
|
|
|
this.open1 = false;
|
|
|
|
let params = { ...this.queryParams };
|
|
|
|
})
|
|
|
|
downloadXml(params)
|
|
|
|
.catch(() => {});
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
this.$download.excel(response, "发票元数据.xml");
|
|
|
|
|
|
|
|
this.open1 = false;
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|