2
3
فهرست منبع

前端:统一社会信用代码唯一性检查区分注册和准入

baichengfei 4 سال پیش
والد
کامیت
d4aa85e67b

+ 6 - 0
src/dashoo.cn/frontend_web/src/api/oilsupplier/supplier.js

@@ -221,6 +221,12 @@ export default {
       method: 'GET'
     })
   },
+  checkCommercialApply (commercialNo, supId, myAxios) {
+    return myAxios({
+      url: 'register/checkCommercialApply?commercialNo=' + commercialNo + '&supId=' + supId,
+      method: 'GET'
+    })
+  },
   checkBack (bankAccount, supId, myAxios) {
     return myAxios({
       url: '/supplier/getBankAccount?bankAccount=' + bankAccount + '&supId=' + supId,

+ 5 - 5
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/basisedit.vue

@@ -1548,11 +1548,11 @@ export default {
           }
           // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
           this.formData.RegCapital = parseFloat(this.formData.RegCapital)
-          let isCompanyUser = ''
-          if (this.authUser.Profile.IsCompanyUser === 1) {
-            isCompanyUser = '1'
-          }
-          api.signupCommercialNo(this.formData.CommercialNo, this.formData.Id, isCompanyUser, this.$axios).then(res => {
+          // let isCompanyUser = ''
+          // if (this.authUser.Profile.IsCompanyUser === 1) {
+          //   isCompanyUser = '1'
+          // }
+          api.checkCommercialApply(this.formData.CommercialNo, this.formData.Id, this.$axios).then(res => {
             if (res.data.item) {
               this.$message({
                 duration: 10000,

+ 5 - 5
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/goodsedit.vue

@@ -1686,11 +1686,11 @@ export default {
           }
           // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
           this.formData.RegCapital = parseFloat(this.formData.RegCapital)
-          let isCompanyUser = ''
-          if (this.authUser.Profile.IsCompanyUser === 1) {
-            isCompanyUser = '1'
-          }
-          api.signupCommercialNo(this.formData.CommercialNo, this.formData.Id, isCompanyUser, this.$axios).then(res => {
+          // let isCompanyUser = ''
+          // if (this.authUser.Profile.IsCompanyUser === 1) {
+          //   isCompanyUser = '1'
+          // }
+          api.checkCommercialApply(this.formData.CommercialNo, this.formData.Id, this.$axios).then(res => {
             if (res.data.item) {
               this.$message({
                 duration: 10000,

+ 5 - 5
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/techedit.vue

@@ -1570,11 +1570,11 @@ export default {
           }
           // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
           this.formData.RegCapital = parseFloat(this.formData.RegCapital)
-          let isCompanyUser = ''
-          if (this.authUser.Profile.IsCompanyUser === 1) {
-            isCompanyUser = '1'
-          }
-          api.signupCommercialNo(this.formData.CommercialNo, this.formData.Id, isCompanyUser, this.$axios).then(res => {
+          // let isCompanyUser = ''
+          // if (this.authUser.Profile.IsCompanyUser === 1) {
+          //   isCompanyUser = '1'
+          // }
+          api.checkCommercialApply(this.formData.CommercialNo, this.formData.Id, this.$axios).then(res => {
             console.log(res, 'Item')
             if (res.data.item) {
               this.$message({