|
@@ -603,6 +603,36 @@ export default {
|
|
|
},
|
|
|
// 确定开票
|
|
|
handleSureInvoice() {
|
|
|
+ if (!this.invoiceForm.buyer_info_mc) {
|
|
|
+ this.$message.warning("请输入抬头名称");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.invoiceForm.invoice_object === 0) {
|
|
|
+ if (!this.invoiceForm.buyer_info_sfzh) {
|
|
|
+ this.$message.warning("请输入身份证号");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (!this.invoiceForm.buyer_info_sh) {
|
|
|
+ this.$message.warning("请输入单位税号");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.invoiceForm.invoice_type === 1) {
|
|
|
+ if (!this.invoiceForm.buyer_info_dz) {
|
|
|
+ this.$message.warning("请输入注册地址");
|
|
|
+ return;
|
|
|
+ } else if (!this.invoiceForm.buyer_info_dh) {
|
|
|
+ this.$message.warning("请输入注册电话");
|
|
|
+ return;
|
|
|
+ } else if (!this.invoiceForm.buyer_info_khh) {
|
|
|
+ this.$message.warning("请输入开户银行");
|
|
|
+ return;
|
|
|
+ } else if (!this.invoiceForm.buyer_info_zh) {
|
|
|
+ this.$message.warning("请输入银行账号");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
let MethodName = "/ShopServer/Client/OrderManager/SubmitInvoiceApply";
|
|
|
|
|
|
let data = {
|