| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <div>
- <listTemp ref="list" :columns="columns" :param="param" :tableName="'dispatchMxTable'" :searchType="searchType">
- <template #operation>
- 发退货明细
- <table-export :param="param"></table-export>
- </template>
-
- <template #tb_cell="{data}">
- <template v-if="data.column.dataIndex === 'price'">
- <span>{{utils.formatAmount(data.record.price)}}</span>
- </template>
- <template v-if="data.column.dataIndex === 'amount'">
- <span>{{utils.formatAmount(data.record.amount)}}</span>
- </template>
- <template v-if="data.column.dataIndex === 'billno'">
- <router-link v-if="data.record.type == '发货'" :to="{path:'/dispatchdetail_agent',query:{id:data.record.id}}">{{data.record.billno}}</router-link>
- <router-link v-else :to="{path:'/aftersalesBillDetail',query:{id:data.record.id}}">{{data.record.billno}}</router-link>
- </template>
- </template>
- </listTemp>
- </div>
- </template>
- <script setup>
- import utils from '@/utils/utils'
- import Api from '@/api/api'
- import listTemp from '@/components/listTemplate/index.vue';
- import tableExport from '@/components/tableExport/index.vue'
- import { ref } from 'vue'
- import { useRouter } from "vue-router";
- import { onMounted } from "vue";
- const router = useRouter()
- const list = ref()
- let columns = ref([])
- let dataSource = ref([])
- let searchType = ref([
- {label:'类型',key:'type',type:'select',dataSource:[{remarks:'发货',value:'发货'},{remarks:'退货',value:'退货'}]},
- {label:'出库时间',key:'dateRange',type:'datepickerRange',objKeys:['begindate','enddate']},
- {label:'搜索',key:'condition',type:'input'},
- ])
- let param = ref({
- "content": {
- "pageNumber": 1,
- "pageSize": 20,
- "where": {
- "condition": ""
- }
- },
- "id": 20230626104003,
- })
- const onSuccess = ()=>{
- list.value.tableData()
- }
- </script>
- <style>
- </style>
|