|
@@ -86,7 +86,7 @@
|
|
</span>
|
|
</span>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button size="mini" @click="openDialog2 = false">取 消</el-button>
|
|
<el-button size="mini" @click="openDialog2 = false">取 消</el-button>
|
|
- <el-button size="mini" type="primary" @click="exportBut()">导 出</el-button>
|
|
|
|
|
|
+ <el-button size="mini" type="primary" @click="exportExcel(1)">导 出</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<el-dialog v-dialogdrag append-to-body title="凭证未记账数据" :visible.sync="openDialog3" width="50%"
|
|
<el-dialog v-dialogdrag append-to-body title="凭证未记账数据" :visible.sync="openDialog3" width="50%"
|
|
@@ -96,7 +96,7 @@
|
|
</span>
|
|
</span>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button size="mini" @click="openDialog3 = false">取 消</el-button>
|
|
<el-button size="mini" @click="openDialog3 = false">取 消</el-button>
|
|
- <el-button size="mini" type="primary" @click="exportBut2()">导 出</el-button>
|
|
|
|
|
|
+ <el-button size="mini" type="primary" @click="exportExcel(2)">导 出</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
@@ -106,7 +106,7 @@
|
|
import { getList, currentPeriod, open, init, locking, revokeLocking, close, unclose, generateVouchers, submitPeriod, getPeriodExchangeRate } from "@/api/iosBasicData/periodManagement";
|
|
import { getList, currentPeriod, open, init, locking, revokeLocking, close, unclose, generateVouchers, submitPeriod, getPeriodExchangeRate } from "@/api/iosBasicData/periodManagement";
|
|
import detailsPage from "./detailsPage"
|
|
import detailsPage from "./detailsPage"
|
|
import { defaultDate4 } from "@/util/date";
|
|
import { defaultDate4 } from "@/util/date";
|
|
-
|
|
|
|
|
|
+import { getToken } from "@/util/auth";
|
|
export default {
|
|
export default {
|
|
name: "index",
|
|
name: "index",
|
|
components: {
|
|
components: {
|
|
@@ -114,6 +114,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ itemId:null,
|
|
dialogOption: {
|
|
dialogOption: {
|
|
viewBtn: false,
|
|
viewBtn: false,
|
|
editBtn: false,
|
|
editBtn: false,
|
|
@@ -449,6 +450,21 @@ export default {
|
|
this.option2 = await this.getColumnData(this.getColumnName(367), this.optionList2);
|
|
this.option2 = await this.getColumnData(this.getColumnName(367), this.optionList2);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ exportExcel(type) {
|
|
|
|
+ const routeData = this.$router.resolve({
|
|
|
|
+ path: '/api/blade-los/finperiod/export', //跳转目标窗口的地址
|
|
|
|
+ query: {
|
|
|
|
+ 'Blade-Auth': getToken(),
|
|
|
|
+ 'id':this.itemId,
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ window.open(routeData.href.slice(1, routeData.href.length));
|
|
|
|
+ if(type==1){
|
|
|
|
+ this.handleClose3()
|
|
|
|
+ }else{
|
|
|
|
+ this.handleClose4()
|
|
|
|
+ }
|
|
|
|
+ },
|
|
lock(row, type) {
|
|
lock(row, type) {
|
|
if (type == '1') {
|
|
if (type == '1') {
|
|
this.$confirm('是否锁定?', '提示', {
|
|
this.$confirm('是否锁定?', '提示', {
|
|
@@ -461,16 +477,18 @@ export default {
|
|
if (res.data.msg == '审核未通过') {
|
|
if (res.data.msg == '审核未通过') {
|
|
this.loading = false
|
|
this.loading = false
|
|
this.openDialog2 = true
|
|
this.openDialog2 = true
|
|
- this.dialogData=res.data.data
|
|
|
|
- }else if(res.data.msg=='凭证未记账'){
|
|
|
|
|
|
+ this.itemId=row.id
|
|
|
|
+ this.dialogData = res.data.data
|
|
|
|
+ } else if (res.data.msg == '凭证未记账') {
|
|
this.loading = false
|
|
this.loading = false
|
|
this.openDialog3 = true
|
|
this.openDialog3 = true
|
|
- this.dialogData2=res.data.data
|
|
|
|
|
|
+ this.itemId=row.id
|
|
|
|
+ this.dialogData2 = res.data.data
|
|
} else {
|
|
} else {
|
|
this.loading = false
|
|
this.loading = false
|
|
this.$message.success("锁定成功");
|
|
this.$message.success("锁定成功");
|
|
this.handleClick(this.activeName)
|
|
this.handleClick(this.activeName)
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
})
|
|
})
|
|
@@ -544,10 +562,12 @@ export default {
|
|
this.itemOpenDialog = false
|
|
this.itemOpenDialog = false
|
|
},
|
|
},
|
|
handleClose3() {
|
|
handleClose3() {
|
|
|
|
+ this.itemId=null
|
|
this.dialogData = []
|
|
this.dialogData = []
|
|
this.openDialog2 = false
|
|
this.openDialog2 = false
|
|
},
|
|
},
|
|
handleClose4() {
|
|
handleClose4() {
|
|
|
|
+ this.itemId=null
|
|
this.dialogData2 = []
|
|
this.dialogData2 = []
|
|
this.openDialog3 = false
|
|
this.openDialog3 = false
|
|
},
|
|
},
|