|
|
@@ -21,7 +21,7 @@
|
|
|
:rules="rules"
|
|
|
class="el-form-box"
|
|
|
:model="form"
|
|
|
- label-width="120px"
|
|
|
+ label-width="140px"
|
|
|
>
|
|
|
<headerTitle title="基本信息"></headerTitle>
|
|
|
<el-row :gutter="12">
|
|
|
@@ -175,6 +175,12 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="发票类型" prop="category">
|
|
|
+ <el-radio v-model="form.category" :label="2">增值税普通发票</el-radio>
|
|
|
+ <el-radio v-model="form.category" :label="1">增值税专用发票</el-radio>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item
|
|
|
label="统一社会信用代码"
|
|
|
@@ -184,8 +190,7 @@
|
|
|
<el-input v-model="form.companyUsc"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="12">
|
|
|
+
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="开户银行" prop="companyBankBranchNo">
|
|
|
<el-input v-model="form.companyBankBranchNo"></el-input>
|
|
|
@@ -196,9 +201,7 @@
|
|
|
<el-input v-model="form.companyBankAccount"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
|
|
|
- <el-row :gutter="12">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="单位地址" prop="companyAddress">
|
|
|
<el-input v-model="form.companyAddress"></el-input>
|
|
|
@@ -331,14 +334,14 @@
|
|
|
import { enterprisePage } from '@/api/contractManage/contractBook';
|
|
|
import { contactDetail } from '@/api/saleManage/contact';
|
|
|
import fileMain from '@/components/addDoc/index.vue';
|
|
|
- import {updateContractStatus } from '@/api/contractManage/contractBook';
|
|
|
+ import { updateContractStatus } from '@/api/contractManage/contractBook';
|
|
|
|
|
|
const defForm = {
|
|
|
accountingSubjectCode: '',
|
|
|
accountingSubjectId: '',
|
|
|
accountingSubjectName: '',
|
|
|
amount: undefined,
|
|
|
-
|
|
|
+ contactId: '',
|
|
|
companyAddress: '',
|
|
|
companyBankAccount: '',
|
|
|
companyUsc: '',
|
|
|
@@ -361,7 +364,8 @@
|
|
|
invoiceAmount: 0,
|
|
|
getAccountData: '',
|
|
|
sourceId: '',
|
|
|
- sourceCode: ''
|
|
|
+ sourceCode: '',
|
|
|
+ category: 1
|
|
|
};
|
|
|
export default {
|
|
|
name: 'add-or-edit-dialog',
|
|
|
@@ -520,6 +524,7 @@
|
|
|
if (!id) {
|
|
|
return;
|
|
|
}
|
|
|
+ this.form.contactId = id;
|
|
|
const { base, other, bankList, linkList } = await contactDetail(id);
|
|
|
if (this.form.type == 2) {
|
|
|
this.form.companyName = data.partbName || base.name;
|