|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <popup class="price-sheet-popup" v-model:show="showPopup">
|
|
|
+ <popup class="price-sheet-popup" :overlay-style="{'z-index': 9999}" v-model:show="showPopup" teleport="body">
|
|
|
<div class="price-sheet-content">
|
|
|
<div class="price-sheet-content-inner" ref="contentEl">
|
|
|
<!-- 顶部标题区域 -->
|
|
|
@@ -64,7 +64,7 @@
|
|
|
:key="index"
|
|
|
>
|
|
|
<div class="col-1">{{ item.typeName || '--' }}</div>
|
|
|
- <div class="col-2">{{ item.defaultName || '--' }}</div>
|
|
|
+ <div class="col-2">{{ item.defaultName || item.pesticideFertilizerName || '--' }}</div>
|
|
|
<div class="col-3">{{ item.brand || '--' }}</div>
|
|
|
<div class="col-4">{{ item.price || '--' }}</div>
|
|
|
<div class="col-5">{{ item.usageDisplay || '--' }}</div>
|
|
|
@@ -143,6 +143,7 @@ const quotationData = ref({});
|
|
|
const priceData = ref({});
|
|
|
|
|
|
onActivated(() => {
|
|
|
+ console.log('onActivated')
|
|
|
fetchPriceData()
|
|
|
})
|
|
|
|
|
|
@@ -170,11 +171,10 @@ const processedPrescriptionList = computed(() => {
|
|
|
const brand = mapped.brand || item.brand || '';
|
|
|
const total = mapped.totalPrice || item.total || '';
|
|
|
const muUsage = quotationData.value.usageMode === "叶面施" ? (item.muUsage2 || item.muUsage) : item.muUsage
|
|
|
- console.log('muUsage', muUsage)
|
|
|
const unit = item.unit || '';
|
|
|
|
|
|
result.push({
|
|
|
- typeName: item.typeName || '--',
|
|
|
+ typeName: item.typeName || item.pesticideFertilizerTypeName || '--',
|
|
|
defaultName: item.defaultName || item.pesticideFertilizerName || '--',
|
|
|
brand: brand,
|
|
|
price: price ? `${price}元` : '--',
|
|
|
@@ -240,7 +240,6 @@ const handleShare = () => {
|
|
|
};
|
|
|
|
|
|
const handleWechat = () => {
|
|
|
- console.log("handleWechat", quotationData.value, priceData.value);
|
|
|
if (!priceData.value?.id || !priceData.value?.itemsList || priceData.value?.itemsList?.length === 0) {
|
|
|
ElMessage.warning('请补全报价数据')
|
|
|
return;
|
|
|
@@ -338,7 +337,7 @@ const clearData = () => {
|
|
|
// 监听弹窗关闭,清空数据
|
|
|
watch(showPopup, (newVal) => {
|
|
|
if (!newVal) {
|
|
|
- clearData();
|
|
|
+ // clearData();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -353,8 +352,9 @@ defineExpose({
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.price-sheet-popup {
|
|
|
+ z-index: 9999 !important;
|
|
|
width: 90%;
|
|
|
- max-height: 82vh;
|
|
|
+ max-height: 90vh;
|
|
|
background: none;
|
|
|
border-radius: 12px;
|
|
|
overflow: hidden;
|
|
|
@@ -375,7 +375,7 @@ defineExpose({
|
|
|
.price-sheet-content {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- max-height: 82vh;
|
|
|
+ max-height: 90vh;
|
|
|
// height: 95vh;
|
|
|
.price-sheet-content-inner {
|
|
|
background: #fff;
|