| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139 |
- <template>
- <div class="work-detail">
- <custom-header :name="$t('workDetail.title')" v-if="!miniJson?.hideDraw" :showClose="false" isGoBack
- @goback="handleBack" />
- <div class="work-detail-content">
- <!-- 顶部状态 -->
- <div class="content-status" :style="getContentStatusStyle(farmData)">
- <div class="status-l">
- <div class="status-title">
- <span>{{ farmData.work_name }}</span>
- <div class="status-tag" :style="statusTagStyle[farmData?.farm_work_type]">{{ farmWorkTypeObj[farmData?.farm_work_type] }}</div>
- </div>
- <div class="status-hint-card" v-if="farmData?.work_status === 0">
- <div class="status-hint-text">{{ farmData?.best_time }}</div>
- <div class="status-hint-question">
- <el-icon class="status-hint-link-icon">
- <Link />
- </el-icon>
- <span class="status-hint-question-text">{{ farmData.interaction_issue }}</span>
- </div>
- </div>
- <div class="status-sub" :style="getFarmWorkTypeColorStyle(farmData)" v-else>
- {{ farmData.best_time }}
- </div>
- </div>
- </div>
- <div class="work-wrap has-bottom" :style="farmData.work_status === 0 ? 'margin-top: 35px;' : ''">
- <!-- 农事组信息 -->
- <div class="group-info group-box" v-if="farmData.interaction_reason">
- <div class="group-name">
- {{ farmData.interaction_reason }}
- </div>
- </div>
- <div class="box-wrap stage-card">
- <div class="work-info">
- <div class="map-box" @click="handleViewArea">
- <div class="map-title">{{ $t('workDetail.executionArea') }}</div>
- <div class="map-container" ref="mapContainer"></div>
- </div>
- <div class="area-list">
- <div v-for="(zone, zoneIndex) in farmZones"
- :key="`${zone.zone_name || 'zone'}-${zoneIndex}`" class="area-item">
- <div class="area-l">
- {{ zone.zone_name }}
- <span> {{ zone.execute_time }}</span>
- <span class="area-tag" :style="backgroundFarmWorkStatus(farmData.work_status)">{{
- workStatusObj[farmData.work_status] }}</span>
- </div>
- <div class="area-r" @click="handleExecute(farmData?.work_status, farmData?.farm_work_type)" :style="{background:farmData?.work_status === 6 ? '#37C11B' : '#2199F8'}">{{ farmData?.work_status === 6 ? '溯源认证' : '我已完成' }}</div>
- </div>
- </div>
- <!-- <div class="ecological-plant-card">
- <div class="ecological-plant-text">
- <div class="ecological-plant-line">
- 生态种植方式:{{ ecologicalPlantingMethodText }}
- </div>
- <div class="ecological-plant-line ecological-plant-line--sub">
- 来自于 {{ ecologicalExecutorOrg }}
- </div>
- </div>
- <div class="ecological-plant-gallery">
- <img v-for="(src, idx) in ecologicalPlantThumbUrls" :key="idx"
- class="ecological-plant-thumb" :src="src" alt="" />
- </div>
- </div> -->
- </div>
- </div>
- <div class="box-wrap stage-card">
- <div class="work-info">
- <div class="info-item">
- <div class="info-title"><span class="title-block"></span>{{ $t('workDetail.reason') }}</div>
- <div class="info-value">{{ farmData.work_reason_detail }}</div>
- </div>
- <div class="info-item">
- <div class="info-title"><span class="title-block"></span>{{ $t('workDetail.purpose') }}
- </div>
- <div class="info-value">{{ farmData.work_purpose }}</div>
- </div>
- <div class="info-item">
- <div class="info-title"><span class="title-block"></span>{{ $t('workDetail.notes') }}</div>
- <div class="info-value">{{ farmData.precautions }}</div>
- </div>
- <div class="info-item">
- <div class="info-title"><span class="title-block"></span>{{ $t('workDetail.prescription') }}
- </div>
- <div class="info-value">{{ farmData.drug_prescription }}</div>
- </div>
- <div class="info-item">
- <div class="info-title"><span class="title-block"></span>{{ $t('workDetail.executionMethod')
- }}</div>
- <div class="info-value">{{ farmData.execution_method }}</div>
- </div>
- </div>
- </div>
- <!-- <div class="warning-info">
- <div class="warning-l">
- <div class="warning-title">
- <el-icon size="16" color="#FF953D"><WarningFilled /></el-icon>
- 存在继发危害需巡园
- </div>
- <div class="warning-text">{{ $t('文案文案文案文案文案') }}</div>
- </div>
- <div class="warning-r">{{ $t('异常记录') }}</div>
- </div> -->
- <!-- 底部按钮 -->
- <!-- <div class="fixed-btn-wrap execute-action">
- <div class="action-item second" v-if="!miniJson?.hideDraw" @click="handleConvert">{{ $t('转发给执行人员') }}</div>
- </div> -->
- <!-- <div class="action-item primary" @click="handleExecute">{{ $t('溯源认证') }}</div> -->
- </div>
- </div>
- <ExecutePopup ref="executePopupRef" @executeSuccess="getDetail" />
- <upload-tips v-model:show="showUploadTipsPopup" />
- </div>
- </template>
- <script setup>
- import { ElMessage } from "element-plus";
- import wx from "weixin-js-sdk";
- import customHeader from "@/components/customHeader.vue";
- import { ref, computed, watch, onMounted, onActivated, onDeactivated, onBeforeUnmount, nextTick } from "vue";
- import { useI18n } from "@/i18n";
- import { useRouter } from "vue-router";
- import { formatDate } from "@/common/commonFun";
- import ExecutePopup from "./components/executePopup.vue";
- import { base_img_url2 } from "@/api/config";
- import UploadTips from "@/components/popup/uploadTips.vue";
- import { useRoute } from "vue-router";
- import AreaMap from "./components/areaMap.js";
- import WKT from "ol/format/WKT.js";
- import { time } from "echarts";
- const route = useRoute();
- const { locale } = useI18n();
- const showUploadTipsPopup = ref(false);
- const router = useRouter();
- // const info = JSON.parse(localStorage.getItem("localUserInfo") || "{}");
- const info = { appType: 1 };
- /** 接口根级与 detail 合并后的详情(pesticideList、prescriptionList) */
- const detail = ref({
- farmId: null,
- farmWorkLibId: null,
- farmWorkName: "",
- flowStatus: null,
- purpose: "",
- speciesId: null,
- speciesName: "",
- executeDate: null,
- intervelTime: null,
- remark: "",
- pesticideList: [],
- prescriptionList: [],
- confirmPicture: [],
- executeEvidence: [],
- expertName: "",
- expertPrescription: "",
- id: null,
- postId: null,
- post: null,
- expertNameFromFarmBasicInfo: "",
- rangeWkt: null,
- });
- /** 凭证图片统一为 { filename } */
- const normalizeCropAlbum = (album) => {
- if (!album || !Array.isArray(album)) return [];
- return album
- .map((x) => {
- if (!x) return null;
- if (typeof x === "string") return { filename: x };
- if (x.filename) return x;
- return null;
- })
- .filter(Boolean);
- };
- const maybeShowUploadTips = () => {
- if (detail.value?.flowStatus !== 1) return;
- const shown = localStorage.getItem('upload_tips');
- if (shown === "1") return;
- localStorage.setItem('upload_tips', "1");
- showUploadTipsPopup.value = true;
- };
- onMounted(() => {
- maybeShowUploadTips();
- });
- const miniJson = ref(null);
- const farmData = ref({});
- const wktFmt = new WKT();
- const MAP_CENTER_FALLBACK = "POINT(113.1093017627431 22.57454083668)";
- const farmZones = computed(() => {
- const zones = farmData.value?.zones;
- if (!Array.isArray(zones)) return [];
- return zones.filter(
- (z) => z && typeof z.zone_geometry === "string" && z.zone_geometry.trim()
- );
- });
- /** 从地块 WKT 取首坐标作为初始中心,initZones 会 fit 到全部地块 */
- function wktCenterPointFromZones(zones) {
- const list = Array.isArray(zones) ? zones : [];
- for (const zone of list) {
- const wkt = zone?.zone_geometry;
- if (!wkt || typeof wkt !== "string") continue;
- try {
- const c = wktFmt.readGeometry(wkt.trim()).getFirstCoordinate();
- return `POINT(${c[0]} ${c[1]})`;
- } catch {
- /* try next zone */
- }
- }
- return MAP_CENTER_FALLBACK;
- }
- function destroyWorkDetailMap() {
- areaMap.destroyMap();
- }
- function initWorkDetailMap() {
- nextTick(() => {
- if (!mapContainer.value) return;
- const zones = farmZones.value;
- areaMap.destroyMap();
- areaMap.initMap(wktCenterPointFromZones(zones), mapContainer.value);
- areaMap.initZones(zones);
- });
- }
- onDeactivated(() => {
- destroyWorkDetailMap();
- });
- onBeforeUnmount(() => {
- destroyWorkDetailMap();
- });
- onActivated(() => {
- getDetail();
- });
- const workStatusObj = {
- 0: "时间待校准",
- 1: "触发待巡园",
- 2: "待执行",
- 3: "未激活",
- 4: "已认证",
- 5: "已失效",
- 6: "已执行",
- }
- const farmWorkTypeObj = {
- 1: "标准农事",
- 2: "机动农事",
- 3: "气象预警农事",
- 4: "气象恢复农事",
- 5: "异常农事",
- 6: "标准施肥类",
- 7: "标准防治类",
- 8: "标准调节类",
- }
- const backgroundFarmWorkStatus = (status) => {
- let background = 'rgba(33, 153, 248, 0.1)';
- let color = '#2199F8';
- if (status === 6 || status === 4) {
- background = 'rgba(55, 193, 27, 0.1)';
- color = '#37C11B';
- } else if (status === 3 || status === 5) {
- background = 'rgba(98, 98, 98, 0.1)';
- color = '#626262';
- }
- return {
- background,
- color,
- }
- }
- const getDetail = () => {
- if (!route.query.id) return;
- VE_API.monitor.getWorkDetail({ id: route.query.id }).then(res => {
- if (res.code === 200 && res.data.length) {
- farmData.value = res.data[0];
- initWorkDetailMap();
- }
- })
- };
- const handleExecute = (status, type) => {
- const popupType = type === 5 ? 'bc' : (status === 6 ? 'sy' : 'wc')
- executePopupRef.value.openPopup(popupType);
- };
- watch(locale, () => {
- getDetail();
- });
- // 执行方式 Tab 配置
- const executionTabs = [
- { label: "植保机", value: 1 },
- { label: "人工手持", value: 2 },
- { label: "地面机械", value: 3 }
- ];
- // 每一段农事的当前执行方式(索引 -> 执行方式),默认 1:植保机
- const stageExecutionMethods = ref({});
- const executePopupRef = ref(null);
- const hasTextValue = (val) => {
- if (val === null || val === undefined) return false;
- return String(val).trim() !== "";
- };
- const hasValidParamForMethod = (item, methodValue) => {
- if (!item?.params || !Array.isArray(item.params)) return false;
- const methodParam = item.params.find(
- (param) => Number(param.executionMethod) === Number(methodValue)
- );
- if (!methodParam) return false;
- return hasTextValue(methodParam.ratio) || hasTextValue(methodParam.remark);
- };
- const getAvailableExecutionTabs = (prescription) => {
- const list = prescription?.pesticideList;
- if (!Array.isArray(list) || !list.length) return [];
- return executionTabs.filter((tab) =>
- list.some((item) => hasValidParamForMethod(item, tab.value))
- );
- };
- const statusTagStyle = {
- 3: {
- color: '#FF953D',
- },
- 4: {
- color: '#FF953D',
- },
- 5: {
- color: '#FF6A6A',
- },
- };
- const getFarmWorkTypeColorStyle = (farmData) => {
- const type = Number(farmData?.farm_work_type);
- const status = Number(farmData?.work_status);
- let color = '#2199F8';
- if (status === 2) {
- if(type === 3 || type === 4) {
- color = '#FF943D';
- } else if(type === 5) {
- color = '#FF6A6A';
- } else {
- color = '#2199F8';
- }
- }else if (status === 3) {
- color = 'rgba(62, 61, 61, 0.8)';
- }
- return {
- color,
- };
- };
- /** 顶部 content-status 背景色(::after 通过 CSS 变量读取) */
- const getContentStatusStyle = (farmData) => {
- const type = Number(farmData?.farm_work_type);// 农事类型
- const status = Number(farmData?.work_status);// 农事状态
- let background = '#2199F8';
- if(type === 3 || type === 4) {
- background = '#FF943D';
- } else if(type === 5) {
- background = '#FF6A6A';
- } else {
- background = '#2199F8';
- }
- if(status === 3) {
- background = '#C7C7C7';
- }
- return {
- "--content-status-bg": background,
- };
- };
- /**
- * 展示用「分段」列表:detail.pesticideList 或 prescriptionList 推导
- */
- const stageList = computed(() => {
- const d = detail.value;
- if (!d) return [];
- // if (Array.isArray(d.pesticideList) && d.pesticideList.length) {
- return [
- {
- ...d,
- pesticideList: d.pesticideList,
- cropAlbum: normalizeCropAlbum(
- d.confirmPicture?.length
- ? d.confirmPicture
- : d.executeEvidence
- ),
- },
- ];
- // }
- // return [];
- });
- const handleViewArea = () => {
- router.push({
- path: "/view_area",
- query: {
- subjectId: localStorage.getItem('selectedFarmId'),
- varietyId: 2,
- },
- });
- }
- const handleBack = () => {
- router.back();
- };
- const handleConvert = () => {
- const query = {
- askInfo: { title: "农事执行", content: "是否分享该农事给好友" },
- shareText: `${detail.value.farmWorkName}农事 已触发,请在最佳农时内执行`,
- targetUrl: `work_detail`,
- paramsPage: JSON.stringify({ ...miniJson.value, hideDraw: true }),
- imageUrl: 'https://birdseye-img.sysuimars.com/birdseye-look-mini/work_img.png',
- };
- wx.miniProgram.navigateTo({
- url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
- });
- };
- // 获取当前段的执行方式
- const getStageExecutionMethod = (stageIndex) => {
- const stage = stageList.value?.[stageIndex];
- const availableTabs = getAvailableExecutionTabs(stage);
- if (!availableTabs.length) return 1;
- const val = stageExecutionMethods.value[stageIndex];
- const isValidSelected = availableTabs.some(
- (tab) => Number(tab.value) === Number(val)
- );
- return isValidSelected ? val : availableTabs[0].value;
- };
- // 根据当前执行方式,获取对应的参数(配比、单亩用量、备注)
- const getPesticideParam = (item, stageIndex) => {
- if (!item?.params || !Array.isArray(item.params)) return null;
- const currentMethod = getStageExecutionMethod(stageIndex);
- return (
- item.params.find((param) => param.executionMethod === currentMethod) || null
- );
- };
- // 地图
- const mapContainer = ref(null);
- const areaMap = new AreaMap();
- </script>
- <style scoped lang="scss">
- .work-detail {
- height: 100vh;
- background: #f2f3f5;
- display: flex;
- flex-direction: column;
- .work-detail-content {
- flex: 1;
- overflow: auto;
- }
- }
- .content-status {
- position: relative;
- padding: 16px 12px 0 12px;
- color: #fff;
- z-index: 1;
- height: 92px;
- box-sizing: border-box;
- &::after {
- content: "";
- z-index: -1;
- position: absolute;
- left: 0;
- top: 0;
- height: 140px;
- background: var(--content-status-bg, #2199F8);
- width: 100%;
- }
- .status-l {
- .status-title {
- font-size: 21px;
- display: flex;
- align-items: center;
- gap: 9px;
- .status-tag {
- font-size: 12px;
- color: #2199F8;
- background: #fff;
- border-radius: 2px;
- padding: 2px 5px;
- min-width: fit-content;
- }
- }
- .status-sub {
- margin-top: 10px;
- font-size: 13px;
- padding: 2px 8px;
- background: #fff;
- color: #2199F8;
- width: fit-content;
- border-radius: 2px;
- }
- .status-hint-card {
- margin-top: 10px;
- background: #fff;
- border-radius: 2px;
- padding: 5px 8px;
- box-sizing: border-box;
- .status-hint-text {
- font-size: 12px;
- color: #626262;
- }
- .status-hint-question {
- margin-top: 8px;
- background: #2199f8;
- border-radius: 4px;
- padding: 6px 8px;
- display: flex;
- align-items: center;
- gap: 6px;
- color: #fff;
- .status-hint-link-icon {
- flex-shrink: 0;
- font-size: 14px;
- }
- .status-hint-question-text {
- flex: 1;
- min-width: 0;
- font-size: 12px;
- text-decoration: underline;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- }
- }
- }
- .work-wrap {
- position: relative;
- top: 0;
- padding: 0 12px 12px;
- z-index: 2;
- // &.has-bottom {
- // margin-bottom: 88px;
- // }
- // &.warning-info-show {
- // // margin-bottom: 168px;
- // margin-bottom: 88px;
- // }
- }
- .box-wrap {
- .work-info {
- background: #ffffff;
- border-radius: 8px;
- padding: 10px 10px;
- box-shadow: 0 2px 8px rgba(15, 35, 52, 0.06);
- }
- .photo-box {
- margin-top: 10px;
- padding: 11px 10px;
- font-size: 14px;
- .tips-text {
- color: #FA7406;
- padding: 5px 10px;
- border: 1px solid #FF953D;
- border-radius: 5px;
- margin-bottom: 10px;
- background: #fff;
- }
- .photo-title {
- color: #000;
- padding-bottom: 9px;
- }
- .photo-sub-title {
- padding-bottom: 9px;
- color: #767676;
- }
- }
- }
- .group-info {
- margin-bottom: 10px;
- background: #ffffff;
- border-radius: 8px;
- padding: 14px 10px 10px 10px;
- box-shadow: 0 2px 8px rgba(15, 35, 52, 0.06);
- &.group-box {
- padding: 10px;
- .group-name {
- font-size: 14px;
- color: #767676;
- .group-name-text {
- color: #000;
- }
- }
- }
- .group-name {
- font-size: 14px;
- color: rgba(0, 0, 0, 0.2);
- .group-name-text {
- color: #767676;
- }
- }
- .group-sub {
- margin-top: 6px;
- font-size: 12px;
- color: rgba(0, 0, 0, 0.45);
- line-height: 1.5;
- }
- }
- .stage-card+.stage-card {
- margin-top: 10px;
- }
- .info-item+.info-item {
- margin-top: 10px;
- }
- .info-item {
- .info-title {
- display: flex;
- align-items: center;
- gap: 4px;
- color: #2199F8;
- font-weight: 500;
- .title-block {
- width: 6px;
- height: 6px;
- background: #2199F8;
- border-radius: 1px;
- transform: rotate(45deg);
- }
- }
- .info-value {
- padding-top: 4px;
- color: #ACACAC;
- line-height: 21px;
- white-space: pre-line;
- }
- .blod-text {
- font-weight: 500;
- }
- }
- .map-box {
- position: relative;
- .map-title {
- z-index: 12;
- position: absolute;
- border-radius: 5px 0 0 5px;
- top: 0;
- left: 0;
- height: 25px;
- padding: 0 18px;
- line-height: 25px;
- font-size: 12px;
- font-weight: 500;
- color: #fff;
- background: rgba(0, 0, 0, 0.45);
- backdrop-filter: blur(4px);
- }
- .map-container {
- /* 略增高,配合 fit 后更易看清整块地 */
- height: 200px;
- width: 100%;
- clip-path: inset(0px round 5px);
- }
- }
- .area-list {
- margin-top: 10px;
- .area-item+.area-item {
- margin-top: 6px;
- }
- .area-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 10px;
- border: 1px solid rgba(0, 0, 0, 0.1);
- border-radius: 6px;
- .area-l {
- display: flex;
- align-items: center;
- gap: 5px;
- .area-tag {
- background: rgba(98, 98, 98, 0.1);
- color: #626262;
- height: 22px;
- line-height: 22px;
- padding: 0 5px;
- border-radius: 2px;
- font-size: 12px;
- margin-left: 5px;
- display: inline-block;
- }
- }
- .area-r {
- background: #2199F8;
- color: #fff;
- font-size: 12px;
- font-weight: 500;
- cursor: pointer;
- height: 28px;
- line-height: 28px;
- padding: 0 10px;
- border-radius: 20px;
- }
- }
- }
- .ecological-plant-card {
- margin-top: 10px;
- border-radius: 8px;
- text-align: left;
- }
- .ecological-plant-text {
- color: #666666;
- font-size: 14px;
- line-height: 1.45;
- }
- .ecological-plant-line--sub {
- margin-top: 6px;
- }
- .ecological-plant-gallery {
- display: flex;
- gap: 12px;
- }
- .ecological-plant-thumb {
- width: 80px;
- height: 80px;
- object-fit: cover;
- border-radius: 8px;
- display: block;
- }
- .stage-card {
- .stage-header {
- padding-bottom: 12px;
- display: flex;
- align-items: center;
- gap: 5px;
- .stage-title {
- font-size: 16px;
- color: #000;
- }
- .title-tag {
- width: fit-content;
- font-size: 12px;
- height: 26px;
- line-height: 26px;
- color: #2199F8;
- background: rgba(33, 153, 248, 0.1);
- border-radius: 20px;
- padding: 0 8px;
- }
- .tag-0 {
- color: #FF953D;
- background: rgba(255, 149, 61, 0.1);
- }
- }
- .stage-info {
- padding: 8px 0 2px;
- border-top: 1px solid #f5f5f5;
- }
- }
- .form-item {
- display: flex;
- font-size: 14px;
- color: #767676;
- margin-top: 4px;
- .area-btn {
- border: 1px solid rgba(0, 0, 0, 0.1);
- padding: 0 10px;
- color: #767676;
- }
- .area-btn-right {
- padding-right: 4px;
- display: inline-flex;
- align-items: center;
- gap: 4px;
- }
- .item-name {
- padding-right: 26px;
- color: rgba(0, 0, 0, 0.2);
- }
- .item-text {
- flex: 1;
- line-height: 21px;
- &.light-text {
- color: #2199F8;
- }
- }
- .area-text {
- display: inline-flex;
- align-items: center;
- gap: 10px;
- }
- }
- .light-text {
- color: #2199F8;
- }
- .stage-tabs {
- display: inline-flex;
- gap: 8px;
- margin-top: 8px;
- .tab-pill {
- padding: 0 8px;
- font-size: 14px;
- text-align: center;
- border-radius: 2px;
- height: 28px;
- line-height: 28px;
- color: #767676;
- background: rgba(171, 171, 171, 0.1);
- &.active {
- background: rgba(33, 153, 248, 0.1);
- color: #2199F8;
- }
- }
- }
- .prescription-wrap {
- margin-top: 10px;
- overflow: hidden;
- .prescription-title {
- padding: 8px 10px;
- font-size: 13px;
- font-weight: 500;
- border-bottom: 1px solid rgba(225, 225, 225, 0.6);
- }
- }
- .prescription-table {
- font-size: 12px;
- text-align: center;
- border-radius: 6px;
- border: 1px solid rgba(225, 225, 225, 0.6);
- .table-header {
- display: flex;
- background: rgba(171, 171, 171, 0.1);
- padding: 9px 6px;
- color: #767676;
- }
- .table-row {
- display: flex;
- padding: 12px 6px;
- border-bottom: 1px solid rgba(0, 0, 0, 0.08);
- color: rgba(0, 0, 0, 0.76);
- &:last-child {
- border-bottom: none;
- }
- }
- .col {
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 0 2px;
- }
- .col-type {
- width: 56px;
- }
- .col-name {
- flex: 1;
- }
- .col-ratio {
- width: 64px;
- }
- .col-dose {
- width: 64px;
- }
- }
- .prescription-remark {
- margin-top: 8px;
- padding: 7px 10px;
- border-radius: 6px;
- color: #767676;
- background: rgba(171, 171, 171, 0.1);
- line-height: 21px;
- }
- .photo-img-wrap {
- display: flex;
- flex-wrap: wrap;
- gap: 10px;
- ::v-deep {
- .PhotoConsumer {
- width: 31%;
- height: 92px;
- }
- }
- .photo-img {
- width: 100%;
- height: 100%;
- position: relative;
- box-sizing: border-box;
- border: 2px solid transparent;
- border-radius: 8px;
- overflow: hidden;
- .fail-icon {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.6);
- border-radius: 8px;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- gap: 4px;
- .fail-icon-text {
- color: #FF943D;
- font-size: 12px;
- }
- }
- img {
- width: 100%;
- height: 100%;
- border-radius: 8px;
- object-fit: cover;
- }
- }
- }
- .execute-action {
- display: flex;
- align-items: center;
- justify-content: center;
- // justify-content: space-between;
- gap: 16px;
- .action-item {
- padding: 0 26px;
- height: 40px;
- line-height: 40px;
- border-radius: 26px;
- box-sizing: border-box;
- font-size: 14px;
- &.second {
- background: #ffffff;
- border: 0.5px solid rgba(153, 153, 153, 0.5);
- color: #999999;
- }
- &.primary {
- background: linear-gradient(180deg, #8ACBFF 0%, #2199F8 100%);
- color: #ffffff;
- }
- }
- &.no-share {
- justify-content: center;
- }
- }
- .warning-info {
- position: fixed;
- bottom: 100px;
- left: 10px;
- width: calc(100% - 20px);
- background: linear-gradient(180deg, #FFDFC5 -13%, #FFFFFF 39%);
- border-radius: 8px;
- padding: 14px 10px;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- justify-content: space-between;
- box-shadow: 0px 4px 4px 0px #0000001A;
- .warning-l {
- .warning-title {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- font-size: 16px;
- color: #FF953D;
- }
- .warning-text {
- color: rgba(0, 0, 0, 0.4);
- font-size: 12px;
- // margin-top: 4px;
- }
- }
- .warning-r {
- background: #FF953D;
- color: #fff;
- font-size: 12px;
- cursor: pointer;
- padding: 0 7px;
- height: 32px;
- line-height: 32px;
- border-radius: 20px;
- }
- }
- .fixed-btn-wrap {
- display: flex;
- justify-content: center;
- // justify-content: space-between;
- &.center-btn {
- justify-content: center;
- }
- position: fixed;
- bottom: 0px;
- left: 0;
- right: 0;
- background: #fff;
- padding: 10px 12px 36px 12px;
- box-sizing: border-box;
- // box-shadow: 0 -2px 8px rgba(15, 35, 52, 0.06);
- box-shadow: 2px 2px 4.5px 0px #00000066;
- .fixed-btn {
- min-width: 110px;
- height: 40px;
- line-height: 40px;
- text-align: center;
- border-radius: 20px;
- background: linear-gradient(180deg, #70bffe, #2199f8);
- color: #ffffff;
- font-size: 14px;
- }
- }
- .map-popup {
- width: 92%;
- // max-width: 420px;
- border-radius: 8px;
- padding: 12px;
- box-sizing: border-box;
- }
- </style>
|