|
@@ -1,22 +1,23 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-button-group v-if="tool.checkAuth($route.name,'editBlueInvioce')" style="margin-bottom:10px">
|
|
|
- <el-button size="small" type="primary" :disabled="status !== '新建'" @click="addInvoiceapp">一键添加发票</el-button>
|
|
|
- <el-button size="small" type="primary" :disabled="selectData.length === 0 && status != '审核'" @click="clickCreateBlueInvioce">勾选创建发票</el-button>
|
|
|
+ <el-button size="small" type="primary" :disabled="data.status !== '新建'" @click="addInvoiceapp">一键添加发票</el-button>
|
|
|
+ <el-button size="small" type="primary" :disabled="data.status !== '新建'" @click="addInvoiceapp2">添加发票</el-button>
|
|
|
+ <el-button size="small" type="primary" :disabled="selectData.length === 0 && data.status != '审核'" @click="clickCreateBlueInvioce">勾选创建发票</el-button>
|
|
|
<el-button size="small" type="primary" :disabled="selectData.length === 0" @click="clickInvioceQuery">发票创建查询</el-button>
|
|
|
- <el-button size="small" type="primary" :disabled="selectData.length === 0 && status != '审核'" @click="blueInvioceToRed">红冲勾选行</el-button>
|
|
|
+ <el-button size="small" type="primary" :disabled="selectData.length === 0 && data.status != '审核'" @click="blueInvioceToRed">红冲勾选行</el-button>
|
|
|
</el-button-group>
|
|
|
- <invoiceTable :status="status" ref="invoiceTable" @activeRow="activeRow" @selection="selection"></invoiceTable>
|
|
|
- <invoiceTablemx :status="status" ref="invoiceTablemx" @onSuccess="mxOnSuccess"></invoiceTablemx>
|
|
|
+ <invoiceTable :data="data" ref="invoiceTable" @activeRow="activeRow" @selection="selection"></invoiceTable>
|
|
|
+ <invoiceTablemx :status="data.status" ref="invoiceTablemx" @onSuccess="mxOnSuccess"></invoiceTablemx>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import invoiceTable from './components/invoiceTable'
|
|
|
+import invoiceTable from './components/invoiceTable.vue'
|
|
|
import invoiceTablemx from './components/invoiceTablemx'
|
|
|
|
|
|
export default {
|
|
|
- props:['status'],
|
|
|
+ props:['data'],
|
|
|
components:{
|
|
|
invoiceTable,
|
|
|
invoiceTablemx
|
|
@@ -41,6 +42,18 @@ export default {
|
|
|
this.$refs['invoiceTable'].listData()
|
|
|
})
|
|
|
},
|
|
|
+ async addInvoiceapp2 () {
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id": "20230225133303",
|
|
|
+ "version":1,
|
|
|
+ "content": {
|
|
|
+ "sa_invoiceapplyid":this.$route.query.id
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
+ this.$refs['invoiceTable'].listData()
|
|
|
+ })
|
|
|
+ },
|
|
|
activeRow (row){
|
|
|
this.$refs['invoiceTablemx'].listData(row.sa_invoicebillid)
|
|
|
},
|