|
|
|
@ -94,7 +94,7 @@ const handlePayment = async () => {
|
|
|
|
|
const params = {
|
|
|
|
|
id: props.orderId,
|
|
|
|
|
orderDetails,
|
|
|
|
|
clientType: isUnit.value ? 2 : 1,
|
|
|
|
|
clientType: props?.clientType || 1,
|
|
|
|
|
}
|
|
|
|
|
isLoadingPay.value = true
|
|
|
|
|
const res = await postOrderCompleteAPI(params)
|
|
|
|
@ -134,13 +134,6 @@ const switchChange = (e) => {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 是否单位订单
|
|
|
|
|
const isUnit = ref(false)
|
|
|
|
|
const switchUnitChange = (e) => {
|
|
|
|
|
const flag = e.detail.value
|
|
|
|
|
isUnit.value = flag
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 称重
|
|
|
|
|
// 价格输入在参考价格上下10%校验
|
|
|
|
|
const priceChange = (item: any) => {
|
|
|
|
@ -223,10 +216,6 @@ const popupDel = (idx) => {
|
|
|
|
|
<view class="viewport">
|
|
|
|
|
<view class="cont">
|
|
|
|
|
<view class="title">回收详情</view>
|
|
|
|
|
<view class="switch" v-if="props.clientType == 2">
|
|
|
|
|
<view class="label">单位订单</view>
|
|
|
|
|
<switch color="#3775F6" :checked="isUnit" @change="switchUnitChange" style="transform:scale(0.7)" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="switch">
|
|
|
|
|
<view class="label">{{ selectText }}</view>
|
|
|
|
|
<switch color="#3775F6" :checked="allSelectd" @change="switchChange" style="transform:scale(0.7)" />
|
|
|
|
|