|
|
|
@ -34,7 +34,7 @@ |
|
|
|
|
</div> |
|
|
|
|
<p><span v-if="item.customerType == 1">个人</span><span v-if="item.customerType == 2">企业</span></p> |
|
|
|
|
<p> |
|
|
|
|
{{item.username}} |
|
|
|
|
{{item.name}} |
|
|
|
|
</p> |
|
|
|
|
<p>{{item.taxIdentificationNumber}}</p> |
|
|
|
|
</div> |
|
|
|
@ -61,13 +61,23 @@ |
|
|
|
|
:label-col="labelCol" :wrapper-col="wrapperCol" |
|
|
|
|
class="modelForm" |
|
|
|
|
> |
|
|
|
|
<a-form-model-item label="客户类型" > |
|
|
|
|
<a-radio-group v-model="form.customerType"> |
|
|
|
|
<a-radio :value="'1'"> |
|
|
|
|
个人 |
|
|
|
|
</a-radio> |
|
|
|
|
<a-radio :value="'2'"> |
|
|
|
|
企业 |
|
|
|
|
</a-radio> |
|
|
|
|
</a-radio-group> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item label="发票类型" > |
|
|
|
|
<a-select v-model="form.type" placeholder="请选择发票类型"> |
|
|
|
|
<a-select v-model="form.invoiceType" placeholder="请选择发票类型"> |
|
|
|
|
<a-select-option value="1"> |
|
|
|
|
专用发票 |
|
|
|
|
专用增值税发票 |
|
|
|
|
</a-select-option> |
|
|
|
|
<a-select-option value="2"> |
|
|
|
|
普通发票 |
|
|
|
|
普通增值税发票 |
|
|
|
|
</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</a-form-model-item> |
|
|
|
@ -78,16 +88,17 @@ |
|
|
|
|
<a-input placeholder="请输入发票抬头" v-model="form.name" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item |
|
|
|
|
label="税号" |
|
|
|
|
label="纳税人识别号" |
|
|
|
|
prop="dutyNum" |
|
|
|
|
> |
|
|
|
|
<a-input placeholder="请输入税号" v-model="form.dutyNum" /> |
|
|
|
|
<a-input placeholder="请输入纳税人识别号" v-model="form.accountNumber" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item |
|
|
|
|
label="公司注册电话" |
|
|
|
|
prop="phone" |
|
|
|
|
v-if="form.customerType == 2" |
|
|
|
|
> |
|
|
|
|
<a-input placeholder="请输入公司注册电话" v-model="form.phone"> |
|
|
|
|
<a-input placeholder="请输入公司注册电话" v-model="form.telephone"> |
|
|
|
|
<template slot="addonBefore"> |
|
|
|
|
<span>+86 中国大陆地区</span> |
|
|
|
|
</template> |
|
|
|
@ -96,12 +107,23 @@ |
|
|
|
|
<a-form-model-item |
|
|
|
|
label="银行账户" |
|
|
|
|
prop="card" |
|
|
|
|
v-if="form.customerType == 2" |
|
|
|
|
> |
|
|
|
|
<a-input placeholder="请输入银行账户" v-model="form.card"> |
|
|
|
|
<a-input placeholder="请输入银行账户" v-model="form.bankDeposit"> |
|
|
|
|
</a-input> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item label="公司注册地址" prop="detailed"> |
|
|
|
|
<a-input v-model="form.detailed" type="textarea" /> |
|
|
|
|
<a-form-model-item label="开户行" prop="bankzh"> |
|
|
|
|
<j-popup |
|
|
|
|
v-model="form.bankzh" |
|
|
|
|
field="bankzh" |
|
|
|
|
org-fields="id,bankname" |
|
|
|
|
dest-fields="bankDeposit,bankzh" |
|
|
|
|
code="findyh" |
|
|
|
|
:multi="true" |
|
|
|
|
/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item label="地址" prop="detailed"> |
|
|
|
|
<a-input v-model="form.address" type="textarea" /> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item> |
|
|
|
|
<a-checkbox @change="onChange" :checked="form.flag"> |
|
|
|
@ -117,7 +139,6 @@ |
|
|
|
|
import { httpAction, getAction } from '@/api/manage' |
|
|
|
|
import { deleteAction } from '@/api/manage' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: "billTitle", |
|
|
|
|
components: { }, |
|
|
|
@ -132,7 +153,7 @@ |
|
|
|
|
/*billTitle:[ |
|
|
|
|
{ |
|
|
|
|
id:1, |
|
|
|
|
type:'1',//发票类型1为专用2为普通 |
|
|
|
|
type:'1',//发票类型1为专用增值税发票2为普通增值税发票 |
|
|
|
|
name:'易创网络科技有限公司', |
|
|
|
|
flag:true,//是否默认抬头 |
|
|
|
|
dutyNum:'6974980492840298590',//税号 |
|
|
|
@ -193,13 +214,16 @@ |
|
|
|
|
addr1:'210521', |
|
|
|
|
//弹窗数据 |
|
|
|
|
form: { |
|
|
|
|
customerType:'1',//客户类型 |
|
|
|
|
id:'', |
|
|
|
|
type: undefined, |
|
|
|
|
invoiceType: undefined, |
|
|
|
|
name: '', |
|
|
|
|
addr: '', |
|
|
|
|
dutyNum: '', |
|
|
|
|
accountNumber: '', |
|
|
|
|
account: '', |
|
|
|
|
phone: '', |
|
|
|
|
telephone: '', |
|
|
|
|
address:'', |
|
|
|
|
card:'', |
|
|
|
|
flag:false//是否默认地址 |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -238,7 +262,7 @@ |
|
|
|
|
if(res.success) { |
|
|
|
|
this.billTitle = res.result; |
|
|
|
|
console.log(res.result) |
|
|
|
|
this.visible = true; |
|
|
|
|
// this.visible = true; |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -319,13 +343,14 @@ |
|
|
|
|
this.visible = true |
|
|
|
|
this.flag = 'edit' |
|
|
|
|
this.form = item |
|
|
|
|
console.log(this.form.customerType) |
|
|
|
|
}, |
|
|
|
|
confirm2(id) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getAction(this.url.szfpmr,{id,id}).then((res) => { |
|
|
|
|
if(res.success) { |
|
|
|
|
this.loadData(1); |
|
|
|
|
// this.loadData(1); |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|