|
@@ -26,11 +26,11 @@
|
|
|
<view class="invoice-main from" v-if="invoiceType == '2'">
|
|
|
<view class="invoice-from">
|
|
|
<view class="label">单位名称:</view>
|
|
|
- <input class="form-input" type="text" v-model="invoiceData.invoiceTitle" placeholder="请填写单位信息(必填)" maxlength="20">
|
|
|
+ <input class="form-input" type="text" v-model="invoiceData.invoiceTitle" placeholder="请填写单位信息(必填)" maxlength="24">
|
|
|
</view>
|
|
|
<view class="invoice-from">
|
|
|
<view class="label">纳税人识别号:</view>
|
|
|
- <input class="form-input" type="text" v-model="invoiceData.corporationTaxNum" placeholder="请填写纳税人识别号(必填)" maxlength="20">
|
|
|
+ <input class="form-input" type="text" v-model="invoiceData.corporationTaxNum" placeholder="请填写纳税人识别号(必填)" maxlength="24">
|
|
|
</view>
|
|
|
<view class="invoice-from">
|
|
|
<view class="label">注册地址:</view>
|
|
@@ -42,7 +42,7 @@
|
|
|
</view>
|
|
|
<view class="invoice-from">
|
|
|
<view class="label">开户银行:</view>
|
|
|
- <input class="form-input" type="text" v-model="invoiceData.openBank" placeholder="请填写开户银行(必填)" maxlength="10">
|
|
|
+ <input class="form-input" type="text" v-model="invoiceData.openBank" placeholder="请填写开户银行(必填)" maxlength="30">
|
|
|
</view>
|
|
|
<view class="invoice-from">
|
|
|
<view class="label">银行账号:</view>
|
|
@@ -50,7 +50,7 @@
|
|
|
type="text"
|
|
|
v-model="invoiceData.bankAccountNo"
|
|
|
placeholder="请填写银行账号(必填)"
|
|
|
- maxlength="19">
|
|
|
+ maxlength="30">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="invoice-main" v-if="invoiceType == '3'">
|
|
@@ -96,7 +96,7 @@
|
|
|
|
|
|
<script>
|
|
|
export default{
|
|
|
- name:"invoice",
|
|
|
+ name:'invoice',
|
|
|
data() {
|
|
|
return{
|
|
|
invoiceText:'不要发票',
|
|
@@ -158,7 +158,7 @@
|
|
|
case '1':
|
|
|
this.choiceaInvoiceThree()
|
|
|
this.invoiceText = '不要发票'
|
|
|
- break;
|
|
|
+ break
|
|
|
// case '2':
|
|
|
// this.choiceaInvoiceTwo()
|
|
|
// this.invoiceText = this.peopleInvoiceData.invoiceTitle
|
|
@@ -166,34 +166,34 @@
|
|
|
case '2':
|
|
|
this.choiceaInvoiceFirst()
|
|
|
this.invoiceText = this.invoiceData.invoiceTitle
|
|
|
- break;
|
|
|
+ break
|
|
|
default:
|
|
|
this.choiceaInvoiceThree()
|
|
|
this.invoiceText = '不要发票'
|
|
|
}
|
|
|
},
|
|
|
choiceaInvoiceFirst(){//增值税发票
|
|
|
- if(this.invoiceData.invoiceTitle == ""){
|
|
|
+ if(this.invoiceData.invoiceTitle == ''){
|
|
|
this.$util.msg('请输入单位名称',2000)
|
|
|
return
|
|
|
}
|
|
|
- if(this.invoiceData.corporationTaxNum == ""){
|
|
|
+ if(this.invoiceData.corporationTaxNum == ''){
|
|
|
this.$util.msg('请输入纳税人识别号',2000)
|
|
|
return
|
|
|
}
|
|
|
- if(this.invoiceData.registeredAddress == ""){
|
|
|
+ if(this.invoiceData.registeredAddress == ''){
|
|
|
this.$util.msg('请输入单位地址',2000)
|
|
|
return
|
|
|
}
|
|
|
- if(this.invoiceData.registeredPhone == ""){
|
|
|
+ if(this.invoiceData.registeredPhone == ''){
|
|
|
this.$util.msg('请输入注册电话',2000)
|
|
|
return
|
|
|
}
|
|
|
- if(this.invoiceData.openBank == ""){
|
|
|
+ if(this.invoiceData.openBank == ''){
|
|
|
this.$util.msg('请输入开户银行',2000)
|
|
|
return
|
|
|
}
|
|
|
- if(this.invoiceData.bankAccountNo == ""){
|
|
|
+ if(this.invoiceData.bankAccountNo == ''){
|
|
|
this.$util.msg('请输入银行账号',2000)
|
|
|
return
|
|
|
}
|
|
@@ -208,25 +208,25 @@
|
|
|
this.$util.msg('请选择商品明细',2000)
|
|
|
return
|
|
|
}
|
|
|
- if(this.peopleInvoiceData.invoiceTitle == ""){
|
|
|
+ if(this.peopleInvoiceData.invoiceTitle == ''){
|
|
|
this.$util.msg('请输入个人抬头',2000)
|
|
|
return
|
|
|
}
|
|
|
- break;
|
|
|
+ break
|
|
|
case '1':
|
|
|
if(this.peopleInvoiceData.invoiceContent == ''){
|
|
|
this.$util.msg('请选择商品明细',2000)
|
|
|
return
|
|
|
}
|
|
|
- if(this.peopleInvoiceData.invoiceTitle == ""){
|
|
|
+ if(this.peopleInvoiceData.invoiceTitle == ''){
|
|
|
this.$util.msg('请输入公司抬头',2000)
|
|
|
return
|
|
|
}
|
|
|
- if(this.peopleInvoiceData.corporationTaxNum == ""){
|
|
|
+ if(this.peopleInvoiceData.corporationTaxNum == ''){
|
|
|
this.$util.msg('请输入纳税人识别号',2000)
|
|
|
return
|
|
|
}
|
|
|
- break;
|
|
|
+ break
|
|
|
}
|
|
|
this.$emit('handleChoiceaInvoice',Object.assign(this.peopleInvoiceData,'',{type:1}))
|
|
|
this.hideSpec()
|
|
@@ -237,26 +237,26 @@
|
|
|
this.hideSpec()
|
|
|
},
|
|
|
hideSpec() {//关闭弹窗
|
|
|
- this.specClass = 'hide';
|
|
|
+ this.specClass = 'hide'
|
|
|
setTimeout(() => {
|
|
|
- this.specClass = 'none';
|
|
|
- }, 200);
|
|
|
+ this.specClass = 'none'
|
|
|
+ }, 200)
|
|
|
},
|
|
|
hanldOperationConfim(){//显示发票弹窗
|
|
|
- this.specClass = 'show';
|
|
|
+ this.specClass = 'show'
|
|
|
},
|
|
|
radioChange(e) {
|
|
|
- this.invoiceType = e.target.value;
|
|
|
+ this.invoiceType = e.target.value
|
|
|
for (let i = 0; i < this.invoiceTypeList.length; i++) {
|
|
|
if (this.invoiceTypeList[i].value === this.invoiceType) {
|
|
|
- this.current = i;
|
|
|
- break;
|
|
|
+ this.current = i
|
|
|
+ break
|
|
|
}
|
|
|
}
|
|
|
switch(this.invoiceType){
|
|
|
case '2':
|
|
|
this.getUseFindInvoice()
|
|
|
- break;
|
|
|
+ break
|
|
|
//取消普通发票.(可删除)
|
|
|
// case '3':
|
|
|
// this.peopleInvoiceData.invoiceTitleType = "0"
|
|
@@ -265,19 +265,19 @@
|
|
|
}
|
|
|
},
|
|
|
radioChangeTitle(e) {
|
|
|
- this.peopleInvoiceData.invoiceTitleType = e.target.value;
|
|
|
+ this.peopleInvoiceData.invoiceTitleType = e.target.value
|
|
|
for (let i = 0; i < this.invoiceTitleList.length; i++) {
|
|
|
if (this.invoiceTitleList[i].value === this.peopleInvoiceData.invoiceTitleType) {
|
|
|
- this.titleCurrent = i;
|
|
|
- break;
|
|
|
+ this.titleCurrent = i
|
|
|
+ break
|
|
|
}
|
|
|
}
|
|
|
switch(this.peopleInvoiceData.invoiceTitleType){
|
|
|
case '1':
|
|
|
this.inventoryChecked = false
|
|
|
- this.peopleInvoiceData.invoiceTitle = ""
|
|
|
- this.peopleInvoiceData.invoiceContent = ""
|
|
|
- break;
|
|
|
+ this.peopleInvoiceData.invoiceTitle = ''
|
|
|
+ this.peopleInvoiceData.invoiceContent = ''
|
|
|
+ break
|
|
|
}
|
|
|
},
|
|
|
checkboxChange(e){
|
|
@@ -286,7 +286,7 @@
|
|
|
},
|
|
|
inputBankNum(val) {
|
|
|
if (/\S{5}/.test(val)) {
|
|
|
- this.invoiceData.bankAccountNo = val.replace(/\s/g, '').replace(/(.{4})/g, "$1 ");
|
|
|
+ this.invoiceData.bankAccountNo = val.replace(/\s/g, '').replace(/(.{4})/g, '$1 ')
|
|
|
}
|
|
|
},
|
|
|
discard(){
|