瀏覽代碼

地区修改

lilei 2 年之前
父節點
當前提交
5882e943ae
共有 3 個文件被更改,包括 15 次插入4 次删除
  1. 1 1
      public/version.json
  2. 11 0
      src/api/data.js
  3. 3 3
      src/views/numsGoodsShelves/approveStore/authPass.vue

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
 {
   "message": "发现有新版本发布,确定更新系统?",
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
   "vendorJsVersion": "",
-  "version": 1658886310226
+  "version": 1658903367909
 }
 }

+ 11 - 0
src/api/data.js

@@ -115,6 +115,17 @@ export const getArea = (params) => {
   }
   }
 }
 }
 
 
+// 获取省市区,兼容小程序数据
+export const getAreaCgj = (params) => {
+  if(params.type == '2' || params.parentId){
+    return axios({
+      url: `/areaCgj/queryList`,
+      data: params,
+      method: 'post'
+    })
+  }
+}
+
 // 首页 导航指引合计
 // 首页 导航指引合计
 export const bizStateCount = (params) => {
 export const bizStateCount = (params) => {
   return axios({
   return axios({

+ 3 - 3
src/views/numsGoodsShelves/approveStore/authPass.vue

@@ -142,7 +142,7 @@
 <script>
 <script>
 import { commonMixin } from '@/utils/mixin'
 import { commonMixin } from '@/utils/mixin'
 import { STable, VSelect, Upload } from '@/components'
 import { STable, VSelect, Upload } from '@/components'
-import { getArea } from '@/api/data'
+import { getAreaCgj } from '@/api/data'
 import custList from '@/views/common/custList.vue'
 import custList from '@/views/common/custList.vue'
 import { xprhStoreApplyDetail, xprhStoreApplyAudit } from '@/api/approveStore'
 import { xprhStoreApplyDetail, xprhStoreApplyAudit } from '@/api/approveStore'
 export default {
 export default {
@@ -219,7 +219,7 @@ export default {
       xprhStoreApplyDetail({ sn: this.$route.params.sn }).then(res => {
       xprhStoreApplyDetail({ sn: this.$route.params.sn }).then(res => {
         if (res.status == 200) {
         if (res.status == 200) {
           if (res.data.addrProvince) { this.getArea('city', res.data.addrProvince) }
           if (res.data.addrProvince) { this.getArea('city', res.data.addrProvince) }
-          if (res.data.addrDistrict) { this.getArea('district', res.data.addrDistrict) }
+          if (res.data.addrDistrict) { this.getArea('district', res.data.addrCity) }
           this.form = Object.assign(this.form, res.data)
           this.form = Object.assign(this.form, res.data)
           this.$refs.storeImage.setFileList(res.data.storeImage)
           this.$refs.storeImage.setFileList(res.data.storeImage)
           this.$refs.licenseImage.setFileList(res.data.licenseImage)
           this.$refs.licenseImage.setFileList(res.data.licenseImage)
@@ -305,7 +305,7 @@ export default {
       } else {
       } else {
         params = { parentId: sn, type: leve == 'city' ? '3' : '4' }
         params = { parentId: sn, type: leve == 'city' ? '3' : '4' }
       }
       }
-      getArea(params).then(res => {
+      getAreaCgj(params).then(res => {
         if (res.status == 200) {
         if (res.status == 200) {
           if (leve == 'province') {
           if (leve == 'province') {
             this.addrProvinceList = res.data || []
             this.addrProvinceList = res.data || []