Kaynağa Gözat

commit 地址信息

xkwg 4 yıl önce
ebeveyn
işleme
aa86c39ba1

+ 4 - 2
src/views/information/warehouse-info/compoments/detail/index.vue

@@ -55,7 +55,7 @@
       <a-row :gutter="24">
         <a-col :span="12">
           <a-form-item label="所在地区">
-            <span class="white">{{ formatValue(selectedRow.address) }}</span>
+            <span class="white">{{ getAddressInfo(selectedRow.provinceid, selectedRow.cityid, selectedRow.districtid) }}</span>
           </a-form-item>
         </a-col>
         <a-col :span="12">
@@ -73,8 +73,9 @@ import { defineComponent, PropType, ref } from 'vue';
 import { closeModal } from '@/common/setup/modal/index';
 import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
 import { ErmcpWareHouseInfo } from '@/services/go/ermcp/warehouse-info/interface';
-import { gerWareHouseStatusName, getWareHouseTypeName } from '@/views/information/warehouse-info/setup';
+import {gerWareHouseStatusName, getAddressInfo, getWareHouseTypeName} from '@/views/information/warehouse-info/setup';
 import { formatValue } from '@/common/methods';
+import {getAddress} from "@/services/go/adress";
 
 export default defineComponent({
     name: 'warehouse_info_btn-detail',
@@ -101,6 +102,7 @@ export default defineComponent({
             getWareHouseTypeName,
             formatValue,
             maskClosableFlag,
+            getAddressInfo
         };
     },
 });

+ 11 - 0
src/views/information/warehouse-info/setup.ts

@@ -1,4 +1,5 @@
 import { ResultInfo } from "@/common/methods/request";
+import {getAddress} from "@/services/go/adress";
 
 /**
  * 仓库状态名称 - 1:正常 2:注销 3:待审核 4:审核拒绝
@@ -43,6 +44,16 @@ export function getWareHouseTypeName(type: number): string {
     return result
 }
 
+/**
+ * 获取地址信息
+ */
+export function getAddressInfo(provinceId: number, cityId: number, districId: number): string{
+   const {getProvinceName, getCityName, getDistrictName} = getAddress();
+   debugger
+   return getProvinceName(provinceId) + getCityName(cityId) + getDistrictName(districId);
+}
+
+
 /************** 接口相关提示 **************** /
  *
  */