|
|
@@ -13,10 +13,10 @@
|
|
|
<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"
|
|
|
+ <el-button size="small" type="primary" :disabled="statusType" style="margin-right: 8px" v-if="editSave"
|
|
|
:loading="saveLoading" @click="editHandle">编 辑
|
|
|
</el-button>
|
|
|
- <el-button size="small" type="primary" style="margin-right: 8px" v-else
|
|
|
+ <el-button size="small" type="primary" :disabled="statusType" style="margin-right: 8px" v-else
|
|
|
:loading="saveLoading" @click="editCustomer">保 存
|
|
|
</el-button>
|
|
|
</div>
|
|
|
@@ -42,7 +42,7 @@
|
|
|
<el-date-picker v-model="form.invoiceDate" clearable
|
|
|
style="width: 100%;"
|
|
|
type="date" size="small"
|
|
|
- :disabled="true"
|
|
|
+ :disabled="editSave"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
placeholder="选择开票日期">
|
|
|
</el-date-picker>
|
|
|
@@ -65,7 +65,7 @@
|
|
|
</search-query>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="24">
|
|
|
+ <el-col :span="12">
|
|
|
<el-form-item label="税号" prop="invCorpTaxNo">
|
|
|
<el-input style="width: 100%;" v-model="form.invCorpTaxNo"
|
|
|
size="small" autocomplete="off"
|
|
|
@@ -75,6 +75,21 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
+ <el-form-item label="发票币种" prop="invCurCode">
|
|
|
+ <search-query :datalist="invCurCodeData"
|
|
|
+ :selectValue="form.invCurCode"
|
|
|
+ :filterable="true"
|
|
|
+ :clearable="true"
|
|
|
+ :disabled="editSave"
|
|
|
+ :buttonIf="false"
|
|
|
+ placeholder="请选择发票币种"
|
|
|
+ :forParameter="{key:'id',label:'code',value:'code'}"
|
|
|
+ @corpChange="corpChange($event,'invCurCode')"
|
|
|
+ @corpFocus="invCurCodeRateListfun">
|
|
|
+ </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"
|
|
|
@@ -190,18 +205,19 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="全电发票备注:" prop="invCurCode">
|
|
|
- <el-input style="width: 100%;" v-model="form.elecRemarks"
|
|
|
- size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
- clearable placeholder="请输入全电发票备注" >
|
|
|
- </el-input>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="开票CNY:" prop="amountCny">
|
|
|
+ <span>¥{{form.amountCny}}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="开票合计:" prop="invCurCode">
|
|
|
- <span>¥{{form.amountLoc}}元</span>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="开票USD:" prop="amountUsd">
|
|
|
+ <span>${{form.amountUsd}}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="开票合计:" prop="amountLoc">
|
|
|
+ <span>¥{{form.amountLoc}}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -209,51 +225,51 @@
|
|
|
</el-col>
|
|
|
<el-col :span="14">
|
|
|
<div class="flexBoxRight">
|
|
|
+ <!--<el-row>-->
|
|
|
+ <!-- <el-col :span="4">-->
|
|
|
+ <!-- <el-switch-->
|
|
|
+ <!-- v-model="form.stlMode"-->
|
|
|
+ <!-- active-value="1"-->
|
|
|
+ <!-- inactive-value="0"-->
|
|
|
+ <!-- active-color="#66dd7a"-->
|
|
|
+ <!-- inactive-color="#4ea6ea"-->
|
|
|
+ <!-- active-text="票结"-->
|
|
|
+ <!-- inactive-text="月结">-->
|
|
|
+ <!-- </el-switch>-->
|
|
|
+ <!-- </el-col>-->
|
|
|
+ <!-- <el-col :span="6">-->
|
|
|
+ <!-- <el-checkbox style="margin-left: 10%" size="medium" :true-label="1" :false-label="0"-->
|
|
|
+ <!-- :disabled="editSave"-->
|
|
|
+ <!-- v-model="form.isDk">整票(不列费用明细)-->
|
|
|
+ <!-- </el-checkbox>-->
|
|
|
+ <!-- </el-col>-->
|
|
|
+ <!-- <el-col :span="5">-->
|
|
|
+ <!-- <el-checkbox style="margin-left: 10%" size="medium" :true-label="1" :false-label="0"-->
|
|
|
+ <!-- :disabled="editSave"-->
|
|
|
+ <!-- v-model="form.isRp">只提取开票费用-->
|
|
|
+ <!-- </el-checkbox>-->
|
|
|
+ <!-- </el-col>-->
|
|
|
+ <!-- <el-col :span="3">-->
|
|
|
+ <!-- <el-checkbox style="margin-left: 10%" size="medium" :true-label="1" :false-label="0"-->
|
|
|
+ <!-- :disabled="editSave"-->
|
|
|
+ <!-- v-model="form.isExportMblno">主单号-->
|
|
|
+ <!-- </el-checkbox>-->
|
|
|
+ <!-- </el-col>-->
|
|
|
+ <!-- <el-col :span="3">-->
|
|
|
+ <!-- <el-checkbox style="margin-left: 10%" size="medium" :true-label="1" :false-label="0"-->
|
|
|
+ <!-- :disabled="editSave"-->
|
|
|
+ <!-- v-model="form.isExportVslvoy">船名航次-->
|
|
|
+ <!-- </el-checkbox>-->
|
|
|
+ <!-- </el-col>-->
|
|
|
+ <!-- <el-col :span="3">-->
|
|
|
+ <!-- <el-checkbox style="margin-left: 10%" size="medium" :true-label="1" :false-label="0"-->
|
|
|
+ <!-- :disabled="editSave"-->
|
|
|
+ <!-- v-model="form.isExportHblno">分单号-->
|
|
|
+ <!-- </el-checkbox>-->
|
|
|
+ <!-- </el-col>-->
|
|
|
+ <!--</el-row>-->
|
|
|
<el-row>
|
|
|
- <el-col :span="4">
|
|
|
- <el-switch
|
|
|
- v-model="form.stlMode"
|
|
|
- active-value="1"
|
|
|
- inactive-value="0"
|
|
|
- active-color="#66dd7a"
|
|
|
- inactive-color="#4ea6ea"
|
|
|
- active-text="票结"
|
|
|
- inactive-text="月结">
|
|
|
- </el-switch>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-checkbox style="margin-left: 10%" size="medium" :true-label="1" :false-label="0"
|
|
|
- :disabled="editSave"
|
|
|
- v-model="form.isDk">整票(不列费用明细)
|
|
|
- </el-checkbox>
|
|
|
- </el-col>
|
|
|
- <el-col :span="5">
|
|
|
- <el-checkbox style="margin-left: 10%" size="medium" :true-label="1" :false-label="0"
|
|
|
- :disabled="editSave"
|
|
|
- v-model="form.isRp">只提取开票费用
|
|
|
- </el-checkbox>
|
|
|
- </el-col>
|
|
|
- <el-col :span="3">
|
|
|
- <el-checkbox style="margin-left: 10%" size="medium" :true-label="1" :false-label="0"
|
|
|
- :disabled="editSave"
|
|
|
- v-model="form.isExportMblno">主单号
|
|
|
- </el-checkbox>
|
|
|
- </el-col>
|
|
|
- <el-col :span="3">
|
|
|
- <el-checkbox style="margin-left: 10%" size="medium" :true-label="1" :false-label="0"
|
|
|
- :disabled="editSave"
|
|
|
- v-model="form.isExportVslvoy">船名航次
|
|
|
- </el-checkbox>
|
|
|
- </el-col>
|
|
|
- <el-col :span="3">
|
|
|
- <el-checkbox style="margin-left: 10%" size="medium" :true-label="1" :false-label="0"
|
|
|
- :disabled="editSave"
|
|
|
- v-model="form.isExportHblno">分单号
|
|
|
- </el-checkbox>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="16">
|
|
|
<el-form-item label="结算单位" prop="corpCnName">
|
|
|
<search-query :datalist="corpData"
|
|
|
:selectValue="form.corpCnName"
|
|
|
@@ -271,17 +287,6 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="开票日期" prop="invoiceDate">
|
|
|
- <el-date-picker v-model="form.invoiceDate" clearable
|
|
|
- style="width: 100%;"
|
|
|
- type="date" size="small"
|
|
|
- :disabled="editSave"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- placeholder="选择开票日期">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
<el-form-item label="税控发票号" prop="taxInvoiceNo">
|
|
|
<el-input style="width: 100%;" v-model="form.taxInvoiceNo"
|
|
|
size="small" autocomplete="off"
|
|
|
@@ -291,83 +296,42 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="银行账号" prop="bankReceiptAccountNo">
|
|
|
- <search-query :datalist="bankReceiptData"
|
|
|
- :selectValue="form.bankReceiptAccountNo"
|
|
|
- :clearable="true"
|
|
|
- :disabled="editSave || !form.corpId"
|
|
|
- :buttonIf="false"
|
|
|
- :remote="true"
|
|
|
- :filterable="true"
|
|
|
- placeholder="请输入银行账号"
|
|
|
- :forParameter="{ key:'id', label:'accountNo', value:'accountNo'}"
|
|
|
- @corpChange="corpChange($event,'bankReceiptAccountNo')"
|
|
|
- @remoteMethod="bcorpsbankListfun">
|
|
|
- </search-query>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="银行名称" prop="bankReceiptBankName">
|
|
|
- <el-input style="width: 100%;" v-model="form.bankReceiptBankName"
|
|
|
- size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
- clearable placeholder="请输入银行名称" >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="导出时间" prop="exportDate">
|
|
|
- <el-date-picker v-model="form.exportDate" clearable
|
|
|
+ <el-form-item label="业务开始日期" prop="accountDateFrom">
|
|
|
+ <el-date-picker v-model="form.accountDateFrom" clearable
|
|
|
style="width: 100%;"
|
|
|
type="date" size="small"
|
|
|
:disabled="editSave"
|
|
|
- value-format="yyyy-MM-dd HH:mm"
|
|
|
- placeholder="请选择导出时间">
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择业务日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="16">
|
|
|
- <el-form-item label="业务编号" prop="businessNo">
|
|
|
- <el-input style="width: 100%;" v-model="form.businessNo"
|
|
|
- size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
- clearable placeholder="请输入业务编号" >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="导出人" prop="exportName">
|
|
|
- <el-input style="width: 100%;" v-model="form.exportName"
|
|
|
- size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
- clearable placeholder="请输入导出人" >
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="16">
|
|
|
- <el-form-item label="主单编号" prop="mblno">
|
|
|
- <el-input style="width: 100%;" v-model="form.mblno"
|
|
|
- size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
- clearable placeholder="请输入主单编号" >
|
|
|
- </el-input>
|
|
|
+ <el-form-item label="业务结束日期" prop="accountDateTo">
|
|
|
+ <el-date-picker v-model="form.accountDateTo" clearable
|
|
|
+ style="width: 100%;"
|
|
|
+ type="date" size="small"
|
|
|
+ :disabled="editSave"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="选择业务日期">
|
|
|
+ </el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="导出汇率" prop="exrate">
|
|
|
+ <el-form-item label="发票汇率" prop="exrate">
|
|
|
<el-input style="width: 100%;" v-model="form.exrate"
|
|
|
size="small" autocomplete="off"
|
|
|
:disabled="editSave"
|
|
|
- clearable placeholder="请输入导出汇率" >
|
|
|
+ clearable placeholder="请输入发票汇率" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="16">
|
|
|
- <el-form-item label="分单编号" prop="hblno">
|
|
|
- <el-input style="width: 100%;" v-model="form.hblno"
|
|
|
+ <el-form-item label="业务编号" prop="businessNo">
|
|
|
+ <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>
|
|
|
@@ -385,12 +349,12 @@
|
|
|
</search-query>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="申请单号" prop="applyNo">
|
|
|
- <el-input style="width: 100%;" v-model="form.applyNo"
|
|
|
+ <el-col :span="16">
|
|
|
+ <el-form-item label="主单编号" prop="mblno">
|
|
|
+ <el-input style="width: 100%;" v-model="form.mblno"
|
|
|
size="small" autocomplete="off"
|
|
|
:disabled="editSave"
|
|
|
- clearable placeholder="请输入申请单号" >
|
|
|
+ clearable placeholder="请输入主单编号" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -403,12 +367,21 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="16">
|
|
|
+ <el-form-item label="分单编号" prop="hblno">
|
|
|
+ <el-input style="width: 100%;" v-model="form.hblno"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="editSave"
|
|
|
+ clearable placeholder="请输入分单编号" >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="所属税种" prop="taxType">
|
|
|
- <el-input style="width: 100%;" v-model="form.taxType"
|
|
|
+ <el-form-item label="申请单号" prop="applyNo">
|
|
|
+ <el-input style="width: 100%;" v-model="form.applyNo"
|
|
|
size="small" autocomplete="off"
|
|
|
:disabled="editSave"
|
|
|
- clearable placeholder="请输入所属税种" >
|
|
|
+ clearable placeholder="请输入申请单号" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -461,27 +434,34 @@
|
|
|
</search-query>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="16">
|
|
|
+ <el-form-item label="邮箱" prop="yx">
|
|
|
+ <el-input style="width: 100%;" v-model="form.yx"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="editSave"
|
|
|
+ clearable placeholder="请输入邮箱" >
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24">
|
|
|
<el-checkbox style="margin-left: 10%" size="medium" :true-label="1" :false-label="0"
|
|
|
:disabled="editSave"
|
|
|
v-model="form.isExchangeToCny">转换成人民币
|
|
|
</el-checkbox>
|
|
|
- <el-checkbox v-model="appendType" false-label="检索" true-label="追加">追加</el-checkbox>
|
|
|
+ <el-checkbox v-model="appendType" :disabled="statusType" false-label="检索" true-label="追加">追加</el-checkbox>
|
|
|
<el-button type="primary"
|
|
|
- size="small"
|
|
|
+ size="small" :disabled="statusType"
|
|
|
plain @click="finstlbillslistAccBillV1fun(appendType)">提取费用
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="邮箱" prop="checkNo">
|
|
|
- <el-input style="width: 100%;" v-model="form.checkNo"
|
|
|
- size="small" autocomplete="off"
|
|
|
- :disabled="editSave"
|
|
|
- clearable placeholder="请输入邮箱" >
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="全电发票:" prop="elecRemarks">
|
|
|
+ <el-input style="width: 100%;" v-model="form.elecRemarks"
|
|
|
+ size="small" autocomplete="off" type="textarea"
|
|
|
+ clearable placeholder="请输入全电发票备注" >
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
@@ -501,9 +481,9 @@
|
|
|
@corpChange="corpChange($event,'serverName')"
|
|
|
@corpFocus="serverWorkDictsfun" >
|
|
|
</search-query>
|
|
|
- <el-button style="margin-left: 10px" size="small" type="primary" @click="invoicingfun" >开票</el-button>
|
|
|
- <el-button style="margin-left: 10px" size="small" type="warning" @click="invoicingRevokefun" >撤销开票</el-button>
|
|
|
- <el-button size="small" type="danger" @click="batchDeletefun" >批量删除</el-button>
|
|
|
+ <el-button style="margin-left: 10px" :disabled="statusType" size="small" type="primary" @click="invoicingfun" >生成开票明细</el-button>
|
|
|
+ <el-button style="margin-left: 10px" :disabled="statusType" size="small" type="warning" @click="invoicingRevokefun" >撤销开票明细</el-button>
|
|
|
+ <el-button size="small" :disabled="statusType" type="danger" @click="batchDeletefun" >批量删除</el-button>
|
|
|
</div>
|
|
|
<fininvoicesitems :tableData="tableData"
|
|
|
:handleSelectionData="handleSelectionData"
|
|
|
@@ -514,7 +494,7 @@
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="开票明细" name="second">
|
|
|
<div style="margin-bottom: 10px;display: flex;">
|
|
|
- <el-button size="small" type="danger" @click="invoicingBatchDelete" >批量删除</el-button>
|
|
|
+ <el-button size="small" :disabled="statusType" type="danger" @click="invoicingBatchDelete" >批量删除</el-button>
|
|
|
</div>
|
|
|
<fininvoiceitemdetail :tableData="InvoicingList"
|
|
|
:handleSelectionData="invoicingCheckboxData"
|
|
|
@@ -555,30 +535,6 @@
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="5">
|
|
|
- <el-form-item label="发票币种" prop="invCurCode">
|
|
|
- <search-query :datalist="invCurCodeData"
|
|
|
- :selectValue="form.invCurCode"
|
|
|
- :filterable="true"
|
|
|
- :clearable="true"
|
|
|
- :disabled="editSave"
|
|
|
- :buttonIf="false"
|
|
|
- placeholder="请选择发票币种"
|
|
|
- :forParameter="{key:'id',label:'code',value:'code'}"
|
|
|
- @corpChange="corpChange($event,'invCurCode')"
|
|
|
- @corpFocus="invCurCodeRateListfun">
|
|
|
- </search-query>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <!--<el-col :span="4">-->
|
|
|
- <!-- <el-form-item label="打印次数" prop="invCurCode">-->
|
|
|
- <!-- <el-input style="width: 100%;" v-model="form.invCurCode"-->
|
|
|
- <!-- size="small" autocomplete="off"-->
|
|
|
- <!-- :disabled="editSave"-->
|
|
|
- <!-- clearable placeholder="请输入打印次数" >-->
|
|
|
- <!-- </el-input>-->
|
|
|
- <!-- </el-form-item>-->
|
|
|
- <!--</el-col>-->
|
|
|
</el-row>
|
|
|
</el-card>
|
|
|
</el-form>
|
|
|
@@ -611,17 +567,25 @@ import {
|
|
|
fininvoicesConfirmFinInvoices, fininvoicesRevokeFinInvoices
|
|
|
} from "@/api/iosBasicData/fininvoices";
|
|
|
import {getWorkDicts} from "@/api/system/dictbiz";
|
|
|
+import {getCurrentDate} from "@/util/date";
|
|
|
|
|
|
export default {
|
|
|
components:{ SearchQuery, fininvoicesitems,fininvoiceitemdetail},
|
|
|
data() {
|
|
|
return {
|
|
|
+ statusType:false, // 是否确认开票
|
|
|
serverData:[], // 开票项目数据
|
|
|
detailTabs:'first',
|
|
|
appendType:'检索',
|
|
|
pageLoading:false, // 全屏加载
|
|
|
saveLoading:false, // 按钮加载
|
|
|
- form:{},
|
|
|
+ form:{
|
|
|
+ invCurCode:'CNY',
|
|
|
+ isRp:1,
|
|
|
+ invType:'全电发票',
|
|
|
+ taxRate:0,
|
|
|
+ invoiceDate:getCurrentDate(),
|
|
|
+ },
|
|
|
tableData:[], // 费用明细数据
|
|
|
InvoicingList:[], // 开票明细数据
|
|
|
handleSelectionData:[], // 费用明细选择的数据
|
|
|
@@ -655,12 +619,12 @@ export default {
|
|
|
exrate: [
|
|
|
{required: true, message: '请输入导入汇率', trigger: 'blur'},
|
|
|
],
|
|
|
- taxType: [
|
|
|
- {required: true, message: '请输入所属税种', trigger: 'blur'},
|
|
|
- ],
|
|
|
taxRate:[
|
|
|
{required: true, message: '请输入所属税率', trigger: 'blur'},
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ invCurCode: [
|
|
|
+ {required: true, message: '请输入所属发票币别', trigger: 'blur'},
|
|
|
+ ],
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
@@ -670,6 +634,32 @@ export default {
|
|
|
default:false
|
|
|
}
|
|
|
},
|
|
|
+ watch:{
|
|
|
+ // 监听 状态
|
|
|
+ "form.status":{
|
|
|
+ // 执行方法
|
|
|
+ handler(oldValue,newValue) {
|
|
|
+ if (oldValue == 3) {
|
|
|
+ this.statusType = true
|
|
|
+ }else {
|
|
|
+ this.statusType = false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep: true, // 深度监听
|
|
|
+ immediate: true // 第一次改变就执行
|
|
|
+ },
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ if (!this.form.id) {
|
|
|
+ getRateList({current:1,size:30}).then(res=>{
|
|
|
+ for (let item of res.data.data.records) {
|
|
|
+ if (item.code == "USD") {
|
|
|
+ this.$set(this.form,'exrate',item.exrate)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
methods:{
|
|
|
// 开票明细编辑完成保存
|
|
|
invoiceSavefun(row){
|
|
|
@@ -698,6 +688,13 @@ export default {
|
|
|
if(this.form.invoiceDate) {
|
|
|
obj.invoiceDate = this.form.invoiceDate.slice(0,10) + ' 00:00:00'
|
|
|
}
|
|
|
+ // 业务日期
|
|
|
+ if (this.form.accountDateFrom) {
|
|
|
+ obj.accountDateFrom = this.form.accountDateFrom.slice(0,10) + ' 00:00:00'
|
|
|
+ }
|
|
|
+ if (this.form.accountDateTo) {
|
|
|
+ obj.accountDateTo = this.form.accountDateTo.slice(0,10) + ' 00:00:00'
|
|
|
+ }
|
|
|
for (let item of this.handleSelectionData) {
|
|
|
// 拿未开票的数据
|
|
|
if(item.status == 0) {
|
|
|
@@ -733,6 +730,13 @@ export default {
|
|
|
if(this.form.invoiceDate) {
|
|
|
obj.invoiceDate = this.form.invoiceDate.slice(0,10) + ' 00:00:00'
|
|
|
}
|
|
|
+ // 业务日期
|
|
|
+ if (this.form.accountDateFrom) {
|
|
|
+ obj.accountDateFrom = this.form.accountDateFrom.slice(0,10) + ' 00:00:00'
|
|
|
+ }
|
|
|
+ if (this.form.accountDateTo) {
|
|
|
+ obj.accountDateTo = this.form.accountDateTo.slice(0,10) + ' 00:00:00'
|
|
|
+ }
|
|
|
for (let item of this.handleSelectionData) {
|
|
|
// 拿未开票的数据
|
|
|
if(item.status == 1) {
|
|
|
@@ -946,6 +950,13 @@ export default {
|
|
|
if(this.form.invoiceDate) {
|
|
|
this.form.invoiceDate = this.form.invoiceDate.slice(0,10) + ' 00:00:00'
|
|
|
}
|
|
|
+ // 业务日期
|
|
|
+ if (this.form.accountDateFrom) {
|
|
|
+ this.form.accountDateFrom = this.form.accountDateFrom.slice(0,10) + ' 00:00:00'
|
|
|
+ }
|
|
|
+ if (this.form.accountDateTo) {
|
|
|
+ this.form.accountDateTo = this.form.accountDateTo.slice(0,10) + ' 00:00:00'
|
|
|
+ }
|
|
|
this.form.finInvoicesItemsList = this.handleSelectionData.map(item=>{
|
|
|
if (item.currentCurCode == 'CNY') {
|
|
|
item.currentAmount = item.currentAmountCNY
|
|
|
@@ -970,6 +981,14 @@ export default {
|
|
|
if(this.form.invoiceDate) {
|
|
|
obj.invoiceDate = this.form.invoiceDate.slice(0,10) + ' 00:00:00'
|
|
|
}
|
|
|
+ // 业务日期
|
|
|
+ if (this.form.accountDateFrom) {
|
|
|
+ obj.accountDateFrom = this.form.accountDateFrom.slice(0,10) + ' 00:00:00'
|
|
|
+ }
|
|
|
+ if (this.form.accountDateTo) {
|
|
|
+ obj.accountDateTo = this.form.accountDateTo.slice(0,10) + ' 00:00:00'
|
|
|
+ }
|
|
|
+
|
|
|
obj.type = '3'
|
|
|
obj.corpCnName = this.form.corpId // 结算单位
|
|
|
obj.billNo = this.form.bookingNo // 账单号
|
|
|
@@ -1078,7 +1097,7 @@ export default {
|
|
|
},
|
|
|
// 确认申请
|
|
|
fininvoicesConfirmFinInvoicesfun(){
|
|
|
- this.$confirm("确定进行申请操作?", {
|
|
|
+ this.$confirm("确定进行确认发票操作?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
@@ -1096,7 +1115,7 @@ export default {
|
|
|
},
|
|
|
// 撤销申请
|
|
|
fininvoicesRevokeFinInvoicesfun(){
|
|
|
- this.$confirm("确定进行撤销申请操作?", {
|
|
|
+ this.$confirm("确定进行撤销确认发票操作?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|