|
|
@@ -0,0 +1,494 @@
|
|
|
+<template>
|
|
|
+ <div class="prescription-page">
|
|
|
+ <custom-header name="处方详情" isClose :showClose="false" @goback="handleClose"></custom-header>
|
|
|
+
|
|
|
+ <div class="prescription-content">
|
|
|
+ <div class="card-box content-card">
|
|
|
+ <div class="card-header">
|
|
|
+ <div class="card-title-wrap">
|
|
|
+ <div class="card-title">{{ prescriptionData.title }}</div>
|
|
|
+ <div class="type-tag">{{ prescriptionData.type }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="card-info">
|
|
|
+ <div class="info-item">
|
|
|
+ <span class="info-label">下发专家</span>
|
|
|
+ <span class="info-value">{{ prescriptionData.expert }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="info-item">
|
|
|
+ <span class="info-label">执行时间</span>
|
|
|
+ <span class="info-value">{{ prescriptionData.executeTime }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="info-item">
|
|
|
+ <span class="info-label">施用方式</span>
|
|
|
+ <span class="info-value">{{ prescriptionData.applyMethod }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 处方详情 -->
|
|
|
+ <div class="card-box prescription-card mt-10">
|
|
|
+ <div class="card-header">
|
|
|
+ <div class="card-title">
|
|
|
+ 药物处方
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- <div class="table-item">
|
|
|
+ <div class="form-item">
|
|
|
+ <div class="item-name">施用方式</div>
|
|
|
+ <div class="item-text">{{ detailData?.usageMode || '其他' }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="form-item">
|
|
|
+ <div class="item-name">执行方式</div>
|
|
|
+ <div class="item-text">
|
|
|
+ {{ quotationData?.executionMethodName }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div> -->
|
|
|
+ <div class="new-wrap"
|
|
|
+ v-if="detailData?.prescriptionList?.length && detailData?.prescriptionList[0]?.pesticideFertilizerList?.length > 0">
|
|
|
+ <div class="new-title">
|
|
|
+ <div class="title-1">
|
|
|
+ <div class="table-name">药肥类型</div>
|
|
|
+ </div>
|
|
|
+ <div class="title-2">
|
|
|
+ <div class="table-name">药肥名称</div>
|
|
|
+ </div>
|
|
|
+ <div class="title-4">
|
|
|
+ <div class="table-name">药肥配比</div>
|
|
|
+ </div>
|
|
|
+ <div class="title-5">
|
|
|
+ <div class="table-name">单亩用量</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="new-table-wrap"
|
|
|
+ v-for="(prescriptionItem, prescriptionI) in detailData?.prescriptionList" :key="prescriptionI">
|
|
|
+ <div class="new-prescription" v-for="(subP, subI) in prescriptionItem.pesticideFertilizerList"
|
|
|
+ :key="subI">
|
|
|
+ <div class="new-table">
|
|
|
+ <div class="line-l">
|
|
|
+ <div class="line-1 title-1">{{ subP.typeName }}</div>
|
|
|
+ <div class="line-2">{{ subP.defaultName || subP.pesticideFertilizerName }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="line-r">
|
|
|
+ <div class="line-3">
|
|
|
+ <div class="sub-line title-4">{{ quotationData.executionMethod === 1 ?
|
|
|
+ subP.ratio2 : subP.ratio }}倍</div>
|
|
|
+ <div class="sub-line title-5">{{ quotationData.executionMethod === 1 ?
|
|
|
+ subP.muUsage2 : subP.muUsage }}{{ subP.unit }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="note-text" v-if="subP.remark">{{ subP.remark }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 执行区域 -->
|
|
|
+ <div class="card-box area-card mt-10">
|
|
|
+ <div class="card-header">
|
|
|
+ <div class="card-title">
|
|
|
+ 执行区域
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="card-content">
|
|
|
+ <map-info :farm-id="farmId" :show-title="false" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+import { ref, onMounted } from "vue";
|
|
|
+import { useRouter, useRoute } from "vue-router";
|
|
|
+import customHeader from "@/components/customHeader.vue";
|
|
|
+import MapInfo from "@/views/old_mini/agri_record/components/mapInfo.vue";
|
|
|
+
|
|
|
+const router = useRouter();
|
|
|
+const route = useRoute();
|
|
|
+
|
|
|
+const prescriptionData = ref({
|
|
|
+ title: "秋梢防虫",
|
|
|
+ type: "标准农事",
|
|
|
+ expert: "韦帮稳",
|
|
|
+ executeTime: "2025.02.18",
|
|
|
+ applyMethod: "内膛喷施",
|
|
|
+});
|
|
|
+
|
|
|
+const farmId = ref(94500);
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+});
|
|
|
+
|
|
|
+const handleClose = () => {
|
|
|
+ router.go(-1);
|
|
|
+};
|
|
|
+
|
|
|
+const handleViewPrescription = () => {
|
|
|
+ // 查看药物处方逻辑
|
|
|
+ // TODO: 实现查看药物处方功能
|
|
|
+};
|
|
|
+
|
|
|
+const handleViewArea = () => {
|
|
|
+ // 查看执行区域逻辑
|
|
|
+ // TODO: 实现查看执行区域功能
|
|
|
+};
|
|
|
+
|
|
|
+const quotationData = ref(
|
|
|
+ {
|
|
|
+ "executionMethodName": "地面喷施",
|
|
|
+ "executionMethod": 1,
|
|
|
+ }
|
|
|
+);
|
|
|
+
|
|
|
+const detailData = ref(
|
|
|
+ {
|
|
|
+ "consequenceText": "",
|
|
|
+ "id": "280962",
|
|
|
+ "reCheckText": "",
|
|
|
+ "orderId": "801082980008202240",
|
|
|
+ "farmWorkArrangeId": "11272",
|
|
|
+ "farmName": "荔枝博览园",
|
|
|
+ "farmPoint": "POINT(113.61702297075017 23.584863449735067)",
|
|
|
+ "area": 300,
|
|
|
+ "expert": "739294587868155904",
|
|
|
+ "orderStatus": 0,
|
|
|
+ "activeStatus": null,
|
|
|
+ "flowStatus": 5,
|
|
|
+ "farmId": 766,
|
|
|
+ "regionId": null,
|
|
|
+ "farmMiniUserId": 90739,
|
|
|
+ "farmMiniUserName": "",
|
|
|
+ "speciesId": "1",
|
|
|
+ "speciesName": "荔枝",
|
|
|
+ "agriculturalId": 214,
|
|
|
+ "agriculturalIcon": "",
|
|
|
+ "farmWorkId": "801074109092990976",
|
|
|
+ "farmWorkLibId": "801074109092990976",
|
|
|
+ "farmWorkLibName": "冬季防治(地面)",
|
|
|
+ "farmWorkName": "冬季防治(地面)",
|
|
|
+ "expertName": "飞鸟种植助手",
|
|
|
+ "expertUserName": "飞鸟种植助手",
|
|
|
+ "expertIcon": "https://birdseye-img-ali-cdn.sysuimars.com//expert/1757473957076.png",
|
|
|
+ "expertUserIcon": "https://birdseye-img-ali-cdn.sysuimars.com//expert/1757473957076.png",
|
|
|
+ "icon": null,
|
|
|
+ "indexName": "",
|
|
|
+ "indexChart": [],
|
|
|
+ "executeDate": "2026-01-19",
|
|
|
+ "executeDeadlineDate": "2026-01-19",
|
|
|
+ "expectedExecuteDate": "2026-01-19",
|
|
|
+ "finishDate": null,
|
|
|
+ "checkDate": null,
|
|
|
+ "beforeExecuteDate": null,
|
|
|
+ "indexJson": "",
|
|
|
+ "expertPrescription": "",
|
|
|
+ "code": "801074109080408065",
|
|
|
+ "condition": "",
|
|
|
+ "solarName": "",
|
|
|
+ "reCheck": 1,
|
|
|
+ "menu": 1,
|
|
|
+ "num": null,
|
|
|
+ "purpose": "",
|
|
|
+ "type": 1,
|
|
|
+ "farmWorkType": 3,
|
|
|
+ "farmWorkTypeName": "病虫",
|
|
|
+ "execute": 3,
|
|
|
+ "updateDate0": "2026-01-19",
|
|
|
+ "updateDate1": null,
|
|
|
+ "updateDate2": null,
|
|
|
+ "updateDate3": null,
|
|
|
+ "updateDate4": null,
|
|
|
+ "updateDate5": null,
|
|
|
+ "updateDate6": null,
|
|
|
+ "confirmPicture": [],
|
|
|
+ "executeEvidence": [
|
|
|
+ "birdseye-look-mini/94379/1768801082504.png",
|
|
|
+ "birdseye-look-mini/94379/1768801086136.png"
|
|
|
+ ],
|
|
|
+ "reviewImage": [],
|
|
|
+ "reviewImage2": [],
|
|
|
+ "reviewDate": null,
|
|
|
+ "reviewDate2": null,
|
|
|
+ "serviceRegion": "广州市从化区荔枝博览园",
|
|
|
+ "usageMode": "地面喷施",
|
|
|
+ "serviceMain": "数域行",
|
|
|
+ "executeMain": "数域行",
|
|
|
+ "storeShortName": "",
|
|
|
+ "weatherWarningMsg": "",
|
|
|
+ "userEvaluation": null,
|
|
|
+ "executeBlueZones": [],
|
|
|
+ "isMaster": null,
|
|
|
+ "isEdit": 0,
|
|
|
+ "selfExec": null,
|
|
|
+ "defaultFarmWork": 1,
|
|
|
+ "isPublic": 0,
|
|
|
+ "prescriptionList": [
|
|
|
+ {
|
|
|
+ "name": "病虫",
|
|
|
+ "pesticideFertilizerList": [
|
|
|
+ {
|
|
|
+ "defaultName": "",
|
|
|
+ "id": null,
|
|
|
+ "muPrice": 1,
|
|
|
+ "muUsage": 20,
|
|
|
+ "muUsage2": 20,
|
|
|
+ "price": "",
|
|
|
+ "ratio": 1000,
|
|
|
+ "ratio2": 100,
|
|
|
+ "remark": "",
|
|
|
+ "usageMode": "",
|
|
|
+ "usageModeList": [
|
|
|
+ "叶面施"
|
|
|
+ ],
|
|
|
+ "pesticideFertilizerCode": "1522",
|
|
|
+ "pesticideFertilizerId": "776945747475042304",
|
|
|
+ "pesticideFertilizerName": "5%高氯·甲维盐微乳剂",
|
|
|
+ "brand": "默认品牌",
|
|
|
+ "typeName": "胃毒性",
|
|
|
+ "unit": "ml"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "needReview": 0,
|
|
|
+ "conditionList": [],
|
|
|
+ "actualAgriculturalInput": null,
|
|
|
+ "actualFarmServiceInput": null,
|
|
|
+ "actualTotalInput": 996,
|
|
|
+ "executeName": "张扬",
|
|
|
+ "executorIcon": "https://birdseye-img.sysuimars.com/dinggou-mini/defalut-icon.png",
|
|
|
+ "executorUserId": 94379
|
|
|
+ }
|
|
|
+);
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.prescription-page {
|
|
|
+ height: 100vh;
|
|
|
+ width: 100%;
|
|
|
+ background: #f2f3f5;
|
|
|
+
|
|
|
+ .prescription-content {
|
|
|
+ height: calc(100% - 44px);
|
|
|
+ overflow: auto;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 12px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.mt-10 {
|
|
|
+ margin-top: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.card-box {
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 8px;
|
|
|
+ padding: 12px 10px 16px 10px;
|
|
|
+
|
|
|
+ .card-header {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-bottom: 8px;
|
|
|
+
|
|
|
+ .card-title {
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #000;
|
|
|
+ margin-right: 5px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .card-title-wrap {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ flex: 1;
|
|
|
+
|
|
|
+
|
|
|
+ .type-tag {
|
|
|
+ font-size: 12px;
|
|
|
+ padding: 0 10px;
|
|
|
+ color: #000000;
|
|
|
+ background: rgba(119, 119, 119, 0.1);
|
|
|
+ border-radius: 20px;
|
|
|
+ font-weight: normal;
|
|
|
+ height: 26px;
|
|
|
+ line-height: 26px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.content-card {
|
|
|
+ .card-info {
|
|
|
+ padding-top: 12px;
|
|
|
+ border-top: 1px solid #f5f5f5;
|
|
|
+
|
|
|
+ .info-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #767676;
|
|
|
+ height: 24px;
|
|
|
+
|
|
|
+ .info-label {
|
|
|
+ width: 80px;
|
|
|
+ color: rgba(0, 0, 0, 0.2);
|
|
|
+ }
|
|
|
+
|
|
|
+ .info-value {
|
|
|
+ flex: 1;
|
|
|
+ color: #767676;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .card-actions {
|
|
|
+ display: flex;
|
|
|
+ gap: 8px;
|
|
|
+ margin-top: 6px;
|
|
|
+
|
|
|
+ .action-btn {
|
|
|
+ padding: 0 16px;
|
|
|
+ height: 32px;
|
|
|
+ line-height: 32px;
|
|
|
+ text-align: center;
|
|
|
+ background: #f7f8fa;
|
|
|
+ color: #4e5969;
|
|
|
+ font-size: 14px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+.new-wrap {
|
|
|
+ margin-top: 12px;
|
|
|
+ border-radius: 5px;
|
|
|
+ text-align: center;
|
|
|
+ border: 1px solid rgba(225, 225, 225, 0.5);
|
|
|
+
|
|
|
+ .new-title {
|
|
|
+ background: rgba(241, 241, 241, 0.4);
|
|
|
+ border-radius: 5px 5px 0 0;
|
|
|
+ border-bottom: 1px solid rgba(225, 225, 225, 0.5);
|
|
|
+ display: flex;
|
|
|
+ color: #767676;
|
|
|
+ // justify-content: space-around;
|
|
|
+ padding: 5px 6px;
|
|
|
+ font-size: 12px;
|
|
|
+
|
|
|
+ .table-name {
|
|
|
+ width: 24px;
|
|
|
+ font-size: 12px;
|
|
|
+ margin: 0 auto;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .title-1 {
|
|
|
+ width: 46px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title-2 {
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title-3 {
|
|
|
+ width: 52px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title-4 {
|
|
|
+ width: 56px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title-5 {
|
|
|
+ width: 52px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .new-table-wrap {
|
|
|
+ .new-prescription {
|
|
|
+ .new-table {
|
|
|
+ height: 45px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 5px;
|
|
|
+ color: rgba(0, 0, 0, 0.6);
|
|
|
+ font-size: 11px;
|
|
|
+
|
|
|
+ .line-l {
|
|
|
+ display: flex;
|
|
|
+ flex: 1;
|
|
|
+
|
|
|
+ .line-2 {
|
|
|
+ flex: 1;
|
|
|
+ padding: 0 2px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .line-r {
|
|
|
+ &.has-border {
|
|
|
+ border-left: 1px solid rgba(225, 225, 225, 0.8);
|
|
|
+ }
|
|
|
+
|
|
|
+ .line-3 {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .sub-line {
|
|
|
+ padding: 10px 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .line-4 {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ border-top: 1px solid rgba(225, 225, 225, 0.8);
|
|
|
+ }
|
|
|
+
|
|
|
+ .execute-line {
|
|
|
+ border-right: 1px solid rgba(225, 225, 225, 0.8);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .note-text {
|
|
|
+ margin: 8px 0 4px 0;
|
|
|
+ color: rgba(0, 0, 0, 0.4);
|
|
|
+ background: #fff;
|
|
|
+ padding: 6px 8px;
|
|
|
+ border-radius: 5px;
|
|
|
+ text-align: left;
|
|
|
+ font-size: 11px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .new-prescription+.new-prescription {
|
|
|
+ .new-table {
|
|
|
+ border-top: 1px solid rgba(0, 0, 0, 0.08);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.form-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #767676;
|
|
|
+ height: 24px;
|
|
|
+
|
|
|
+ .item-name {
|
|
|
+ width: 80px;
|
|
|
+ color: rgba(0, 0, 0, 0.2);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.form-item+.form-item {
|
|
|
+ padding-top: 2px;
|
|
|
+}
|
|
|
+</style>
|