1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
| <script setup>
| import {CirclePlus, Search} from "@element-plus/icons-vue";
| import {useRouter} from 'vue-router'
|
| let router = useRouter()
| let deliveryTitle = $ref([
| '序号',
| '发货单号',
| '客户编号',
| '客户名称',
| '总数量',
| '可用库存',
| '项目名称',
| '批次',
| '总金额',
| '结算总面积',
| '报表日期',
| '包装方式',
| '订单类型',
| '送货地址',
| '业务员'
|
| ])
|
| let deliveryList =[
| {
| '0': '1',
| '1': 'NG23110101',
| '2': '11',
| '3': '中建',
| '4': '534',
| '5': '116',
| '6': '黄石有轨电车',
| '7': '20批',
| '8': '111100.02',
| '9': '1008.38',
| '10': '2023-10-30',
| '11': '叉车木箱',
| '12': '普通订单',
| '13': '',
| '14': '王龙'
| }
| ]
|
| let listName = $ref([
| '审核','出库'
| ])
|
| function addReturns(){
| router.push({path:'/main/Returns/createReturns'})
| }
|
|
|
| </script>
|
| <template>
| <div>
| <el-date-picker
| v-model="value1"
| type="daterange"
| start-placeholder="开始时间"
| end-placeholder="结束时间"
| />
| <el-button style="margin-top: -5px" id="searchButton" type="primary" :icon="Search">查询</el-button>
| <el-table
| :data="deliveryList"
| :header-cell-style="{ 'text-align': 'center' }"
| :cell-style="{ 'text-align': 'center' }"
| lazy
| border
| style="width: 99%;"
| max-height="80vh">
| <el-table-column type="expand" fixed>
| <template #default="props" >
| <div m="4">
| <p m="t-0 b-2">退货相关信息</p>
| </div>
| </template>
| </el-table-column>
| <el-table-column label="选择" fixed width="70" >
| <el-button @click="addReturns" link type="primary" size="small">退货</el-button>
| </el-table-column>
| <el-table-column v-for="item in listName" prop="" :label="item" width="40" >
| <el-checkbox checked/>
| </el-table-column>
|
| <el-table-column
| :prop="index.toString()"
| :show-overflow-tooltip='true'
| width="100" v-for="(item,index) in deliveryTitle"
| :label="item" />
| </el-table>
| </div>
|
| </template>
|
| <style scoped>
| :deep(.el-table .el-input__wrapper) {
| box-shadow: 0 0 0 0px var(--el-input-border-color, var(--el-border-color)) inset;
| cursor: default;
| border: none !important;
| background-color: transparent;
| }
| </style>
|
|