|
@@ -277,8 +277,8 @@
|
|
|
<el-form-item label="是否红字发票" prop="redInvoiceFlag" :rules="[
|
|
<el-form-item label="是否红字发票" prop="redInvoiceFlag" :rules="[
|
|
|
{ required: true, message: '是否红字发票不能为空', trigger: 'blur' }
|
|
{ required: true, message: '是否红字发票不能为空', trigger: 'blur' }
|
|
|
]">
|
|
]">
|
|
|
- <el-radio v-model="inputForm.redInvoiceFlag" v-for="item in $dictUtils.getDictList('yes_no')"
|
|
|
|
|
- :label="item.value" style="margin-right: 20px">
|
|
|
|
|
|
|
+ <el-radio @change="handleChangeRedInvoice" v-model="inputForm.redInvoiceFlag"
|
|
|
|
|
+ v-for="item in $dictUtils.getDictList('yes_no')" :label="item.value" style="margin-right: 20px">
|
|
|
{{ item.label }}</el-radio>
|
|
{{ item.label }}</el-radio>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -337,6 +337,26 @@
|
|
|
</el-radio>
|
|
</el-radio>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+
|
|
|
|
|
+ <el-form v-if="status === 'audit' || status === 'taskFormDetail'"
|
|
|
|
|
+ :disabled="status === 'taskFormDetail' || isDisabled" style="width: 100%" :model="inputForm"
|
|
|
|
|
+ v-loading="loading" :class="method === 'view' ? 'readonly' : ''" label-width="160px" @submit.native.prevent>
|
|
|
|
|
+ <el-form-item label="是否手动开票" prop="isOmsBilling" :rules="[
|
|
|
|
|
+ { required: true, message: '是否手动开票不能为空', trigger: 'change' }
|
|
|
|
|
+ ]">
|
|
|
|
|
+ <el-radio-group :disabled="(
|
|
|
|
|
+ (this.inputForm.redInvoiceFlag == 1 &&
|
|
|
|
|
+ (this.inputForm.relatedInvoice == 0 || this.inputForm.invoiceNumberStr == '' || this.inputForm.invoiceNumberStr == null || this.inputForm.invoiceNumberStr.length == 8))
|
|
|
|
|
+ )" v-model="inputForm.isOmsBilling">
|
|
|
|
|
+ <el-radio v-for="item in $dictUtils.getDictList('yes_no')" :label="item.value">{{
|
|
|
|
|
+ item.label }}
|
|
|
|
|
+ </el-radio>
|
|
|
|
|
+ </el-radio-group>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+
|
|
|
<!-- <el-col :span="24">
|
|
<!-- <el-col :span="24">
|
|
|
<el-form-item label="开票内容要求" prop="billingContentTerms" :rules="[
|
|
<el-form-item label="开票内容要求" prop="billingContentTerms" :rules="[
|
|
|
]">
|
|
]">
|
|
@@ -765,6 +785,7 @@ export default {
|
|
|
redInvoiceFlag: '0', //是否红字发票
|
|
redInvoiceFlag: '0', //是否红字发票
|
|
|
redFlushReason: '', //红冲原因
|
|
redFlushReason: '', //红冲原因
|
|
|
isSmsNotice: '0',//是否短信通知
|
|
isSmsNotice: '0',//是否短信通知
|
|
|
|
|
+ isOmsBilling: '0',//是否手动开票
|
|
|
redInvoiceRelevancyNumber: '', //红字发票编号
|
|
redInvoiceRelevancyNumber: '', //红字发票编号
|
|
|
invoiceNumberStr: '', //红字发票号
|
|
invoiceNumberStr: '', //红字发票号
|
|
|
redInvoiceRelevancyId: '', //红字发票id
|
|
redInvoiceRelevancyId: '', //红字发票id
|
|
@@ -813,7 +834,8 @@ export default {
|
|
|
set(val) {
|
|
set(val) {
|
|
|
this.businessId = val
|
|
this.businessId = val
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
'keyWatch': {
|
|
'keyWatch': {
|
|
@@ -894,6 +916,7 @@ export default {
|
|
|
redInvoiceFlag: '0', //是否红字发票
|
|
redInvoiceFlag: '0', //是否红字发票
|
|
|
redFlushReason: '', //红冲原因
|
|
redFlushReason: '', //红冲原因
|
|
|
isSmsNotice: '0',//是否短信通知
|
|
isSmsNotice: '0',//是否短信通知
|
|
|
|
|
+ isOmsBilling: '0',//是否手动开票
|
|
|
redInvoiceRelevancyNumber: '', //红字发票编号
|
|
redInvoiceRelevancyNumber: '', //红字发票编号
|
|
|
invoiceNumberStr: '', //红字发票号
|
|
invoiceNumberStr: '', //红字发票号
|
|
|
redInvoiceRelevancyId: '', //红字发票id
|
|
redInvoiceRelevancyId: '', //红字发票id
|
|
@@ -952,6 +975,9 @@ export default {
|
|
|
|
|
|
|
|
if (this.commonJS.isEmpty(this.inputForm.redInvoiceFlag)) {
|
|
if (this.commonJS.isEmpty(this.inputForm.redInvoiceFlag)) {
|
|
|
this.inputForm.redInvoiceFlag = '0'
|
|
this.inputForm.redInvoiceFlag = '0'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.inputForm.redInvoiceFlag = this.inputForm.redInvoiceFlag + ""
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
if (this.commonJS.isEmpty(this.inputForm.redFlushReason)) {
|
|
if (this.commonJS.isEmpty(this.inputForm.redFlushReason)) {
|
|
|
this.inputForm.redFlushReason = '01'
|
|
this.inputForm.redFlushReason = '01'
|
|
@@ -959,6 +985,13 @@ export default {
|
|
|
if (this.commonJS.isEmpty(this.inputForm.isSmsNotice)) {
|
|
if (this.commonJS.isEmpty(this.inputForm.isSmsNotice)) {
|
|
|
this.inputForm.isSmsNotice = '0'
|
|
this.inputForm.isSmsNotice = '0'
|
|
|
}
|
|
}
|
|
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.isOmsBilling)) {
|
|
|
|
|
+ this.inputForm.isOmsBilling = '0'
|
|
|
|
|
+ }
|
|
|
|
|
+ if ((this.inputForm.redInvoiceFlag == 1 &&
|
|
|
|
|
+ (this.inputForm.relatedInvoice == 0 || this.inputForm.invoiceNumberStr == '' || this.inputForm.invoiceNumberStr == null || this.inputForm.invoiceNumberStr.length == 8))) {
|
|
|
|
|
+ this.inputForm.isOmsBilling = "1"
|
|
|
|
|
+ }
|
|
|
if (this.commonJS.isEmpty(this.inputForm.relatedInvoice)) {
|
|
if (this.commonJS.isEmpty(this.inputForm.relatedInvoice)) {
|
|
|
this.inputForm.relatedInvoice = '1'
|
|
this.inputForm.relatedInvoice = '1'
|
|
|
}
|
|
}
|
|
@@ -1138,7 +1171,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
if (this.inputForm.redInvoiceFlag === '1' && this.inputForm.relatedInvoice === '1') {
|
|
if (this.inputForm.redInvoiceFlag === '1' && this.inputForm.relatedInvoice === '1') {
|
|
|
if (this.inputForm.redFlushReason === "01") {
|
|
if (this.inputForm.redFlushReason === "01") {
|
|
|
if (-Math.abs(this.inputForm.originalAccount) != -Math.abs(this.inputForm.account)) {
|
|
if (-Math.abs(this.inputForm.originalAccount) != -Math.abs(this.inputForm.account)) {
|
|
@@ -1177,8 +1209,11 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (this.inputForm.status === '5') {
|
|
if (this.inputForm.status === '5') {
|
|
|
- if (this.inputForm.redInvoiceFlag == 1 &&
|
|
|
|
|
- (this.inputForm.relatedInvoice == 0 || this.inputForm.invoiceNumberStr == "" || this.inputForm.invoiceNumberStr == null || this.inputForm.invoiceNumberStr.length == 8)) {
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ this.inputForm.isOmsBilling == 1 ||
|
|
|
|
|
+ (this.inputForm.redInvoiceFlag == 1 &&
|
|
|
|
|
+ (this.inputForm.relatedInvoice == 0 || this.inputForm.invoiceNumberStr == "" || this.inputForm.invoiceNumberStr == null || this.inputForm.invoiceNumberStr.length == 8))
|
|
|
|
|
+ ) {
|
|
|
let acc = 0
|
|
let acc = 0
|
|
|
|
|
|
|
|
this.inputForm.financeInvoiceDetailDTOList.forEach((item, index) => {
|
|
this.inputForm.financeInvoiceDetailDTOList.forEach((item, index) => {
|
|
@@ -1769,6 +1804,14 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
this.inputForm.situationDetail = ''
|
|
this.inputForm.situationDetail = ''
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ // 是否红字发票
|
|
|
|
|
+ handleChangeRedInvoice(value) {
|
|
|
|
|
+ if (value === '0') {
|
|
|
|
|
+ this.inputForm.redInvoiceRelevancyNumber = ''
|
|
|
|
|
+ this.inputForm.invoiceNumberStr = ''
|
|
|
|
|
+ this.inputForm.redInvoiceRelevancyId = ''
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|