1. 处方修复未通过或者审核中依然能看到药品的问题
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
:safe-area-inset-bottom="true" @click="chooseway"></u-action-sheet>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 收货地址 已添加地址 -->
|
||||
<view class="head" v-if="isshow&&orderInfo.ProductOrder.status==0" @click="toChoose">
|
||||
<!-- 收货地址(待支付,可编辑) -->
|
||||
<view class="head" v-if="canEditAddress" @click="toChoose">
|
||||
<view class="state">
|
||||
<text>收货地址</text>
|
||||
<view class="qh">
|
||||
@@ -32,16 +32,30 @@
|
||||
请先选择收货地址
|
||||
</view>
|
||||
<view class="name" @click="toChoose" v-if="orderInfo.ProductOrder.address">
|
||||
{{JSON.parse(orderInfo.ProductOrder.address).name || '请先选择收货地址'}}
|
||||
{{JSON.parse(orderInfo.ProductOrder.address).mobile || ''}}
|
||||
{{ parsedAddress.name || '请先选择收货地址' }}
|
||||
{{ parsedAddress.mobile || '' }}
|
||||
</view>
|
||||
<view class="choose_area" v-if="orderInfo.ProductOrder.address">
|
||||
{{JSON.parse(orderInfo.ProductOrder.address).region || ''}}{{JSON.parse(orderInfo.ProductOrder.address).detail_address || ''}}
|
||||
{{ parsedAddress.region || '' }}{{ parsedAddress.detail_address || '' }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 收货地址(已支付,只读) -->
|
||||
<view class="head" v-if="canViewAddressReadonly">
|
||||
<view class="state">
|
||||
<text>收货地址</text>
|
||||
</view>
|
||||
<view class="name">
|
||||
{{ parsedAddress.name }}
|
||||
{{ parsedAddress.mobile }}
|
||||
</view>
|
||||
<view class="choose_area">
|
||||
{{ parsedAddress.region }}{{ parsedAddress.detail_address }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 到店自取 -->
|
||||
<view class="head" v-if="isshowed">
|
||||
<view class="head" v-if="isshowed && orderInfo.ProductOrder.delivery_method == 1">
|
||||
<view class="state">
|
||||
<text>到店自取</text>
|
||||
</view>
|
||||
@@ -259,6 +273,23 @@ export default {
|
||||
prescriptionStatus: null,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
parsedAddress() {
|
||||
try {
|
||||
return JSON.parse(this.orderInfo.ProductOrder.address || '{}')
|
||||
} catch (e) {
|
||||
return {}
|
||||
}
|
||||
},
|
||||
canEditAddress() {
|
||||
const o = this.orderInfo.ProductOrder
|
||||
return this.isshow && o.status == 0 && o.cancel_status == 0
|
||||
},
|
||||
canViewAddressReadonly() {
|
||||
const o = this.orderInfo.ProductOrder
|
||||
return o.delivery_method == 0 && o.status != 0 && o.address && o.cancel_status == 0
|
||||
},
|
||||
},
|
||||
onLoad(e) {
|
||||
this.p_id = e.id
|
||||
this.orderType = e.order_type
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
<view class="order_info" v-else-if="item.status>=4&& item.is_pay==1&&item.status<=5 && item.prescription_type==2">
|
||||
{{item.status==5&&'退款中' || item.status==4&&'已退款' }}
|
||||
</view>
|
||||
<view class="order_info active" v-else-if="(item.status===2||item.status===6||item.status===7) && item.is_pay==1 && item.cancel_status==0 && item.delivery_method === 0" @tap.stop="toDevilty(item.id)">
|
||||
<view class="order_info active" v-if="(item.status===2||item.status===6||item.status===7) && item.is_pay==1 && item.cancel_status==0 && item.delivery_method === 0" @tap.stop="toDevilty(item.id)">
|
||||
查看物流
|
||||
</view>
|
||||
|
||||
|
||||
@@ -75,6 +75,18 @@ export async function performLogin(options = { silent: false, toastRef: null })
|
||||
console.error('绑定推广员失败:', err);
|
||||
});
|
||||
}
|
||||
// 5.2 绑定推广员(如果存在)
|
||||
const salId = uni.getStorageSync('sal_id');
|
||||
if (salId) {
|
||||
bindUserApi({
|
||||
user_id: res.data.data.data.user.id,
|
||||
salesperson_id: salId,
|
||||
}).then((bindRes) => {
|
||||
console.log(bindRes, 'bindUserApi', bindRes);
|
||||
}).catch((err) => {
|
||||
console.error('绑定推广员失败:', err);
|
||||
});
|
||||
}
|
||||
|
||||
// 5.3 处理门店切换/设置
|
||||
const storeId = uni.getStorageSync('store_id');
|
||||
|
||||
Reference in New Issue
Block a user