|
|
@ -21,8 +21,8 @@ |
|
|
<van-field |
|
|
<van-field |
|
|
v-model="submitData.enterpriseNumber" |
|
|
v-model="submitData.enterpriseNumber" |
|
|
required |
|
|
required |
|
|
label="税号" |
|
|
label="统一社会信用代码" |
|
|
placeholder="必填 纳税人识别号" |
|
|
placeholder="必填 统一社会信用代码" |
|
|
/> |
|
|
/> |
|
|
<van-field |
|
|
<van-field |
|
|
v-model="submitData.enterpriseTypeText" |
|
|
v-model="submitData.enterpriseTypeText" |
|
|
@ -113,8 +113,7 @@ import { showSuccessToast } from 'vant'; |
|
|
import {addEnterpriseInformation} from '../../api/enterprise' |
|
|
import {addEnterpriseInformation} from '../../api/enterprise' |
|
|
import {getDict} from '../../api/Home' |
|
|
import {getDict} from '../../api/Home' |
|
|
import { reactive, ref } from "vue"; |
|
|
import { reactive, ref } from "vue"; |
|
|
const { useMy } = $globalStore |
|
|
const { useMy,useCommon } = $globalStore |
|
|
|
|
|
|
|
|
const router = useRouter(); |
|
|
const router = useRouter(); |
|
|
const route = useRoute(); |
|
|
const route = useRoute(); |
|
|
let queryaddressId = ref(""); |
|
|
let queryaddressId = ref(""); |
|
|
@ -162,7 +161,7 @@ const goBack = () => { |
|
|
|
|
|
|
|
|
const submit = () =>{ |
|
|
const submit = () =>{ |
|
|
// console.log(submitData); |
|
|
// console.log(submitData); |
|
|
showSuccessToast('登记成功'); |
|
|
|
|
|
addEnterpriseInformation(submitData,success =>{ |
|
|
addEnterpriseInformation(submitData,success =>{ |
|
|
//重新设置本地存储 |
|
|
//重新设置本地存储 |
|
|
useCommon.SET_USER_ENTERPRISE_NUMBER(submitData.enterpriseNumber); |
|
|
useCommon.SET_USER_ENTERPRISE_NUMBER(submitData.enterpriseNumber); |
|
|
@ -170,6 +169,7 @@ const submit = () =>{ |
|
|
//跳转企业二维码地址 |
|
|
//跳转企业二维码地址 |
|
|
if(success.success){ |
|
|
if(success.success){ |
|
|
console.log("登记成功"); |
|
|
console.log("登记成功"); |
|
|
|
|
|
showSuccessToast('登记成功'); |
|
|
router.push( |
|
|
router.push( |
|
|
{ |
|
|
{ |
|
|
path: "/enterprise/qrCode", |
|
|
path: "/enterprise/qrCode", |
|
|
|