|
|
@@ -15,6 +15,12 @@
|
|
|
size="small"
|
|
|
plain>导出到税控
|
|
|
</el-button>
|
|
|
+ <el-button size="small" type="warning" plain style="margin-right: 8px" :disabled="!form.id" v-if="form.status == 1"
|
|
|
+ :loading="saveLoading" @click="fininvoicesRevokeFinInvoicesfun">撤销发票
|
|
|
+ </el-button>
|
|
|
+ <el-button size="small" type="success" plain style="margin-right: 8px" :disabled="!form.id" v-else
|
|
|
+ :loading="saveLoading" @click="fininvoicesConfirmFinInvoicesfun">确认发票
|
|
|
+ </el-button>
|
|
|
<el-button size="small" type="primary" style="margin-right: 8px" v-if="editSave"
|
|
|
:loading="saveLoading" @click="editHandle">编 辑
|
|
|
</el-button>
|
|
|
@@ -28,7 +34,7 @@
|
|
|
<el-card class="box-card">
|
|
|
<el-row>
|
|
|
<el-col :span="5">
|
|
|
- <el-form-item label="业务编号" prop="businessNo">
|
|
|
+ <el-form-item label="业务编号" prop="billNo">
|
|
|
<el-input style="width: 100%;" v-model="form.billNo"
|
|
|
size="small" autocomplete="off"
|
|
|
:disabled="true"
|
|
|
@@ -51,7 +57,7 @@
|
|
|
<el-form-item label="制单人" prop="createUserName">
|
|
|
<el-input style="width: 100%;" v-model="form.createUserName"
|
|
|
size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
+ :disabled="true"
|
|
|
clearable placeholder="请输入制单人" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -91,7 +97,7 @@
|
|
|
<el-form-item label="发票号码" prop="invoiceNo">
|
|
|
<el-input style="width: 100%;" v-model="form.invoiceNo"
|
|
|
size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
+ :disabled="true"
|
|
|
clearable placeholder="请输入发票号码" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
@@ -102,7 +108,7 @@
|
|
|
style="width: 100%;"
|
|
|
type="date" size="small"
|
|
|
:disabled="true"
|
|
|
- value-format="yyyy-MM-dd HH:mm"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
placeholder="选择开票日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
@@ -111,45 +117,76 @@
|
|
|
<el-form-item label="税号" prop="invCorpTaxNo">
|
|
|
<el-input style="width: 100%;" v-model="form.invCorpTaxNo"
|
|
|
size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
+ :disabled="true"
|
|
|
clearable placeholder="请输入税号" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="开票单位" prop="invCorpCnName">
|
|
|
+ <search-query :datalist="invCorpData"
|
|
|
+ :selectValue="form.invCorpCnName"
|
|
|
+ :clearable="true"
|
|
|
+ :disabled="editSave"
|
|
|
+ :buttonIf="false"
|
|
|
+ :remote="true"
|
|
|
+ :filterable="true"
|
|
|
+ placeholder="请选择开票单位"
|
|
|
+ :forParameter="{ key:'id', label:'cnName', value:'cnName'}"
|
|
|
+ @corpChange="corpChange($event,'invCorpCnName')"
|
|
|
+ @remoteMethod="invCorpBcorpsListfun"
|
|
|
+ @corpFocus="invCorpBcorpsListfun" >
|
|
|
+ </search-query>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="美元银行" prop="invCorpAccountBankUsd">
|
|
|
<el-input style="width: 100%;" v-model="form.invCorpAccountBankUsd"
|
|
|
size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
+ :disabled="true"
|
|
|
clearable placeholder="请输入美元银行" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="美元账户" prop="invCorpAccountNoUsd">
|
|
|
- <el-input style="width: 100%;" v-model="form.invCorpAccountNoUsd"
|
|
|
- size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
- clearable placeholder="请输入美元账户" >
|
|
|
- </el-input>
|
|
|
+ <search-query :datalist="invCorpAccountUSDData"
|
|
|
+ :selectValue="form.invCorpAccountNoUsd"
|
|
|
+ :clearable="true"
|
|
|
+ :disabled="editSave || !form.invCorpId"
|
|
|
+ :buttonIf="false"
|
|
|
+ :remote="true"
|
|
|
+ :filterable="true"
|
|
|
+ placeholder="请输入美元账户"
|
|
|
+ :forParameter="{ key:'id', label:'accountNo', value:'accountNo'}"
|
|
|
+ @corpChange="corpChange($event,'invCorpAccountNoUsd')"
|
|
|
+ @remoteMethod="invCorpAccountBankUsdListfun">
|
|
|
+ </search-query>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="人民币银行" prop="invCorpAccountBankUsd">
|
|
|
- <el-input style="width: 100%;" v-model="form.invCorpAccountNoCny"
|
|
|
+ <el-form-item label="人民币银行" prop="invCorpAccountBankCny">
|
|
|
+ <el-input style="width: 100%;" v-model="form.invCorpAccountBankCny"
|
|
|
size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
+ :disabled="true"
|
|
|
clearable placeholder="请输入美元银行" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="人民币账户" prop="invCorpAccountNoUsd">
|
|
|
- <el-input style="width: 100%;" v-model="form.invCorpAccountNoCny"
|
|
|
- size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
- clearable placeholder="请输入美元账户" >
|
|
|
- </el-input>
|
|
|
+ <el-form-item label="人民币账户" prop="invCorpAccountNoCny">
|
|
|
+ <search-query :datalist="invCorpAccountCNYData"
|
|
|
+ :selectValue="form.invCorpAccountNoCny"
|
|
|
+ :clearable="true"
|
|
|
+ :disabled="editSave || !form.invCorpId"
|
|
|
+ :buttonIf="false"
|
|
|
+ :remote="true"
|
|
|
+ :filterable="true"
|
|
|
+ placeholder="请输入人民币账户"
|
|
|
+ :forParameter="{ key:'id', label:'accountNo', value:'accountNo'}"
|
|
|
+ @corpChange="corpChange($event,'invCorpAccountNoCny')"
|
|
|
+ @remoteMethod="invCorpAccountBankCnyListfun">
|
|
|
+ </search-query>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
@@ -167,7 +204,7 @@
|
|
|
style="width: 100%;"
|
|
|
type="date" size="small"
|
|
|
:disabled="editSave"
|
|
|
- value-format="yyyy-MM-dd HH:mm"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
placeholder="请输入开航日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
@@ -232,15 +269,6 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="开票单位" prop="invCorpCnName">
|
|
|
- <el-input style="width: 100%;" v-model="form.invCorpCnName"
|
|
|
- size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
- clearable placeholder="请输入开票单位" >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<div class="cardBox flexBoxRight">
|
|
|
@@ -250,6 +278,8 @@
|
|
|
v-model="form.stlMode"
|
|
|
active-value="1"
|
|
|
inactive-value="0"
|
|
|
+ active-color="#66dd7a"
|
|
|
+ inactive-color="#4ea6ea"
|
|
|
active-text="票结"
|
|
|
inactive-text="月结">
|
|
|
</el-switch>
|
|
|
@@ -309,7 +339,7 @@
|
|
|
style="width: 100%;"
|
|
|
type="date" size="small"
|
|
|
:disabled="editSave"
|
|
|
- value-format="yyyy-MM-dd HH:mm"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
placeholder="选择开票日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
@@ -364,7 +394,7 @@
|
|
|
<el-input style="width: 100%;" v-model="form.businessNo"
|
|
|
size="small" autocomplete="off"
|
|
|
:disabled="editSave"
|
|
|
- clearable placeholder="请输入导出时间" >
|
|
|
+ clearable placeholder="请输入业务编号" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -406,15 +436,20 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="发票类型" prop="invType">
|
|
|
- <el-input style="width: 100%;" v-model="form.invType"
|
|
|
- size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
- clearable placeholder="请输入发票类型" >
|
|
|
- </el-input>
|
|
|
+ <search-query :datalist="invTypeData"
|
|
|
+ :selectValue="form.invType"
|
|
|
+ :clearable="true"
|
|
|
+ :disabled="editSave"
|
|
|
+ :buttonIf="false"
|
|
|
+ placeholder="请输入发票类型"
|
|
|
+ :forParameter="{ key:'dictKey', label:'dictValue', value:'dictKey'}"
|
|
|
+ @corpChange="corpChange($event,'isInvoice')"
|
|
|
+ @corpFocus="invTypeWorkDictsfun" >
|
|
|
+ </search-query>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="账单号" prop="bookingNo">
|
|
|
+ <el-form-item label="无字段账单号" prop="bookingNo">
|
|
|
<el-input style="width: 100%;" v-model="form.bookingNo"
|
|
|
size="small" autocomplete="off"
|
|
|
:disabled="editSave"
|
|
|
@@ -457,6 +492,7 @@
|
|
|
:disabled="editSave"
|
|
|
:buttonIf="false"
|
|
|
:multiple="true"
|
|
|
+ :collapseTags="true"
|
|
|
placeholder="请输入业务类型"
|
|
|
@corpChange="corpChange($event,'businessTypes')">
|
|
|
</search-query>
|
|
|
@@ -527,17 +563,20 @@
|
|
|
</el-card>
|
|
|
|
|
|
<el-card style="margin-top: 10px">
|
|
|
- <div style="margin-bottom: 10px;display: flex;justify-content: space-between">
|
|
|
- <div>
|
|
|
- <el-button size="small" type="primary">新 建</el-button>
|
|
|
- <el-button size="small" type="danger">删 除</el-button>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <el-button size="small" type="primary" plain>全部选择</el-button>
|
|
|
- <el-button size="small" type="primary" plain>确认费用</el-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <fininvoicesitems :tableData="[]"></fininvoicesitems>
|
|
|
+ <!--<div style="margin-bottom: 10px;display: flex;justify-content: space-between">-->
|
|
|
+ <!-- <div>-->
|
|
|
+ <!-- <el-button size="small" type="primary">新 建</el-button>-->
|
|
|
+ <!-- <el-button size="small" type="danger">删 除</el-button>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- <div>-->
|
|
|
+ <!-- <el-button size="small" type="primary" plain>全部选择</el-button>-->
|
|
|
+ <!-- <el-button size="small" type="primary" plain>确认费用</el-button>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <fininvoicesitems :tableData="tableData"
|
|
|
+ :handleSelectionData="handleSelectionData"
|
|
|
+ @handleSelectionChange="handleSelectionChange">
|
|
|
+ </fininvoicesitems>
|
|
|
</el-card>
|
|
|
|
|
|
</el-form>
|
|
|
@@ -552,17 +591,29 @@ import {finstlbillslistAccBillV1} from "@/api/iosBasicData/finstlbills";
|
|
|
import {bcorpsbankList, getBcorpsList} from "@/api/iosBasicData/bcorps";
|
|
|
import {bportsList} from "@/api/iosBasicData/bports";
|
|
|
import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
|
|
|
-import {fininvoicesDetail, fininvoicesSubmit} from "@/api/iosBasicData/fininvoices";
|
|
|
+import {
|
|
|
+ fininvoicesConfirmFinInvoices,
|
|
|
+ fininvoicesDetail,
|
|
|
+ fininvoicesRevokeFinInvoices,
|
|
|
+ fininvoicesSubmit
|
|
|
+} from "@/api/iosBasicData/fininvoices";
|
|
|
+import finstlbillsitems from "@/views/iosBasicData/finstlbills/assembly/finstlbillsitems.vue";
|
|
|
+import {getWorkDicts} from "@/api/system/dictbiz";
|
|
|
|
|
|
export default {
|
|
|
- components:{SearchQuery, fininvoicesitems},
|
|
|
+ components:{finstlbillsitems, SearchQuery, fininvoicesitems},
|
|
|
data() {
|
|
|
return {
|
|
|
pageLoading:false, // 全屏加载
|
|
|
saveLoading:false, // 按钮加载
|
|
|
form:{},
|
|
|
+ tableData:[], // 从表数据
|
|
|
+ handleSelectionData:[], // 选择的数据
|
|
|
corpData:[], // 结算单位数据
|
|
|
- bankReceiptData:[], // 银行账号数据
|
|
|
+ invCorpData:[], // 开票单位
|
|
|
+ bankReceiptData:[], // 结算单位银行账号数据
|
|
|
+ invCorpAccountCNYData:[],// 开票单位CNY银行数据
|
|
|
+ invCorpAccountUSDData:[], // 开票单位USD银行数据
|
|
|
// 业务类型
|
|
|
businessTypesData:[
|
|
|
{
|
|
|
@@ -578,6 +629,7 @@ export default {
|
|
|
podData:[], // 卸货港
|
|
|
polData:[], // 装货港
|
|
|
invCurCodeData:[], // 发票币种
|
|
|
+ invTypeData:[], // 发票类型
|
|
|
}
|
|
|
},
|
|
|
props:{
|
|
|
@@ -587,6 +639,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
+ fininvoicesConfirmFinInvoices,
|
|
|
// 下拉框的回调
|
|
|
corpChange(value,name){
|
|
|
// 结算单位
|
|
|
@@ -606,7 +659,29 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- // 银行账户
|
|
|
+ // 开票单位
|
|
|
+ else if (name == 'invCorpCnName') {
|
|
|
+ this.$set(this.form,'invCorpAccountBankUsd','')
|
|
|
+ this.$set(this.form,'invCorpAccountNoUsd','')
|
|
|
+ this.$set(this.form,'invCorpAccountBankCny','')
|
|
|
+ this.$set(this.form,'invCorpAccountNoCny','')
|
|
|
+ if (!value) {
|
|
|
+ this.$set(this.form,'invCorpId','')
|
|
|
+ this.$set(this.form,'invCorpCnName','')
|
|
|
+ this.$set(this.form,'invCorpEnName','')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ for(let item of this.invCorpData) {
|
|
|
+ if (item.cnName == value) {
|
|
|
+ this.$set(this.form,'invCorpId',item.id)
|
|
|
+ this.$set(this.form,'invCorpCnName',item.cnName)
|
|
|
+ this.$set(this.form,'invCorpEnName',item.enName)
|
|
|
+ this.invCorpAccountBankCnyListfun()
|
|
|
+ this.invCorpAccountBankUsdListfun()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 结算单位银行账户
|
|
|
else if(name == 'bankReceiptAccountNo') {
|
|
|
for(let item of this.bankReceiptData) {
|
|
|
if (item.accountNo == value) {
|
|
|
@@ -615,37 +690,140 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ // 开票单位的CNY银行账户
|
|
|
+ else if (name == 'invCorpAccountNoCny') {
|
|
|
+ for (let item of this.invCorpAccountCNYData) {
|
|
|
+ if (item.accountNo == value) {
|
|
|
+ this.$set(this.form,'invCorpAccountBankCny',item.accountBank)
|
|
|
+ this.$set(this.form,'invCorpAccountNoCny',item.accountNo)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 开票单位的USD银行账户
|
|
|
+ else if (name == 'invCorpAccountNoUsd') {
|
|
|
+ for (let item of this.invCorpAccountUSDData) {
|
|
|
+ if (item.accountNo == value) {
|
|
|
+ this.$set(this.form,'invCorpAccountBankUsd',item.accountBank)
|
|
|
+ this.$set(this.form,'invCorpAccountNoUsd',item.accountNo)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
else {
|
|
|
this.$set(this.form,name,value)
|
|
|
}
|
|
|
|
|
|
},
|
|
|
+ // 下面表格多选
|
|
|
+ handleSelectionChange(arr){
|
|
|
+ this.handleSelectionData = arr
|
|
|
+ },
|
|
|
// 编辑事件
|
|
|
editHandle(){
|
|
|
-
|
|
|
+ this.editSave = false
|
|
|
},
|
|
|
// 保存按钮事件
|
|
|
editCustomer(){
|
|
|
-
|
|
|
- // this.fininvoicesSubmitfun()
|
|
|
+ // 开票单位
|
|
|
+ if (!this.form.corpId) {
|
|
|
+ this.$message.warning('请选择开票单位');
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // 进项 销项
|
|
|
+ this.form.type = '进项'
|
|
|
+ this.form.billNoFormat = 'HYFP'
|
|
|
+ this.form.businessTypeCode = 'HYFP'
|
|
|
+ this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.join(','):''
|
|
|
+ if (!this.form.id) {
|
|
|
+ this.form.finInvoicesItemsList = this.handleSelectionData
|
|
|
+ }
|
|
|
+ this.saveLoading = true
|
|
|
+ this.fininvoicesSubmitfun(this.form)
|
|
|
},
|
|
|
// 检索
|
|
|
finstlbillslistAccBillV1fun(){
|
|
|
- console.log(this.form,624)
|
|
|
- // finstlbillslistAccBillV1().then(res=>{
|
|
|
- //
|
|
|
- // })
|
|
|
+ if (!this.form.corpId) {
|
|
|
+ this.$message.warning('请选择结算单位');
|
|
|
+ return
|
|
|
+ }
|
|
|
+ delete this.form.id
|
|
|
+ let obj = {}
|
|
|
+ obj.type = '3'
|
|
|
+ obj.corpCnName = this.form.corpId // 结算单位
|
|
|
+ obj.invoiceDate = this.form.invoiceDate //开票日期
|
|
|
+ obj.billNo = this.form.bookingNo // 账单号
|
|
|
+ obj.businessBillNo = this.form.billNo // 业务编号
|
|
|
+ obj.mblno = this.form.mblno // 主单编号
|
|
|
+ obj.hblno = this.form.hblno // 分单编号
|
|
|
+ obj.checkBillNo = this.form.checkNo // 对账单号
|
|
|
+ obj.bookingNo = this.form.bookingNo // 订舱号(BOOK NO)
|
|
|
+ obj.curCode = this.form.curCode // 币种
|
|
|
+ obj.businessType = this.form.businessTypes?this.form.businessTypes.join(','):'' // 业务类型
|
|
|
+ finstlbillslistAccBillV1(obj).then(res=>{
|
|
|
+ this.tableData = res.data.data.map((item,index)=>{
|
|
|
+ item.lineNo = index // 行号
|
|
|
+ item.accBillId = item.id
|
|
|
+ item.accBillNo = item.billNo
|
|
|
+ item.accDate = item.createTime
|
|
|
+
|
|
|
+ item.currentAmount = Number(item.amount) - Number(item.uninvoicedAmount) // 本次发票金额
|
|
|
+
|
|
|
+ delete item.id
|
|
|
+ return item
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
// 保存接口
|
|
|
- fininvoicesSubmitfun(){
|
|
|
- fininvoicesSubmit().then(res=>{
|
|
|
- console.log(res,'保存')
|
|
|
+ fininvoicesSubmitfun(obj){
|
|
|
+ fininvoicesSubmit(obj).then(res=>{
|
|
|
+ this.saveLoading = false
|
|
|
+ this.$message.success('操作成功');
|
|
|
+ this.fininvoicesDetailfun(res.data.data.id)
|
|
|
})
|
|
|
},
|
|
|
// 详情接口
|
|
|
- fininvoicesDetailfun(){
|
|
|
- fininvoicesDetail().then(res=>{
|
|
|
- console.log(res,648)
|
|
|
+ fininvoicesDetailfun(id){
|
|
|
+ this.pageLoading = true
|
|
|
+ fininvoicesDetail(id).then(res=>{
|
|
|
+ this.form = res.data.data
|
|
|
+ this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.split(','):[] // 业务类型转换成数组显示
|
|
|
+ this.tableData = this.form.finInvoicesItemsList
|
|
|
+ this.pageLoading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 确认发票
|
|
|
+ fininvoicesConfirmFinInvoicesfun(){
|
|
|
+ this.$confirm("确定进行对账操作?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(res=>{
|
|
|
+ this.pageLoading = true
|
|
|
+ this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.join(','):''
|
|
|
+ fininvoicesConfirmFinInvoices(this.form).then(res=>{
|
|
|
+ this.pageLoading = false
|
|
|
+ this.$message.success('操作成功');
|
|
|
+ this.fininvoicesDetailfun(res.data.data.id)
|
|
|
+ }).catch(err=>{
|
|
|
+ this.pageLoading = false
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 撤销发票
|
|
|
+ fininvoicesRevokeFinInvoicesfun(){
|
|
|
+ this.$confirm("确定进行撤销对账操作?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(res=>{
|
|
|
+ this.pageLoading = true
|
|
|
+ this.form.businessTypes = this.form.businessTypes?this.form.businessTypes.join(','):''
|
|
|
+ fininvoicesRevokeFinInvoices(this.form).then(res=>{
|
|
|
+ this.pageLoading = false
|
|
|
+ this.$message.success('操作成功');
|
|
|
+ this.fininvoicesDetailfun(res.data.data.id)
|
|
|
+ }).catch(err=>{
|
|
|
+ this.pageLoading = false
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
//返回列表
|
|
|
@@ -658,6 +836,12 @@ export default {
|
|
|
this.corpData = res.data.data.records
|
|
|
})
|
|
|
},
|
|
|
+ // 获取客户名称数据 开票单位数据
|
|
|
+ invCorpBcorpsListfun(cnName){
|
|
|
+ getBcorpsList(1,10,{cnName}).then(res=>{
|
|
|
+ this.invCorpData = res.data.data.records
|
|
|
+ })
|
|
|
+ },
|
|
|
// 根据往来单位选择调用获取银行数据
|
|
|
bcorpsbankListfun(accountNo){
|
|
|
bcorpsbankList(1,10,{
|
|
|
@@ -668,6 +852,26 @@ export default {
|
|
|
this.bankReceiptData = res.data.data.records
|
|
|
})
|
|
|
},
|
|
|
+ // 根据开票单位获取CNY银行数据
|
|
|
+ invCorpAccountBankUsdListfun(accountNo){
|
|
|
+ bcorpsbankList(1,10,{
|
|
|
+ curNo:'USD',
|
|
|
+ pid:this.form.invCorpId,
|
|
|
+ accountNo:accountNo
|
|
|
+ }).then(res=>{
|
|
|
+ this.invCorpAccountUSDData = res.data.data.records
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 根据开票单位获取CNY银行数据
|
|
|
+ invCorpAccountBankCnyListfun(accountNo){
|
|
|
+ bcorpsbankList(1,10,{
|
|
|
+ curNo:'CNY',
|
|
|
+ pid:this.form.invCorpId,
|
|
|
+ accountNo:accountNo
|
|
|
+ }).then(res=>{
|
|
|
+ this.invCorpAccountCNYData = res.data.data.records
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取币别数据
|
|
|
getRateListfun(cnName){
|
|
|
getRateList({current:1,size:10,cnName}).then(res=>{
|
|
|
@@ -698,7 +902,12 @@ export default {
|
|
|
this.polData = res.data.data.records
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ // 发票类型字典数据
|
|
|
+ invTypeWorkDictsfun(){
|
|
|
+ getWorkDicts('inv_type_los').then(res=>{
|
|
|
+ this.invTypeData = res.data.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
},
|
|
|
}
|