|
|
@@ -51,14 +51,15 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, initData, getTableColumns, getTableEvent, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
|
|
|
+import { defineComponent, initData, getTableColumns, getTableEvent, contextMenu, BtnList, _getBtnList, queryTableList } from '@/common/export/table';
|
|
|
import Filter from '../../compoments/filter/index.vue';
|
|
|
-import { queryTableList, handleTableList } from './setup';
|
|
|
+import { handleTableList } from './setup';
|
|
|
import ControlModal from './compoments/controlModal/index.vue';
|
|
|
import { QhjTradeGoodsPickup } from '@/services/go/ermcp/qhj/interface';
|
|
|
import { getPickUpStateName, getTakeStateName } from '@/common/constants/enumsName';
|
|
|
import { TableEventCB, BtnList as BtnListType } from '@/common/setup/table/interface';
|
|
|
import { ref } from 'vue';
|
|
|
+import { queryTradeGoodsPickup } from '@/services/go/ermcp/qhj';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'platinum_pick_query_tab',
|
|
|
@@ -78,13 +79,20 @@ export default defineComponent({
|
|
|
const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<QhjTradeGoodsPickup>(event);
|
|
|
|
|
|
// 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList();
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<QhjTradeGoodsPickup>();
|
|
|
+
|
|
|
// 1:备货中 完成备货
|
|
|
// 2:待取货(自提) 确认取货
|
|
|
// 4:待收货(邮寄) 上传物流信息、确认收货
|
|
|
initData(() => {
|
|
|
// 获取列表数据
|
|
|
- queryTable();
|
|
|
+ queryTable(queryTradeGoodsPickup).then((res) => {
|
|
|
+ tableList.value = res.map((el) => {
|
|
|
+ console.log(el.takeorderid);
|
|
|
+
|
|
|
+ return { ...el, key: String(el.takeorderid) };
|
|
|
+ });
|
|
|
+ });
|
|
|
// 注册表头信息 过滤
|
|
|
registerColumn('table_pcweb_qhj_pickup_query', ['reqtime', 'pickupgoodsname', 'takeorderstatus', 'goodsname']);
|
|
|
});
|