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