|
1 | 1 | <template>
|
2 |
| - <Dialog :title="dialogTitle" v-model="dialogVisible" width="85%"> |
| 2 | + <Dialog :title="dialogTitle" v-model="dialogVisible" width="80%"> |
3 | 3 | <el-form
|
4 | 4 | ref="formRef"
|
5 | 5 | :model="formData"
|
|
12 | 12 | </el-form-item>
|
13 | 13 | <el-form-item label="计费方式" prop="chargeMode">
|
14 | 14 | <el-radio-group v-model="formData.chargeMode" @change="changeChargeMode">
|
15 |
| - <el-radio :label="1">按件数</el-radio> |
16 |
| - <el-radio :label="2">按重量</el-radio> |
17 |
| - <el-radio :label="3">按体积</el-radio> |
| 15 | + <el-radio |
| 16 | + v-for="dict in getIntDictOptions(DICT_TYPE.EXPRESS_CHARGE_MODE)" |
| 17 | + :key="dict.value" |
| 18 | + :label="dict.value" |
| 19 | + > |
| 20 | + {{ dict.label }} |
| 21 | + </el-radio> |
18 | 22 | </el-radio-group>
|
19 | 23 | </el-form-item>
|
20 | 24 | <el-form-item label="运费" prop="templateCharge">
|
21 | 25 | <el-table border style="width: 100%" :data="formData.templateCharge">
|
22 |
| - <el-table-column align="center" label="区域"> |
| 26 | + <el-table-column align="center" label="区域" width="180"> |
23 | 27 | <template #default="{ row }">
|
24 | 28 | <!-- 区域数据太多,用赖加载方式,要不然性能有问题 -->
|
25 | 29 | <el-tree-select
|
|
36 | 40 | />
|
37 | 41 | </template>
|
38 | 42 | </el-table-column>
|
39 |
| - <el-table-column :label="columnTitle.startCountTitle" prop="startCount"> |
| 43 | + <el-table-column |
| 44 | + align="center" |
| 45 | + :label="columnTitle.startCountTitle" |
| 46 | + width="180" |
| 47 | + prop="startCount" |
| 48 | + > |
40 | 49 | <template #default="{ row }">
|
41 | 50 | <el-input-number v-model="row.startCount" :min="1" />
|
42 | 51 | </template>
|
43 | 52 | </el-table-column>
|
44 |
| - <el-table-column label="运费(元)" prop="startPrice"> |
| 53 | + <el-table-column width="180" align="center" label="运费(元)" prop="startPrice"> |
45 | 54 | <template #default="{ row }">
|
46 | 55 | <el-input-number v-model="row.startPrice" :min="1" />
|
47 | 56 | </template>
|
48 | 57 | </el-table-column>
|
49 |
| - <el-table-column :label="columnTitle.extraCountTitle" prop="extraCount"> |
| 58 | + <el-table-column |
| 59 | + width="180" |
| 60 | + align="center" |
| 61 | + :label="columnTitle.extraCountTitle" |
| 62 | + prop="extraCount" |
| 63 | + > |
50 | 64 | <template #default="{ row }">
|
51 | 65 | <el-input-number v-model="row.extraCount" :min="1" />
|
52 | 66 | </template>
|
53 | 67 | </el-table-column>
|
54 |
| - <el-table-column label="续费(元)" prop="extraPrice"> |
| 68 | + <el-table-column width="180" align="center" label="续费(元)" prop="extraPrice"> |
55 | 69 | <template #default="{ row }">
|
56 | 70 | <el-input-number v-model="row.extraPrice" :min="1" />
|
57 | 71 | </template>
|
|
72 | 86 | </el-form-item>
|
73 | 87 | <el-form-item label="包邮区域" prop="templateFree">
|
74 | 88 | <el-table border style="width: 100%" :data="formData.templateFree">
|
75 |
| - <el-table-column label="区域"> |
| 89 | + <el-table-column align="center" label="区域"> |
76 | 90 | <template #default="{ row }">
|
77 | 91 | <!-- 区域数据太多,用赖加载方式,要不然性能有问题 -->
|
78 | 92 | <el-tree-select
|
|
89 | 103 | />
|
90 | 104 | </template>
|
91 | 105 | </el-table-column>
|
92 |
| - <el-table-column :label="columnTitle.freeCountTitle" prop="freeCount"> |
| 106 | + <el-table-column align="center" :label="columnTitle.freeCountTitle" prop="freeCount"> |
93 | 107 | <template #default="{ row }">
|
94 | 108 | <el-input-number v-model="row.freeCount" :min="1" />
|
95 | 109 | </template>
|
96 | 110 | </el-table-column>
|
97 |
| - <el-table-column label="包邮金额(元)" prop="freePrice"> |
| 111 | + <el-table-column align="center" label="包邮金额(元)" prop="freePrice"> |
98 | 112 | <template #default="{ row }">
|
99 | 113 | <el-input-number v-model="row.freePrice" :min="1" />
|
100 | 114 | </template>
|
|
122 | 136 | </Dialog>
|
123 | 137 | </template>
|
124 | 138 | <script setup lang="ts">
|
| 139 | +import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' |
125 | 140 | import * as DeliveryExpressTemplateApi from '@/api/mall/trade/delivery/expressTemplate'
|
126 | 141 | import { defaultProps } from '@/utils/tree'
|
127 | 142 | import { yuanToFen, fenToYuan } from '@/utils'
|
|
0 commit comments