zhou.xiaoning 4 年之前
父節點
當前提交
c23e3663e5

+ 1 - 2
src/goServiceAPI/ermcp/warehouse-info/interface.ts

@@ -18,8 +18,7 @@ export interface ErmcpWareHouseInfo{
     countryid	:number;//国家
     createtime	:string;//创建时间
     districtid	:number;//区
-    hasvideo	:number;//是否有视频 - number;
-//:无 1:有
+    hasvideo	:number;//是否有视频 - number; //:无 1:有
     provinceid	:number;//省
     remark	:string;//审核备注
     videourl	:string;//视频地址

+ 1 - 0
src/services/bus/table.ts

@@ -4,6 +4,7 @@ import APP from '@/services';
 interface TableKey {
     table_pcweb_delivery: string; // 现货合同
     table_pcweb_userinfo: string; // 客户资料
+    table_pcweb_warehouse: string; // 仓库信息
 }
 
 /**

+ 13 - 11
src/views/information/warehouse-info/list/normal-use/index.vue

@@ -7,9 +7,10 @@
       <a-button>重置</a-button>
       <a-button>新增</a-button>
     </div>
-    <!-- <a-table :columns="columns"
-             :data-source="data"
-             @change="handleChange" /> -->
+    <a-table :columns="columns"
+             :pagination="false"
+             rowKey="key"
+             :data-source="wareHouseInfoList" />
   </div>
 </template>
 
@@ -17,12 +18,12 @@
 import { computed, defineComponent, ref } from 'vue';
 
 import { initData } from '@/setup/methods/index';
-import { QueryCustomInfo } from '@/goServiceAPI/ermcp/customInfo/index';
-import { QueryCustomInfoType } from '@/goServiceAPI/ermcp/customInfo/interface';
+import { QueryWareHouse } from '@/goServiceAPI/ermcp/warehouse-info/index';
+import { ErmcpWareHouseInfo } from '@/goServiceAPI/ermcp/warehouse-info/interface';
 import { message } from 'ant-design-vue';
 
 // 查询客户资料列表
-function getCustomList() {
+function getWarehouseInfoList() {
     // const filteredInfo = ref();
     // const sortedInfo = ref();
     // const columns = computed(() => {
@@ -60,28 +61,29 @@ function getCustomList() {
     //         },
     //     ];
     // });
-    const customList = ref<QueryCustomInfoType[]>([]);
+    const wareHouseInfoList = ref<ErmcpWareHouseInfo[]>([]);
     function actionQuery() {
-        QueryCustomInfo(3)
+        const reqParam = { userid: 0,  status: "1"};
+        QueryWareHouse(reqParam)
             .then((res) => {
                 console.log('L', res);
             })
             .catch((err) => message.error(err));
     }
 
-    return { customList, actionQuery };
+    return { wareHouseInfoList, actionQuery };
 }
 
 export default defineComponent({
     name: 'warehouse-info-normal',
     components: {},
     setup() {
-        const { customList, actionQuery } = getCustomList();
+        const { wareHouseInfoList, actionQuery } = getWarehouseInfoList();
         initData(() => {
             actionQuery();
             // 加载数据在这里
         });
-        return { customList };
+        return { wareHouseInfoList };
     },
 });
 </script>