|
|
@@ -313,8 +313,26 @@
|
|
|
{{ item.label }}</el-radio>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12" v-if="inputForm.redInvoiceFlag === '1'">
|
|
|
+ <el-form-item label="是否关联发票" prop="relatedInvoice" :rules="[
|
|
|
+ { required: true, message: '是否关联发票', trigger: 'blur' }
|
|
|
+ ]">
|
|
|
+ <el-radio @change="handleChangeRelatedInvoice" v-model="inputForm.relatedInvoice"
|
|
|
+ v-for="item in $dictUtils.getDictList('yes_no')" :label="item.value"
|
|
|
+ style="margin-right: 20px">
|
|
|
+ {{ item.label }}</el-radio>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" v-if="inputForm.redInvoiceFlag === '1' && inputForm.relatedInvoice === '0'">
|
|
|
+ <el-form-item label="红冲情况说明" prop="situationDetail" :rules="[
|
|
|
+ { required: true, message: '红冲情况说明不能为空', trigger: 'blur' }
|
|
|
+ ]">
|
|
|
+ <el-input maxlength="500" type="textarea" placeholder="请填写红冲情况说明"
|
|
|
+ v-model="inputForm.situationDetail" show-word-limit></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
|
|
|
- <el-col v-if="inputForm.redInvoiceFlag === '1'" :span="12">
|
|
|
+ <el-col :span="12" v-if="inputForm.redInvoiceFlag === '1' && inputForm.relatedInvoice === '1'">
|
|
|
<el-form-item label="关联红字发票" prop="redInvoiceRelevancyNumber" :rules="[
|
|
|
{ required: true, message: '关联红字发票不能为空', trigger: 'blur' }, { required: true, message: '关联红字发票不能为空', trigger: 'change' }
|
|
|
]">
|
|
|
@@ -323,7 +341,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col v-if="inputForm.redInvoiceFlag === '1'" :span="12">
|
|
|
+ <el-col :span="12" v-if="inputForm.redInvoiceFlag === '1' && inputForm.relatedInvoice === '1'">
|
|
|
<el-form-item label="关联发票号" prop="invoiceNumberStr" :rules="[
|
|
|
]">
|
|
|
<el-input :disabled="true" placeholder="关联发票号" v-model="inputForm.invoiceNumberStr"
|
|
|
@@ -879,6 +897,8 @@ export default {
|
|
|
redInvoiceRelevancyNumber: '', //红字发票编号
|
|
|
invoiceNumberStr: '', //红字发票号
|
|
|
redInvoiceRelevancyId: '', //红字发票id
|
|
|
+ relatedInvoice: '1', //关联发票
|
|
|
+ situationDetail: '' //情况说明
|
|
|
},
|
|
|
programRow: '',
|
|
|
bankList: [],
|
|
|
@@ -1013,6 +1033,8 @@ export default {
|
|
|
redInvoiceRelevancyNumber: '', //红字发票编号
|
|
|
invoiceNumberStr: '', //红字发票号
|
|
|
redInvoiceRelevancyId: '', //红字发票id
|
|
|
+ relatedInvoice: '1', //关联发票
|
|
|
+ situationDetail: '' //情况说明
|
|
|
}
|
|
|
// if (method === 'add') {
|
|
|
// this.title = `新建发票`
|
|
|
@@ -1075,6 +1097,10 @@ export default {
|
|
|
if (this.commonJS.isEmpty(this.inputForm.redInvoiceFlag)) {
|
|
|
this.inputForm.redInvoiceFlag = '0'
|
|
|
}
|
|
|
+
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.relatedInvoice)) {
|
|
|
+ this.inputForm.relatedInvoice = '1'
|
|
|
+ }
|
|
|
if (this.commonJS.isEmpty(this.inputForm.receivablesType)) {
|
|
|
this.inputForm.receivablesType = '2'
|
|
|
}
|
|
|
@@ -1164,7 +1190,8 @@ export default {
|
|
|
|
|
|
//针对红冲处理
|
|
|
if (redInvoice == "1") {
|
|
|
- console.log("红冲处理")
|
|
|
+ console.log("我再红冲");
|
|
|
+
|
|
|
this.inputForm.redInvoiceRelevancyId = this.inputForm.id
|
|
|
this.inputForm.redInvoiceRelevancyNumber = this.inputForm.no
|
|
|
this.inputForm.invoiceNumberStr = this.inputForm.financeInvoiceDetailDTOList[0].number
|
|
|
@@ -1182,6 +1209,7 @@ export default {
|
|
|
this.inputForm.id = ''
|
|
|
this.$nextTick(() => {
|
|
|
this.inputForm.redInvoiceFlag = '1';
|
|
|
+ this.inputForm.relatedInvoice = '1';
|
|
|
this.inputForm.accountTotal = -Math.abs(this.inputForm.accountTotal);
|
|
|
})
|
|
|
this.inputForm.financeInvoiceDetailDTOList = []
|
|
|
@@ -2032,6 +2060,15 @@ export default {
|
|
|
this.inputForm.reconciliationPeopleName = user[0].name
|
|
|
this.inputForm.reconciliationPeople = user[0].id
|
|
|
},
|
|
|
+ // 修改是否关联发票
|
|
|
+ handleChangeRelatedInvoice(value) {
|
|
|
+ if (value === '0') {
|
|
|
+ this.inputForm.redInvoiceRelevancyNumber = ''
|
|
|
+ this.inputForm.invoiceNumberStr = ''
|
|
|
+ } else {
|
|
|
+ this.inputForm.situationDetail = ''
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|