|
@@ -10,12 +10,20 @@
|
|
|
<el-button size="small" :disabled="!form.id" @click="previewreportfun">预 览 </el-button>
|
|
<el-button size="small" :disabled="!form.id" @click="previewreportfun">预 览 </el-button>
|
|
|
<el-button size="small" v-if="roleName.indexOf('admin') != -1" :disabled="!form.id" @click="DesignreportDialog = true">报表设计 </el-button>
|
|
<el-button size="small" v-if="roleName.indexOf('admin') != -1" :disabled="!form.id" @click="DesignreportDialog = true">报表设计 </el-button>
|
|
|
<el-button type="success" size="small" :disabled="!form.id" plain @click="newbill">新建发票申请 </el-button>
|
|
<el-button type="success" size="small" :disabled="!form.id" plain @click="newbill">新建发票申请 </el-button>
|
|
|
- <el-button size="small" type="danger" plain :disabled="!form.id || editPower" v-if="form.status == 3" @click="allClick('撤销')"
|
|
|
|
|
|
|
+ <el-button size="small" type="danger" plain :disabled="!form.id || editPower" v-if="form.status !=0" @click="allClick('撤销')"
|
|
|
>撤销
|
|
>撤销
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button size="small" type="success" plain :disabled="!form.id || editPower" v-else @click="allClick('提交')">提交 </el-button>
|
|
<el-button size="small" type="success" plain :disabled="!form.id || editPower" v-else @click="allClick('提交')">提交 </el-button>
|
|
|
<el-button size="small" type="primary" v-if="editButton" @click="inEdit">编 辑 </el-button>
|
|
<el-button size="small" type="primary" v-if="editButton" @click="inEdit">编 辑 </el-button>
|
|
|
<el-button size="small" type="primary" v-else @click="submit()">保 存 </el-button>
|
|
<el-button size="small" type="primary" v-else @click="submit()">保 存 </el-button>
|
|
|
|
|
+ <el-dropdown v-if="invoiceReview">
|
|
|
|
|
+ <el-button class="el-button--small-yh" style="margin-left: 6px;" type="warning" :disabled="!form.id" size="small">
|
|
|
|
|
+ 审 批<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
|
+ <el-dropdown-item @click.native="(checkScheduleDialog = true), (checkId = form.id)">审核进度 </el-dropdown-item>
|
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
|
+ </el-dropdown>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -72,6 +80,19 @@
|
|
|
>
|
|
>
|
|
|
</dic-select>
|
|
</dic-select>
|
|
|
</tempalte>
|
|
</tempalte>
|
|
|
|
|
+ <tempalte slot="invoiceTitle">
|
|
|
|
|
+ <dic-select
|
|
|
|
|
+ v-model="form.invoiceTitle"
|
|
|
|
|
+ placeholder="开票单位"
|
|
|
|
|
+ :key="form.invCorpId"
|
|
|
|
|
+ res="corpsInvoiceHeaderList"
|
|
|
|
|
+ label="invoiceHeader"
|
|
|
|
|
+ :url="'/blade-los/bcorps/detail?id=' + form.invCorpId"
|
|
|
|
|
+ :filterable="true"
|
|
|
|
|
+ :disabled="editDisabled || (form.finInvoicesItemsList.length && form.isDk == 1) || !form.invCorpId"
|
|
|
|
|
+ >
|
|
|
|
|
+ </dic-select>
|
|
|
|
|
+ </tempalte>
|
|
|
<template slot="invoiceDate">
|
|
<template slot="invoiceDate">
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
v-model="form.invoiceDate"
|
|
v-model="form.invoiceDate"
|
|
@@ -119,7 +140,7 @@
|
|
|
<el-input placeholder="请输入 邮箱" v-model="form.email" size="small"> </el-input>
|
|
<el-input placeholder="请输入 邮箱" v-model="form.email" size="small"> </el-input>
|
|
|
</tempalte>
|
|
</tempalte>
|
|
|
<tempalte slot="elecRemarks">
|
|
<tempalte slot="elecRemarks">
|
|
|
- <el-input type="textarea" :rows="2" placeholder="请输入 全电发票" v-model="form.elecRemarks"> </el-input>
|
|
|
|
|
|
|
+ <el-input type="textarea" :rows="1" placeholder="请输入 全电发票" v-model="form.elecRemarks"> </el-input>
|
|
|
</tempalte>
|
|
</tempalte>
|
|
|
</avue-form>
|
|
</avue-form>
|
|
|
</trade-card>
|
|
</trade-card>
|
|
@@ -340,7 +361,20 @@
|
|
|
<el-button size="small" @click="selectPrintingDialog = false">取 消</el-button>
|
|
<el-button size="small" @click="selectPrintingDialog = false">取 消</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
-
|
|
|
|
|
|
|
+ <!--审核弹窗-->
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ append-to-body
|
|
|
|
|
+ title="审批进度"
|
|
|
|
|
+ class="el-dialogDeep"
|
|
|
|
|
+ :visible.sync="checkScheduleDialog"
|
|
|
|
|
+ width="40%"
|
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
|
+ :destroy-on-close="true"
|
|
|
|
|
+ :close-on-press-escape="false"
|
|
|
|
|
+ v-dialog-drag
|
|
|
|
|
+ >
|
|
|
|
|
+ <check-schedule :checkId="checkId" :batchNo="batchNo" @choceScheduleFun="checkScheduleDialog = false"></check-schedule>
|
|
|
|
|
+ </el-dialog>
|
|
|
<!--报表组件-->
|
|
<!--报表组件-->
|
|
|
<reportContainer ref="reportContainer"></reportContainer>
|
|
<reportContainer ref="reportContainer"></reportContainer>
|
|
|
</div>
|
|
</div>
|
|
@@ -367,8 +401,10 @@ import reportContainer from "@/views/iosBasicData/report-container/report-contai
|
|
|
import { getList as getreportsList, reportsGetReportData } from "@/api/iosBasicData/reports";
|
|
import { getList as getreportsList, reportsGetReportData } from "@/api/iosBasicData/reports";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
import { getToken } from "@/util/auth";
|
|
import { getToken } from "@/util/auth";
|
|
|
|
|
+import checkSchedule from "@/components/checkH/checkSchedule.vue";
|
|
|
|
|
+import { isProcurement } from "@/api/basicData/configuration";
|
|
|
export default {
|
|
export default {
|
|
|
- components: { reportContainer, reportformsList, reports, SearchQuery, expand, finstlbillsitems, dicSelect },
|
|
|
|
|
|
|
+ components: { reportContainer, reportformsList, reports, SearchQuery, expand, finstlbillsitems, dicSelect, checkSchedule },
|
|
|
props: {
|
|
props: {
|
|
|
detailData: {
|
|
detailData: {
|
|
|
type: Object
|
|
type: Object
|
|
@@ -380,6 +416,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ invoiceReview:false,
|
|
|
|
|
+ checkId: "", // 审核需要的id
|
|
|
|
|
+ batchNo: "",
|
|
|
|
|
+ checkScheduleDialog: false, // 审核弹窗
|
|
|
pageData2: [],
|
|
pageData2: [],
|
|
|
submitType: true,
|
|
submitType: true,
|
|
|
sumDRMB: 0,
|
|
sumDRMB: 0,
|
|
@@ -460,6 +500,11 @@ export default {
|
|
|
disabled: false
|
|
disabled: false
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
|
|
+ label: "发票抬头",
|
|
|
|
|
+ prop: "invoiceTitle",
|
|
|
|
|
+ disabled: false
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
label: "税控发票号",
|
|
label: "税控发票号",
|
|
|
prop: "taxInvoiceNo",
|
|
prop: "taxInvoiceNo",
|
|
|
disabled: false
|
|
disabled: false
|
|
@@ -511,7 +556,7 @@ export default {
|
|
|
label: "全电发票",
|
|
label: "全电发票",
|
|
|
prop: "elecRemarks",
|
|
prop: "elecRemarks",
|
|
|
type: "textarea",
|
|
type: "textarea",
|
|
|
- minRows: 2
|
|
|
|
|
|
|
+ minRows: 1
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
@@ -970,6 +1015,11 @@ export default {
|
|
|
this.form.corpEnName = this.$route.query.corpEnName;
|
|
this.form.corpEnName = this.$route.query.corpEnName;
|
|
|
this.form.corpArgreementNo = this.$route.query.corpEnName;
|
|
this.form.corpArgreementNo = this.$route.query.corpEnName;
|
|
|
}
|
|
}
|
|
|
|
|
+ isProcurement({ param: "whether.open.Invoice.review" }).then(res => {
|
|
|
|
|
+ if (res.data.data == 1) {
|
|
|
|
|
+ this.invoiceReview = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.crud2.dicInit();
|
|
this.$refs.crud2.dicInit();
|
|
|
});
|
|
});
|
|
@@ -977,7 +1027,7 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
inEdit() {
|
|
inEdit() {
|
|
|
this.editButton = false;
|
|
this.editButton = false;
|
|
|
- if (this.form.status == 3) return;
|
|
|
|
|
|
|
+ if (this.form.status !=0) return;
|
|
|
this.editDisabled = false;
|
|
this.editDisabled = false;
|
|
|
this.optionForm.disabled = false;
|
|
this.optionForm.disabled = false;
|
|
|
},
|
|
},
|
|
@@ -1078,9 +1128,9 @@ export default {
|
|
|
let obj = {
|
|
let obj = {
|
|
|
...this.form
|
|
...this.form
|
|
|
};
|
|
};
|
|
|
- fininvoicesAdd(obj).then(res=>{
|
|
|
|
|
- this.form.version=res.data.data.version
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ fininvoicesAdd(obj).then(res => {
|
|
|
|
|
+ this.form.version = res.data.data.version;
|
|
|
|
|
+ });
|
|
|
this.finstlbillslistAccBillV1fun();
|
|
this.finstlbillslistAccBillV1fun();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -1197,7 +1247,10 @@ export default {
|
|
|
this.form.billNoFormat = "FPSQ";
|
|
this.form.billNoFormat = "FPSQ";
|
|
|
this.form.businessTypeCode = "FPSQ";
|
|
this.form.businessTypeCode = "FPSQ";
|
|
|
let obj = {
|
|
let obj = {
|
|
|
- ...this.form
|
|
|
|
|
|
|
+ ...this.form,
|
|
|
|
|
+ url:'/iosBasicData/financialManagement/fininvoicesApplyfor/index',
|
|
|
|
|
+ pageLabel:'发票申请(N)',
|
|
|
|
|
+ pageStatus:'',
|
|
|
};
|
|
};
|
|
|
fininvoicesSubmit(obj);
|
|
fininvoicesSubmit(obj);
|
|
|
this.$confirm("是否提交?", "提示", {
|
|
this.$confirm("是否提交?", "提示", {
|
|
@@ -1306,6 +1359,7 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
this.form.invCorpId = null;
|
|
this.form.invCorpId = null;
|
|
|
this.form.invCorpCnName = null;
|
|
this.form.invCorpCnName = null;
|
|
|
|
|
+ this.form.invoiceTitle = null;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (name == "invoiceDate") {
|
|
if (name == "invoiceDate") {
|
|
@@ -1398,7 +1452,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
fininvoicesDetail(id)
|
|
fininvoicesDetail(id)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- if (res.data.data.status == 3) {
|
|
|
|
|
|
|
+ if (res.data.data.status !=0) {
|
|
|
this.editButton = true;
|
|
this.editButton = true;
|
|
|
this.editDisabled = true;
|
|
this.editDisabled = true;
|
|
|
this.optionForm.disabled = true;
|
|
this.optionForm.disabled = true;
|
|
@@ -1443,7 +1497,7 @@ export default {
|
|
|
...this.form
|
|
...this.form
|
|
|
};
|
|
};
|
|
|
fininvoicesAdd(obj).then(res => {
|
|
fininvoicesAdd(obj).then(res => {
|
|
|
- this.form.version=res.data.data.version
|
|
|
|
|
|
|
+ this.form.version = res.data.data.version;
|
|
|
this.finstlbillslistAccBillV1fun();
|
|
this.finstlbillslistAccBillV1fun();
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -1479,7 +1533,7 @@ export default {
|
|
|
finstlbillslistAccBillV1fun() {
|
|
finstlbillslistAccBillV1fun() {
|
|
|
let obj = {};
|
|
let obj = {};
|
|
|
obj.type = "3";
|
|
obj.type = "3";
|
|
|
- obj.operationType="发票申请";
|
|
|
|
|
|
|
+ obj.operationType = "发票申请";
|
|
|
obj.branchId = this.form.branchId;
|
|
obj.branchId = this.form.branchId;
|
|
|
obj.branchName = this.form.branchName;
|
|
obj.branchName = this.form.branchName;
|
|
|
obj.corpCnName = this.form.corpId ? this.form.corpId : null;
|
|
obj.corpCnName = this.form.corpId ? this.form.corpId : null;
|