|
|
@@ -1,83 +1,89 @@
|
|
|
<template>
|
|
|
- <!-- 采购: 历史敞口-->
|
|
|
- <div class="purchase-history">
|
|
|
- 采购:历史敞口
|
|
|
- </div>
|
|
|
+ <!-- 销售: 履约交收-->
|
|
|
+ <div class="sell_performance"
|
|
|
+ :loading="loading">
|
|
|
+ <filterCustomTable @search="search">
|
|
|
+ <a-button class="operBtn"
|
|
|
+ v-for="item in commonBtn"
|
|
|
+ :key="item.lable"
|
|
|
+ @click="item.callback">{{item.lable}}</a-button>
|
|
|
+ </filterCustomTable>
|
|
|
+ <contextMenu :contextMenuList="forDataBtn"
|
|
|
+ :tableList="tableList">
|
|
|
+ <a-table :columns="columns"
|
|
|
+ class="topTable"
|
|
|
+ :pagination="false"
|
|
|
+ rowKey="key"
|
|
|
+ :data-source="tableList">
|
|
|
+ <!-- <template #warehousetype="{ text }">
|
|
|
+ <span>{{ getWareHouseType(text) }}</span>
|
|
|
+ </template>
|
|
|
+ <template #warehousestatus="{ text }">
|
|
|
+ <span>{{ getWareHouseStatus(text) }}</span>
|
|
|
+ </template> -->
|
|
|
+ </a-table>
|
|
|
+ </contextMenu>
|
|
|
+ <!-- 详情 -->
|
|
|
+ <Detail />
|
|
|
+ <!-- 交收登记 -->
|
|
|
+ <Settlement />
|
|
|
+ <!-- 款项登记 -->
|
|
|
+ <Funds />
|
|
|
+ <!-- 发票登记 -->
|
|
|
+ <Invoice />
|
|
|
+ <!-- 出库登记 -->
|
|
|
+ <Storage />
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
- import { defineComponent, ref } from 'vue';
|
|
|
- import { QueryCustomInfo } from '@/services/go/ermcp/customInfo/index';
|
|
|
- import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
|
|
|
- import { message } from 'ant-design-vue';
|
|
|
- import { initData } from '@/common/methods';
|
|
|
+import { defineComponent } from 'vue';
|
|
|
+import { initData } from '@/common/methods';
|
|
|
+import filterCustomTable from '../../components/filterTable/index.vue';
|
|
|
+import { getTableList } from '../setup';
|
|
|
+import { getBtnList } from '@/common/setup/contextMenu/index';
|
|
|
+import contextMenu from '@/common/components/contextMenu/index.vue';
|
|
|
+import Detail from '../../components/detail/index.vue';
|
|
|
+import Settlement from '../../components/settlement/index.vue';
|
|
|
+import Funds from '../../components/funds/index.vue';
|
|
|
+import Invoice from '../../components/invoice/index.vue';
|
|
|
+import Storage from '../../components/storage/index.vue';
|
|
|
|
|
|
- // 查询客户资料列表
|
|
|
- function getCustomList() {
|
|
|
- // const filteredInfo = ref();
|
|
|
- // const sortedInfo = ref();
|
|
|
- // const columns = computed(() => {
|
|
|
- // const filtered = filteredInfo.value || {};
|
|
|
- // const sorted = sortedInfo.value || {};
|
|
|
- // return [
|
|
|
- // {
|
|
|
- // title: '序号',
|
|
|
- // dataIndex: 'index',
|
|
|
- // key: 'index',
|
|
|
- // align: 'center',
|
|
|
- // width: 50,
|
|
|
- // customRender: (param: any) => `${param.index + 1}`,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: 'Age',
|
|
|
- // dataIndex: 'age',
|
|
|
- // key: 'age',
|
|
|
- // sorter: (a: DataItem, b: DataItem) => a.age - b.age,
|
|
|
- // sortOrder: sorted.columnKey === 'age' && sorted.order,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: 'Address',
|
|
|
- // dataIndex: 'address',
|
|
|
- // key: 'address',
|
|
|
- // filters: [
|
|
|
- // { text: 'London', value: 'London' },
|
|
|
- // { text: 'New York', value: 'New York' },
|
|
|
- // ],
|
|
|
- // filteredValue: filtered.address || null,
|
|
|
- // onFilter: (value: string, record: DataItem) => record.address.includes(value),
|
|
|
- // sorter: (a: DataItem, b: DataItem) => a.address.length - b.address.length,
|
|
|
- // sortOrder: sorted.columnKey === 'address' && sorted.order,
|
|
|
- // ellipsis: true,
|
|
|
- // },
|
|
|
- // ];
|
|
|
- // });
|
|
|
- const customList = ref<QueryCustomInfoType[]>([]);
|
|
|
- function actionQuery() {
|
|
|
- QueryCustomInfo(4)
|
|
|
- .then((res) => {
|
|
|
- console.log('L', res);
|
|
|
- })
|
|
|
- .catch((err) => message.error(err));
|
|
|
- }
|
|
|
+export default defineComponent({
|
|
|
+ name: 'sell_performance',
|
|
|
+ components: {
|
|
|
+ contextMenu,
|
|
|
+ filterCustomTable,
|
|
|
+ Detail,
|
|
|
+ Settlement,
|
|
|
+ Funds,
|
|
|
+ Invoice,
|
|
|
+ Storage,
|
|
|
+ },
|
|
|
+ setup() {
|
|
|
+ const { tableList, actionQuery, columns, filteredInfo, getColumns, search, loading } = getTableList('table_pcweb_sell');
|
|
|
+ const { commonBtn, forDataBtn } = getBtnList('sell_performance');
|
|
|
|
|
|
- return { customList, actionQuery };
|
|
|
- }
|
|
|
+ initData(() => {
|
|
|
+ actionQuery(3);
|
|
|
+ getColumns();
|
|
|
+ });
|
|
|
|
|
|
- export default defineComponent({
|
|
|
- name: 'purchase-history',
|
|
|
- components: {},
|
|
|
- setup() {
|
|
|
- const { customList, actionQuery } = getCustomList();
|
|
|
- initData(() => {
|
|
|
- actionQuery();
|
|
|
- // 加载数据在这里
|
|
|
- });
|
|
|
- return { customList };
|
|
|
- },
|
|
|
- });
|
|
|
+ return {
|
|
|
+ tableList,
|
|
|
+ filteredInfo,
|
|
|
+ columns,
|
|
|
+ search,
|
|
|
+ loading,
|
|
|
+ commonBtn,
|
|
|
+ forDataBtn,
|
|
|
+ };
|
|
|
+ },
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|
|
|
- .purchase-history {
|
|
|
- }</style
|
|
|
+.sell_performance {
|
|
|
+}
|
|
|
+</style
|
|
|
>;
|