开票
This commit is contained in:
@@ -70,6 +70,11 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="Box_box flex-between">
|
||||
<view>统一社会信用代码</view>
|
||||
<view class="Box_box_input"><input type="text" :disabled='disabled' v-model="form.creditCode"
|
||||
placeholder="请填写统一社会信用代码" data-key="mobile" /></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="Box_box_T">
|
||||
<view class="Box_box_T_o">请上传法人身份证图片</view>
|
||||
@@ -148,6 +153,7 @@
|
||||
dlzh: '',
|
||||
dlmm: '',
|
||||
code: '',
|
||||
creditCode:''
|
||||
}
|
||||
};
|
||||
},
|
||||
@@ -180,6 +186,7 @@
|
||||
this.form.taxphone = data.taxphone
|
||||
this.form.dlsf_name = data.dlsf_name
|
||||
this.form.dlsf = data.dlsf
|
||||
this.form.creditCode = data.creditCode
|
||||
}
|
||||
|
||||
},
|
||||
@@ -279,6 +286,13 @@
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (this.form.creditCode == null || this.form.creditCode == '') {
|
||||
uni.showToast({
|
||||
title: '请填写统一社会信用代码',
|
||||
icon: 'none'
|
||||
});
|
||||
return false;
|
||||
}
|
||||
let res = await this.api.invoicerregistrationszzpy(this.form)
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
@@ -416,6 +430,8 @@
|
||||
this.$set(this.form,
|
||||
'business_license', thisdata_
|
||||
.data[0])
|
||||
this.storerecog() //营业执照图片
|
||||
|
||||
}
|
||||
console.log(this.form)
|
||||
}
|
||||
@@ -434,6 +450,14 @@
|
||||
}
|
||||
|
||||
},
|
||||
async storerecog() {
|
||||
let res = await this.api.storerecog({
|
||||
store_id: uni.getStorageSync('userId'),
|
||||
business_license: this.form.business_license
|
||||
})
|
||||
console.log(res)
|
||||
this.form.creditCode = res.data.creditCode
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user