|
|
@@ -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>
|