|
|
|
@ -162,13 +162,13 @@
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column label="查看发票" align="center" prop="fileUrl">
|
|
|
|
|
<!-- <el-table-column label="查看发票" align="center" prop="fileUrl">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="text" @click="openLink(scope.row.fileUrl)">
|
|
|
|
|
{{ scope.row.fileUrl }}
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
<el-table-column label="发票代码" align="center" prop="invoiceCode" />
|
|
|
|
|
<el-table-column label="发票号码" align="center" prop="invoiceNum" />
|
|
|
|
|
<el-table-column label="大写金额" align="center" prop="amountinWords" />
|
|
|
|
@ -307,6 +307,21 @@
|
|
|
|
|
width="180px"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-view"
|
|
|
|
|
v-if="scope.row.fileUrl"
|
|
|
|
|
@click="handleViewFJ(scope.row)"
|
|
|
|
|
>查看附件
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-view"
|
|
|
|
|
@click="handleView(scope.row)"
|
|
|
|
|
>查看
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
@ -359,7 +374,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-upload> -->
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="140px">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-row v-if="optType != 'view'">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<UploadInvoice
|
|
|
|
|
:files="fileList"
|
|
|
|
@ -640,7 +655,9 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitForm" v-if="optType != 'view'"
|
|
|
|
|
>确 定</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
@ -783,6 +800,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
optType: undefined,
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
|
// 多个禁用
|
|
|
|
@ -948,6 +966,10 @@ export default {
|
|
|
|
|
`/onlinePreview?url=${encodeURIComponent(this.base64Encode(fileUrl))}`;
|
|
|
|
|
window.open(url);
|
|
|
|
|
},
|
|
|
|
|
/** 查看附件按钮操作 */
|
|
|
|
|
handleViewFJ(row) {
|
|
|
|
|
this.openLink(row.fileUrl);
|
|
|
|
|
},
|
|
|
|
|
handleClick(tab) {
|
|
|
|
|
console.log(tab.name);
|
|
|
|
|
if (tab.name == "in") {
|
|
|
|
@ -977,7 +999,6 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleOneMonth() {
|
|
|
|
|
this.time = 1;
|
|
|
|
|
this.getList2();
|
|
|
|
@ -1158,11 +1179,40 @@ export default {
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "添加发票";
|
|
|
|
|
this.fileList = [];
|
|
|
|
|
this.optType = "add";
|
|
|
|
|
},
|
|
|
|
|
/** 查看按钮操作 */
|
|
|
|
|
handleView(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
this.optType = "view";
|
|
|
|
|
const id = row.id;
|
|
|
|
|
getInvoices(id).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
if (response.data.invoiceState != null) {
|
|
|
|
|
const num1 = response.data.invoiceState.toString();
|
|
|
|
|
this.form.invoiceState = num1;
|
|
|
|
|
}
|
|
|
|
|
if (response.data.inoutMark != null) {
|
|
|
|
|
const num2 = response.data.inoutMark.toString();
|
|
|
|
|
this.form.inoutMark = num2;
|
|
|
|
|
}
|
|
|
|
|
if (response.data.duplicateMark != null) {
|
|
|
|
|
const num3 = response.data.duplicateMark.toString();
|
|
|
|
|
this.form.duplicateMark = num3;
|
|
|
|
|
}
|
|
|
|
|
if (response.data.qrCheckCode != null) {
|
|
|
|
|
const num4 = response.data.qrCheckCode.toString();
|
|
|
|
|
this.form.qrCheckCode = num4;
|
|
|
|
|
}
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "查看发票";
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
const id = row.id;
|
|
|
|
|
this.optType = "edit";
|
|
|
|
|
getInvoices(id).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
if (response.data.invoiceState != null) {
|
|
|
|
|