【修改】到账后会议应收金额 税率不可编辑

This commit is contained in:
fengachen
2022-11-11 09:32:00 +08:00
parent df811c8369
commit dd2ff98c57
@@ -56,12 +56,14 @@
<!-- 只有编辑的时候显示 应收金额 税率 税额 等信息 --> <!-- 只有编辑的时候显示 应收金额 税率 税额 等信息 -->
<template v-if="!!$route.query.id"> <template v-if="!!$route.query.id">
<!-- 到账后 应收金额 税率不能编辑 -->
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :xxl="8" :xl="12" :sm="24"> <a-col :xxl="8" :xl="12" :sm="24">
<a-form-item label="应收金额" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="应收金额" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input placeholder="请输入应收金额" <a-input placeholder="请输入应收金额"
v-decorator="['amountReceivable', validatorRules.amountReceivable]" v-decorator="['amountReceivable', validatorRules.amountReceivable]"
:maxLength='50' :maxLength='50'
:disabled="isCheckInBool"
@change="changeReceivableAmount" @change="changeReceivableAmount"
></a-input> ></a-input>
</a-form-item> </a-form-item>
@@ -69,6 +71,7 @@
<a-col :xxl="8" :xl="12" :sm="24"> <a-col :xxl="8" :xl="12" :sm="24">
<a-form-item label="税率" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="税率" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag @change="changeRate" placeholder="请选择税率" dict-code="rate" :trigger-change="true" <j-dict-select-tag @change="changeRate" placeholder="请选择税率" dict-code="rate" :trigger-change="true"
:disabled="isCheckInBool"
v-decorator="['taxRate',validatorRules.taxRate]"></j-dict-select-tag> v-decorator="['taxRate',validatorRules.taxRate]"></j-dict-select-tag>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -263,6 +266,8 @@ export default {
isEditBool: false, isEditBool: false,
// 是否需要发票 // 是否需要发票
needInvoiceBool: true, needInvoiceBool: true,
// 是否已经到账
isCheckInBool: false,
} }
}, },
watch: { watch: {
@@ -391,6 +396,8 @@ export default {
// this.isEditBool = record.checkResult === 1 // this.isEditBool = record.checkResult === 1
this.isEditBool = false this.isEditBool = false
this.needInvoiceBool = record.needInvoice === 0 this.needInvoiceBool = record.needInvoice === 0
// 是否已经到账
this.isCheckInBool = record.checkResult === 1
// 回显邮寄联系人 // 回显邮寄联系人
this.selectPostPerson = { this.selectPostPerson = {
id: record.postContactTemporaryId, id: record.postContactTemporaryId,