This commit is contained in:
aihe 2024-09-02 14:01:37 +08:00
parent 45d229a0e9
commit b1574ff8ca

View File

@ -75,7 +75,7 @@
:plain="true" custom-style="height: 54rpx;margin-left: 12rpx;">进仓单</u-button>
<template v-if="item.orderStatus == 0">
<u-button @click="handleDealItem(item, { type: 1 })" shape="circle"
<u-button @click="handleDealItem(item, { type: 2 })" shape="circle"
type="primary" :plain="true" custom-style="height: 54rpx;margin-left: 12rpx;">接单</u-button>
<u-button @click="handleDealItem(item, { type: 3 })" shape="circle"
type="primary" :plain="true" custom-style="height: 54rpx;margin-left: 12rpx;">取消</u-button>
@ -249,9 +249,7 @@
triggerListReload() {
this?.$refs?.listRef?.getDataList?.(true) // 重置到第一页数据
},
async handleDealItem(item, deal = {
type: '1'
}) {
async handleDealItem(item, deal = { type: '1' }) {
let itemQuery = `?billCode=${item.billCode || ''}&orderSn=${item.orderSn || ''}`
switch (deal.type) {
case 1: // 接单