|
|
@@ -124,7 +124,9 @@
|
|
|
|
|
|
<!-- loading -->
|
|
|
<wd-overlay :show="overlayShow">
|
|
|
- <wd-loading />
|
|
|
+ <view class="wrapper w-full h-full flex items-center justify-center">
|
|
|
+ <wd-loading />
|
|
|
+ </view>
|
|
|
</wd-overlay>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -143,7 +145,7 @@ const couponStore = useCouponStore()
|
|
|
const productStore = useProductStore()
|
|
|
const orderStore = useOrderStore()
|
|
|
const message = useMessage()
|
|
|
-const usersid = ref('') // 销售网点用户id
|
|
|
+const usersid = ref('') // 销售网点用户id(渠道id)
|
|
|
const productsid = ref('') // 产品id
|
|
|
const productInfo = ref<any>(null) // 产品详情
|
|
|
const overlayShow = ref(false) // 加载状态
|
|
|
@@ -198,6 +200,7 @@ function handleSubmit() {
|
|
|
ordersproductid: productsid.value,
|
|
|
orderscouponid: currentCoupon2id.value,
|
|
|
ordersproductsn: model.ordersproductsn,
|
|
|
+ ordersuserid1: usersid.value, // 渠道id 魏哥:微信下单增加参数ordersuserid1对应渠道id,后端渠道看自己的订单数据相比管理员只需要另外新增菜单权限配置,额外固定配置参数ordersuserid1.value=session:workeruserid,界面都可以先套用,然后给渠道归类一个角色。
|
|
|
})
|
|
|
message
|
|
|
.alert({
|
|
|
@@ -226,7 +229,10 @@ function handleSubmit() {
|
|
|
async function getProductDetail() {
|
|
|
if (!productsid.value) return
|
|
|
overlayShow.value = true
|
|
|
- productInfo.value = await productStore.getProductDetail(productsid.value)
|
|
|
+ productInfo.value = await productStore.getProductDetail({
|
|
|
+ productsid: productsid.value,
|
|
|
+ merchantid: usersid.value,
|
|
|
+ })
|
|
|
overlayShow.value = false
|
|
|
}
|
|
|
|