|
@@ -9,11 +9,11 @@
|
|
|
@close="close"
|
|
|
@keyup.enter.native="doSubmit"
|
|
|
v-model="visible">
|
|
|
- <el-form :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''"
|
|
|
+ <el-form :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="method==='view'"
|
|
|
label-width="160px" @submit.native.prevent>
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
|
基本信息
|
|
|
- <el-button style="margin-left: 20px" type="primary" :disabled="method==='view'" @click="insertEvent('base')" plain>
|
|
|
+ <el-button style="margin-left: 20px" type="primary" @click="insertEvent('base')" plain>
|
|
|
新增
|
|
|
</el-button>
|
|
|
</el-divider>
|
|
@@ -35,28 +35,28 @@
|
|
|
>
|
|
|
<vxe-table-column field="programName" title="项目名称" :edit-render="{}">
|
|
|
<template v-slot:edit="scope">
|
|
|
- <el-input @focus="openProgramPageForm(scope.$rowIndex)" placeholder="请填写项目名称" :disabled="method==='view'" :readonly="true" v-model="scope.row.programName"/>
|
|
|
+ <el-input @focus="openProgramPageForm(scope.$rowIndex)" placeholder="请填写项目名称" :readonly="true" v-model="scope.row.programName"/>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
<vxe-table-column field="contractName" title="合同名称" :edit-render="{}">
|
|
|
<template v-slot:edit="scope">
|
|
|
- <el-input @focus="openContractForm()" placeholder="请填写合同名称" :disabled="method==='view'" :readonly="true" v-model="scope.row.contractName"/>
|
|
|
+ <el-input @focus="openContractForm()" placeholder="请填写合同名称" :readonly="true" v-model="scope.row.contractName"/>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
<vxe-table-column field="programNo" title="项目编号" :edit-render="{}">
|
|
|
<template v-slot:edit="scope">
|
|
|
- <el-input :readonly="true" :disabled="method==='view'" placeholder="请填写项目编号" v-model="scope.row.programNo"/>
|
|
|
+ <el-input :readonly="true" placeholder="请填写项目编号" v-model="scope.row.programNo"/>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
<vxe-table-column field="reportNo" title="报告号" :edit-render="{}">
|
|
|
<template v-slot:edit="scope">
|
|
|
- <el-input :readonly="true" :disabled="method==='view'" v-model="scope.row.reportNo" placeholder="请填写报告号"/>
|
|
|
+ <el-input :readonly="true" v-model="scope.row.reportNo" placeholder="请填写报告号"/>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
<vxe-table-column field="account" align="center" title="发票金额(元)" :edit-render="{}">
|
|
|
<template v-slot:edit="scope">
|
|
|
<el-input
|
|
|
- :disabled="method==='view'"
|
|
|
+
|
|
|
v-on:input="scope.row.account=scope.row.account.replace(/[^\d.]/g,'')
|
|
|
.replace(/^\./g,'')
|
|
|
.replace(/\.{2,}/g,'.')
|
|
@@ -77,7 +77,7 @@
|
|
|
<!-- </vxe-table-column>-->
|
|
|
<vxe-table-column title="操作" width="100">
|
|
|
<template v-slot="scope">
|
|
|
- <el-button type="danger" :disabled="method==='view'" @click="removeEvent(scope.row,scope.$rowIndex,'base')">删除</el-button>
|
|
|
+ <el-button type="danger" @click="removeEvent(scope.row,scope.$rowIndex,'base')">删除</el-button>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
</vxe-table>
|
|
@@ -90,7 +90,7 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'发票类型不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
- <el-radio v-model="inputForm.type" :disabled="method==='view'" v-for="item in $dictUtils.getDictList('invoice_type')" :label="item.value" style="margin-right: 20px">
|
|
|
+ <el-radio v-model="inputForm.type" v-for="item in $dictUtils.getDictList('invoice_type')" :label="item.value" style="margin-right: 20px">
|
|
|
{{item.label}}</el-radio>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -106,7 +106,7 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'开票类型不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
- <el-radio v-model="inputForm.billingType" :disabled="method==='view'" @change="changeRadio" v-for="item in $dictUtils.getDictList('invoice_billing_type')" :label="item.value" style="margin-right: 20px">
|
|
|
+ <el-radio v-model="inputForm.billingType" @change="changeRadio" v-for="item in $dictUtils.getDictList('invoice_billing_type')" :label="item.value" style="margin-right: 20px">
|
|
|
{{item.label}}</el-radio>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -129,7 +129,7 @@
|
|
|
:value="inputForm.name"
|
|
|
:clearable="true"
|
|
|
:accordion="true"
|
|
|
- :disabled="method==='view'"
|
|
|
+
|
|
|
@getValue="(value) => {inputForm.name=value}"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -140,7 +140,7 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'实际开票单位不能为空', trigger:'blur'},{required: true, message:'实际开票单位不能为空', trigger:'change'}
|
|
|
]">
|
|
|
- <el-input :readonly="true" :disabled="method==='view'" placeholder="请填写实际开票单位" v-model="inputForm.billingWorkplaceReal" @focus="openWorkClientForm()" clearable></el-input>
|
|
|
+ <el-input :readonly="true" placeholder="请填写实际开票单位" v-model="inputForm.billingWorkplaceReal" @focus="openWorkClientForm()" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<template v-if="inputForm.type === '1'" style="width: 100%;">
|
|
@@ -149,7 +149,7 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'纳税人识别号不能为空', trigger:'blur'},{required: true, message:'纳税人识别号不能为空', trigger:'change'}
|
|
|
]">
|
|
|
- <el-input :disabled="method==='view'" v-model="inputForm.taxpayerIdentificationNo" placeholder="请填写纳税人识别号" clearable></el-input>
|
|
|
+ <el-input v-model="inputForm.taxpayerIdentificationNo" placeholder="请填写纳税人识别号" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col v-if="inputForm.billingType === '1'" :span="12">
|
|
@@ -157,7 +157,7 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'地址不能为空', trigger:'blur'},{required: true, message:'地址不能为空', trigger:'change'}
|
|
|
]">
|
|
|
- <el-input :disabled="method==='view'" v-model="inputForm.address" placeholder="请填写地址" clearable></el-input>
|
|
|
+ <el-input v-model="inputForm.address" placeholder="请填写地址" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col v-if="inputForm.billingType === '1'" :span="12">
|
|
@@ -165,15 +165,15 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'电话不能为空', trigger:'blur'},{required: true, message:'电话不能为空', trigger:'change'}
|
|
|
]">
|
|
|
- <el-input :disabled="method==='view'" v-model="inputForm.telPhone" placeholder="请填写电话" clearable></el-input>
|
|
|
+ <el-input v-model="inputForm.telPhone" placeholder="请填写电话" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col v-if="inputForm.billingType === '1'" :span="12">
|
|
|
+ <el-col v-if="inputForm.billingType === '1' && method!=='view'" :span="12">
|
|
|
<el-form-item label="开户银行" prop="openBank"
|
|
|
:rules="[
|
|
|
{required: true, message:'开户银行不能为空', trigger:'blur'},{required: true, message:'开户银行不能为空', trigger:'change'}
|
|
|
]">
|
|
|
- <el-select :disabled="method==='view'" v-model="inputForm.openBank" @change="changeBank" placeholder="请选择开户银行" clearable style="width: 100%;">
|
|
|
+ <el-select v-model="inputForm.openBank" @change="changeBank" placeholder="请选择开户银行" clearable style="width: 100%;">
|
|
|
<el-option
|
|
|
v-for="item in bankList"
|
|
|
:key="item.id"
|
|
@@ -183,7 +183,14 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col v-if="inputForm.billingType === '1'" :span="12">
|
|
|
+ <el-col v-else="inputForm.billingType === '1' && method==='view'" :span="12">
|
|
|
+ <el-form-item label="开户银行" prop="openBank"
|
|
|
+ :rules="[
|
|
|
+ ]">
|
|
|
+ <el-input :readonly="true" placeholder="请填写开户银行" v-model="inputForm.openBank" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col v-if="inputForm.billingType === '1'&& method==='view'" :span="12">
|
|
|
<el-form-item label="银行账号" prop="bankAccount"
|
|
|
:rules="[
|
|
|
{required: true, message:'银行账号不能为空', trigger:'blur'},{required: true, message:'银行账号不能为空', trigger:'change'}
|
|
@@ -197,28 +204,28 @@
|
|
|
<el-form-item label="纳税人识别号" prop="taxpayerIdentificationNo"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-input :disabled="method==='view'" v-model="inputForm.taxpayerIdentificationNo" placeholder="请填写纳税人识别号" clearable></el-input>
|
|
|
+ <el-input v-model="inputForm.taxpayerIdentificationNo" placeholder="请填写纳税人识别号" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col v-if="inputForm.billingType === '1'" :span="12">
|
|
|
<el-form-item label="地址" prop="address"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-input :disabled="method==='view'" v-model="inputForm.address" placeholder="请填写地址" clearable></el-input>
|
|
|
+ <el-input v-model="inputForm.address" placeholder="请填写地址" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col v-if="inputForm.billingType === '1'" :span="12">
|
|
|
<el-form-item label="电话" prop="telPhone"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-input :disabled="method==='view'" v-model="inputForm.telPhone" placeholder="请填写电话" clearable></el-input>
|
|
|
+ <el-input v-model="inputForm.telPhone" placeholder="请填写电话" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col v-if="inputForm.billingType === '1'" :span="12">
|
|
|
<el-form-item label="开户银行" prop="openBank"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-select :disabled="method==='view'" v-model="inputForm.openBank" @change="changeBank" placeholder="请选择开户银行" clearable style="width: 100%;">
|
|
|
+ <el-select v-model="inputForm.openBank" @change="changeBank" placeholder="请选择开户银行" clearable style="width: 100%;">
|
|
|
<el-option
|
|
|
v-for="item in bankList"
|
|
|
:key="item.id"
|
|
@@ -242,7 +249,7 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'收款类型不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
- <el-select :disabled="method==='view'" v-model="inputForm.receivablesType" placeholder="请选择收款类型" clearable style="width: 100%;">
|
|
|
+ <el-select v-model="inputForm.receivablesType" placeholder="请选择收款类型" clearable style="width: 100%;">
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('invoice_receivables_type')"
|
|
|
:key="item.value"
|
|
@@ -257,7 +264,7 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'开票内容不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
- <el-select :disabled="method==='view'" v-model="inputForm.billingContent" placeholder="请选择开票内容" clearable style="width: 100%;">
|
|
|
+ <el-select v-model="inputForm.billingContent" placeholder="请选择开票内容" clearable style="width: 100%;">
|
|
|
<el-option
|
|
|
v-for="item in $dictUtils.getDictList('invoice_billing_content')"
|
|
|
:key="item.value"
|
|
@@ -288,7 +295,7 @@
|
|
|
:rules="[
|
|
|
{required: true, message:'是否多张开票不能为空', trigger:'blur'}
|
|
|
]">
|
|
|
- <el-radio :disabled="method==='view'" v-model="inputForm.isMultiple" v-for="item in yesNoFlag" :label="item.value" style="margin-right: 20px">
|
|
|
+ <el-radio v-model="inputForm.isMultiple" v-for="item in yesNoFlag" :label="item.value" style="margin-right: 20px">
|
|
|
{{item.label}}</el-radio>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -296,7 +303,7 @@
|
|
|
<el-form-item label="开票内容要求" prop="billingContentTerms"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-input type="textarea" :disabled="method==='view'" maxlength="500" v-model="inputForm.billingContentTerms" placeholder="开票内容要求" show-word-limit></el-input>
|
|
|
+ <el-input type="textarea" maxlength="500" v-model="inputForm.billingContentTerms" placeholder="开票内容要求" show-word-limit></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -356,7 +363,7 @@
|
|
|
:value="inputForm.billingPeopleReal"
|
|
|
:clearable="true"
|
|
|
:accordion="true"
|
|
|
- :disabled="method==='view'"
|
|
|
+
|
|
|
@getValue="(value) => {inputForm.billingPeopleReal=value}"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -376,7 +383,7 @@
|
|
|
:value="inputForm.reconciliationPeople"
|
|
|
:clearable="true"
|
|
|
:accordion="true"
|
|
|
- :disabled="method==='view'"
|
|
|
+
|
|
|
@getValue="(value) => {inputForm.reconciliationPeople=value}"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -396,7 +403,7 @@
|
|
|
:clearable="true"
|
|
|
:accordion="true"
|
|
|
size="default"
|
|
|
- :disabled="method==='view'"
|
|
|
+
|
|
|
@getValue="(value) => {inputForm.reconciliationArea=value}"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -404,7 +411,7 @@
|
|
|
<el-form-item label="备注" prop="remarks"
|
|
|
:rules="[
|
|
|
]">
|
|
|
- <el-input maxlength="500" :disabled="method==='view'" type="textarea" placeholder="请填写备注" v-model="inputForm.remarks" show-word-limit></el-input>
|
|
|
+ <el-input maxlength="500" type="textarea" placeholder="请填写备注" v-model="inputForm.remarks" show-word-limit></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -701,7 +708,8 @@
|
|
|
importVisible: false,
|
|
|
detailKey: '',
|
|
|
detailKey2: '',
|
|
|
- yesNoFlag: [{label: '否', value: '0'}, {label: '是', value: '1'}]
|
|
|
+ yesNoFlag: [{label: '否', value: '0'}, {label: '是', value: '1'}],
|
|
|
+ showSelect:true
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
@@ -722,6 +730,8 @@
|
|
|
if (receivablesFlag !== true) {
|
|
|
this.receivablesFlag = false
|
|
|
this.title = '查看发票信息'
|
|
|
+ this.showSelect=false
|
|
|
+ console.log('1111',this.showSelect)
|
|
|
if (meth === true || meth === 'true') {
|
|
|
this.title = '修改发票明细'
|
|
|
this.detailFlag = true
|
|
@@ -800,6 +810,8 @@
|
|
|
data.cwWorkClientBillingDTOList.forEach(i => {
|
|
|
i.ourBank = i.accountHolder
|
|
|
this.bankList.push(i)
|
|
|
+ console.log('222',i.ourBank)
|
|
|
+ this.inputForm.openBank=i.ourBank
|
|
|
})
|
|
|
} else {
|
|
|
this.bankList = []
|