|
|
@@ -124,6 +124,7 @@
|
|
|
class="primary-btn"
|
|
|
@click.native.prevent="
|
|
|
passId = scope.row.id;
|
|
|
+ fileList = [];
|
|
|
dialogVisiblePass = true;
|
|
|
"
|
|
|
>
|
|
|
@@ -555,23 +556,29 @@ export default {
|
|
|
this.$message.warning("请上传发票文件");
|
|
|
return;
|
|
|
}
|
|
|
- let Mnames = "/ShopServer/Manager/FinanceManager/AuditInvoiceApply";
|
|
|
- let datas = {
|
|
|
- id: this.passId,
|
|
|
- is_pass: "true",
|
|
|
- invoice_file_id: this.fileList[0].response.file_info_list[0].file_id,
|
|
|
- };
|
|
|
- getLogin(Mnames, datas)
|
|
|
- .then((res) => {
|
|
|
- if (res.status === 1) {
|
|
|
- this.$message.success("操作成功");
|
|
|
- this.getList();
|
|
|
+ this.$confirm("是否已核对发票文件无误", "确定审核通过吗?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(({}) => {
|
|
|
+ let Mnames = "/ShopServer/Manager/FinanceManager/AuditInvoiceApply";
|
|
|
+ let datas = {
|
|
|
+ id: this.passId,
|
|
|
+ is_pass: "true",
|
|
|
+ invoice_file_id: this.fileList[0].response.file_info_list[0].file_id,
|
|
|
+ };
|
|
|
+ getLogin(Mnames, datas)
|
|
|
+ .then((res) => {
|
|
|
+ if (res.status === 1) {
|
|
|
+ this.$message.success("操作成功");
|
|
|
+ this.getList();
|
|
|
+ this.dialogVisiblePass = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
this.dialogVisiblePass = false;
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.dialogVisiblePass = false;
|
|
|
- });
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
this.pageSize = val;
|
|
|
@@ -596,7 +603,14 @@ export default {
|
|
|
this.fileList = [];
|
|
|
},
|
|
|
handlePreview(file) {
|
|
|
- console.log(file);
|
|
|
+ if (
|
|
|
+ file &&
|
|
|
+ file.response &&
|
|
|
+ file.response.file_info_list &&
|
|
|
+ file.response.file_info_list[0].file_url_open
|
|
|
+ ) {
|
|
|
+ window.open(file.response.file_info_list[0].file_url_open);
|
|
|
+ }
|
|
|
},
|
|
|
handleExceed(files, fileList) {
|
|
|
this.$message.warning(
|