Skip to content

Commit 2457665

Browse files
committed
code review:门店自提
1 parent 83501f9 commit 2457665

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

src/views/mall/trade/delivery/pickUpOrder/index.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,14 @@
7070
<Icon class="mr-5px" icon="ep:refresh" />
7171
重置
7272
</el-button>
73+
<el-button @click="handlePickup" type="success" plain v-hasPermi="['trade:order:pick-up']">
74+
<Icon class="mr-5px" icon="ep:check" />
75+
核销
76+
</el-button>
7377
</el-form-item>
7478
</el-form>
7579
</ContentWrap>
80+
7681
<!-- 统计卡片 -->
7782
<el-row :gutter="16" class="summary">
7883
<el-col :sm="6" :xs="12" v-loading="loading">
@@ -190,6 +195,9 @@
190195
@pagination="getList"
191196
/>
192197
</ContentWrap>
198+
199+
<!-- 各种操作的弹窗 -->
200+
<OrderPickUpForm ref="pickUpForm" @success="getList" />
193201
</template>
194202

195203
<script lang="ts" setup>
@@ -204,6 +212,7 @@ import { dateFormatter } from '@/utils/formatTime'
204212
import { DeliveryTypeEnum } from '@/utils/constants'
205213
import { TradeOrderSummaryRespVO } from '@/api/mall/trade/order'
206214
import { DeliveryPickUpStoreVO } from '@/api/mall/trade/delivery/pickUpStore'
215+
import OrderPickUpForm from '@/views/mall/trade/order/form/OrderPickUpForm.vue'
207216
208217
defineOptions({ name: 'PickUpOrder' })
209218
@@ -291,6 +300,12 @@ const getPickUpStoreList = async () => {
291300
pickUpStoreList.value = await PickUpStoreApi.getListAllSimple()
292301
}
293302
303+
/** 显示核销表单 */
304+
const pickUpForm = ref()
305+
const handlePickup = () => {
306+
pickUpForm.value.open()
307+
}
308+
294309
/** 初始化 **/
295310
onMounted(() => {
296311
getList()

src/views/mall/trade/order/index.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,6 @@
157157
<Icon class="mr-5px" icon="ep:refresh" />
158158
重置
159159
</el-button>
160-
<el-button @click="handlePickup" type="success" plain>
161-
<Icon class="mr-5px" icon="ep:check" />
162-
核销
163-
</el-button>
164160
</el-form-item>
165161
</el-form>
166162
</ContentWrap>
@@ -352,7 +348,6 @@
352348
<!-- 各种操作的弹窗 -->
353349
<OrderDeliveryForm ref="deliveryFormRef" @success="getList" />
354350
<OrderUpdateRemarkForm ref="updateRemarkForm" @success="getList" />
355-
<OrderPickUpForm ref="pickUpForm" @success="getList" />
356351
</template>
357352

358353
<script lang="ts" setup>
@@ -367,7 +362,6 @@ import { floatToFixed2 } from '@/utils'
367362
import { createImageViewer } from '@/components/ImageViewer'
368363
import * as DeliveryExpressApi from '@/api/mall/trade/delivery/express'
369364
import { DeliveryTypeEnum, TradeOrderStatusEnum } from '@/utils/constants'
370-
import OrderPickUpForm from './form/OrderPickUpForm.vue'
371365
372366
defineOptions({ name: 'TradeOrder' })
373367
@@ -528,12 +522,6 @@ watch(
528522
}
529523
)
530524
531-
/** 显示核销表单 */
532-
const pickUpForm = ref()
533-
const handlePickup = () => {
534-
pickUpForm.value.open()
535-
}
536-
537525
const pickUpStoreList = ref([]) // 自提门店精简列表
538526
const deliveryExpressList = ref([]) // 物流公司
539527
/** 初始化 **/

0 commit comments

Comments
 (0)