|
|
@@ -17,9 +17,6 @@
|
|
|
</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" v-if="form.applyNo && form.status == 0"
|
|
|
- @click="allClick('撤销生成')">撤销发票
|
|
|
- </el-button>
|
|
|
<el-button size="small" type="danger" plain :disabled="!form.id" v-if="form.status == 3"
|
|
|
@click="allClick('发票撤销')">发票撤销
|
|
|
</el-button>
|
|
|
@@ -105,20 +102,20 @@
|
|
|
<el-button v-if="!form.applyNo" size="small" type="danger"
|
|
|
style="margin-left: 10px" :disabled="editDisabled" @click="allDelete">全部删除
|
|
|
</el-button>
|
|
|
+ <el-button size="small" type="danger" :disabled="!form.id"
|
|
|
+ v-if="form.applyNo && form.status == 0" @click="allClick('撤销生成')">全部删除
|
|
|
+ </el-button>
|
|
|
<span style="font-size:18px;font-weight:600;margin-left:10px;">
|
|
|
<!-- <span style="color:#F56C6C;">总行数:{{
|
|
|
form.finInvoicesItemsList.length }}</span> -->
|
|
|
<span style="color: #67C23A;margin-right: 10px;">
|
|
|
- 应收本币:{{ form.amountDr || 0 }}元
|
|
|
+ 开票本币:{{ form.amountCny || 0 }}元
|
|
|
</span>
|
|
|
<span style="color: #E6A23C;margin-right: 10px;">
|
|
|
- 应付本币:{{ form.amountCr || 0 }}元
|
|
|
+ 开票外币:{{ form.amountUsd || 0 }}元
|
|
|
</span>
|
|
|
<span style="color: #67C23A;margin-right: 10px;">
|
|
|
- 应收外币:{{ form.amountDrUsd || 0 }}元
|
|
|
- </span>
|
|
|
- <span style="color: #E6A23C;margin-right: 10px;">
|
|
|
- 应付外币:{{ form.amountCrUsd || 0 }}元
|
|
|
+ 开票本币合计:{{ form.amountLoc || 0 }}元
|
|
|
</span>
|
|
|
</span>
|
|
|
</template>
|
|
|
@@ -383,14 +380,8 @@ export default {
|
|
|
type: 'select',
|
|
|
dicData: [
|
|
|
{
|
|
|
- label: '全部',
|
|
|
- value: null
|
|
|
- }, {
|
|
|
label: '收',
|
|
|
value: 'D'
|
|
|
- }, {
|
|
|
- label: '付',
|
|
|
- value: 'C'
|
|
|
}],
|
|
|
disabled: false
|
|
|
},
|
|
|
@@ -839,7 +830,7 @@ export default {
|
|
|
if (this.form.applyNo) {
|
|
|
this.editDisabled = true
|
|
|
this.optionForm.column.forEach(item => {
|
|
|
- if (item.prop == 'invoiceDate' || item.prop == 'exrate') {
|
|
|
+ if (item.prop == 'invoiceDate' || item.prop == 'taxInvoiceNo' || item.prop == 'exrate') {
|
|
|
item.disabled = false
|
|
|
} else {
|
|
|
item.disabled = true
|
|
|
@@ -1275,7 +1266,7 @@ export default {
|
|
|
if (res.data.data.applyNo) {
|
|
|
this.editDisabled = true
|
|
|
this.optionForm.column.forEach(item => {
|
|
|
- if (item.prop == 'invoiceDate' || item.prop == 'exrate') {
|
|
|
+ if (item.prop == 'invoiceDate' || item.prop == 'taxInvoiceNo' || item.prop == 'exrate') {
|
|
|
item.disabled = false
|
|
|
} else {
|
|
|
item.disabled = true
|
|
|
@@ -1303,7 +1294,15 @@ export default {
|
|
|
this.$set(this.form, 'corpEnName', row.enName)
|
|
|
this.$set(this.form, 'corpArgreementNo', row.enName)
|
|
|
this.retrievePopupsType = false
|
|
|
- this.finstlbillslistAccBillV1fun()
|
|
|
+ this.form.billNoFormat = 'XXFP'
|
|
|
+ this.form.businessTypeCode = 'XXFP'
|
|
|
+ this.form.type = '销项'
|
|
|
+ let obj = {
|
|
|
+ ...this.form
|
|
|
+ }
|
|
|
+ fininvoicesSubmit(obj).then(res => {
|
|
|
+ this.finstlbillslistAccBillV1fun()
|
|
|
+ })
|
|
|
},
|
|
|
// 检索出的弹窗
|
|
|
finstlbillslistAccBillByCorpfun() {
|
|
|
@@ -1315,6 +1314,7 @@ export default {
|
|
|
obj.branchName = this.form.branchName
|
|
|
obj.corpCnName = this.form.corpId ? this.form.corpId : null
|
|
|
obj.isExchangeToCny = this.form.isExchangeToCny
|
|
|
+ obj.isDk = this.form.isDk
|
|
|
obj.dc = this.search.accountDc // 收付 D=收 C=付
|
|
|
obj.curCode = this.search.curCode // 币别
|
|
|
obj.mblno = this.search.mblno // MB/L NO
|
|
|
@@ -1337,6 +1337,7 @@ export default {
|
|
|
obj.branchName = this.form.branchName
|
|
|
obj.corpCnName = this.form.corpId // 结算单位
|
|
|
obj.isExchangeToCny = this.form.isExchangeToCny
|
|
|
+ obj.isDk = this.form.isDk
|
|
|
obj.dc = this.search.accountDc // 收付 D=收 C=付
|
|
|
obj.curCode = this.search.curCode // 币别
|
|
|
obj.mblno = this.search.mblno // MB/L NO
|