index copy.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977
  1. <template>
  2. <div class="work-detail">
  3. <custom-header name="农事详情" v-if="!miniJson?.hideDraw" :showClose="false" isGoBack @goback="handleBack" />
  4. <div class="work-detail-content">
  5. <!-- 顶部状态 -->
  6. <div class="content-status" :class="['status-' + detail?.flowStatus, 'audit-' + getAuditStatusPriority(detail?.executeEvidenceAuditStatus)]">
  7. <div class="status-l">
  8. <div class="status-title">{{ handleTagType(detail?.flowStatus) }}</div>
  9. <div class="status-sub" v-if="triggerDateText && (detail?.flowStatus == -1 || detail?.flowStatus == -2)">
  10. 执行时间已经过去 {{ Math.abs(daysDiff) }} 天了
  11. </div>
  12. <div class="status-sub" v-if="detail?.flowStatus === 3 && getAuditStatusPriority(detail?.executeEvidenceAuditStatus) !== 2">
  13. <template v-if="daysDiff > 0">
  14. 距离执行时间还差 {{ Math.abs(daysDiff) }} 天
  15. </template>
  16. <template v-else-if="daysDiff === 0">
  17. 执行时间为今天
  18. </template>
  19. <template v-else>
  20. 执行时间已过
  21. </template>
  22. </div>
  23. <div class="status-sub" v-if="!detail?.flowStatus || detail?.flowStatus === 0">
  24. 预计触发时间 {{ detail?.executeDate || "--" }}
  25. </div>
  26. </div>
  27. </div>
  28. <div class="work-wrap" :class="{ 'has-bottom': info?.appType === 2 || (info?.appType === 1 && detail?.flowStatus === 3) }">
  29. <!-- 农事组信息 -->
  30. <div class="box-wrap group-info group-box" v-if="(detail?.executionLimitDays || detail?.executionLimitDays === 0) && detail?.flowStatus !== 5">
  31. <div class="group-name">
  32. 该农事为 <span class="light-text">标准防治溯源农事</span> ,请在<span v-if="detail?.flowStatus !== 3">触发后</span> <span class="light-text">{{detail?.executionLimitDays}}天内</span>
  33. 完成溯源认证上传,如果逾期未认证,该农事将不可溯源认证,且不计入飞鸟有味平台
  34. </div>
  35. </div>
  36. <!-- 每一段农事 -->
  37. <div v-for="(prescription, index) in stageList" :key="index" class="box-wrap stage-card">
  38. <div class="work-info">
  39. <div class="stage-header">
  40. <div class="stage-title">{{ detail.farmWorkName }}</div>
  41. </div>
  42. <div class="stage-info">
  43. <div class="form-item">
  44. <div class="item-name">农事目的</div>
  45. <div class="item-text">
  46. {{ prescription.purpose || prescription.purposeName || "--" }}
  47. </div>
  48. </div>
  49. <div class="form-item">
  50. <div class="item-name">农事时间</div>
  51. <div class="item-text">
  52. {{ detail.executeDate || "--" }}
  53. </div>
  54. </div>
  55. <div class="form-item">
  56. <div class="item-name">执行区域</div>
  57. <div class="item-text light-text area-text">
  58. {{ detail?.executionRegion?.regionName }}种植区域
  59. <div class="area-btn" v-if="detail?.executionRegion?.regionRange" @click="handleViewArea">查看区域</div>
  60. <div class="area-btn area-btn-right" @click="toDraw" v-if="!detail?.executionRegion?.regionRange && !miniJson?.hideDraw">建议勾选<el-icon><ArrowRight /></el-icon></div>
  61. </div>
  62. </div>
  63. <div class="form-item">
  64. <div class="item-name">注意事项</div>
  65. <div class="item-text">
  66. {{ detail.remark || "--" }}
  67. </div>
  68. </div>
  69. <div class="form-item" v-if="hasAnyAvailableExecutionMethod(prescription)">
  70. <div class="item-name">药肥处方</div>
  71. </div>
  72. </div>
  73. <!-- 执行方式 -->
  74. <div class="stage-tabs" v-if="hasAnyAvailableExecutionMethod(prescription)">
  75. <div v-for="tab in getAvailableExecutionTabs(prescription)" :key="tab.value" class="tab-pill"
  76. :class="{ active: getStageExecutionMethod(index) === tab.value }"
  77. @click="changeExecutionMethod(index, tab.value)">
  78. {{ tab.label }}
  79. </div>
  80. </div>
  81. <!-- 药物处方表 -->
  82. <div class="prescription-wrap"
  83. v-if="prescription.pesticideList && prescription.pesticideList.length && hasAnyAvailableExecutionMethod(prescription)">
  84. <div class="prescription-table">
  85. <div class="table-header">
  86. <div class="col col-type">使用功效</div>
  87. <div class="col col-name">药肥名称</div>
  88. <div class="col col-ratio">药肥配比</div>
  89. </div>
  90. <div v-for="(item, i) in prescription.pesticideList" :key="i" class="table-row">
  91. <div class="col col-type">
  92. {{ item.typeName || "--" }}
  93. </div>
  94. <div class="col col-name">
  95. {{ item.name || item.pesticideFertilizerName || "--" }}
  96. </div>
  97. <div class="col col-ratio">
  98. {{ getPesticideParam(item, index)?.ratio || "--" }}倍
  99. </div>
  100. </div>
  101. </div>
  102. <div v-if="hasRemark(prescription, index)" class="prescription-remark">
  103. <span v-for="(item, idx) in [prescription.pesticideList[0]]" :key="idx">
  104. <template v-if="getParamRemark(item, index)">
  105. {{ getParamRemark(item, index) }}
  106. <br />
  107. </template>
  108. </span>
  109. </div>
  110. </div>
  111. </div>
  112. <!-- 农事凭证 -->
  113. <div class="work-info photo-box" v-if="prescription.cropAlbum && prescription.cropAlbum.length">
  114. <div class="photo-title">农事凭证</div>
  115. <div class="tips-text" v-if="detail?.imageAuditRejectReason">{{ detail?.imageAuditRejectReason }}</div>
  116. <div class="photo-sub-title" v-if="info?.appType === 1">来自于 {{ detail?.executorOrganizationName || "--" }}</div>
  117. <div class="photo-img-wrap">
  118. <photo-provider :photo-closable="true">
  119. <photo-consumer v-for="(src, index) in prescription.cropAlbum" intro="农事凭证" :key="index"
  120. :src="base_img_url2 + src.filename">
  121. <div class="photo-img">
  122. <img :src="base_img_url2 + src.filename" />
  123. <div class="fail-icon" v-if="failIndex(index) === 2">
  124. <el-icon size="24" color="#FF953D"><WarningFilled /></el-icon>
  125. <div class="fail-icon-text">审核失败</div>
  126. </div>
  127. </div>
  128. </photo-consumer>
  129. </photo-provider>
  130. </div>
  131. </div>
  132. </div>
  133. <!-- 底部按钮 -->
  134. <div class="fixed-btn-wrap center-btn" v-if="info?.appType === 2">
  135. <div class="fixed-btn" @click="handleConvert">
  136. 转发农事
  137. </div>
  138. </div>
  139. <div class="fixed-btn-wrap execute-action" :class="{ 'no-share': miniJson?.hideDraw }" v-if="info?.appType === 1 && detail?.flowStatus === 3">
  140. <div class="action-item second" v-if="!miniJson?.hideDraw" @click="handleConvert">转发农事</div>
  141. <div class="action-item primary" @click="handleExecute">溯源认证</div>
  142. </div>
  143. </div>
  144. </div>
  145. <ExecutePopup ref="executePopupRef" @executeSuccess="getDetail" />
  146. <upload-tips v-model:show="showUploadTipsPopup" />
  147. </div>
  148. <!-- 执行区域地图弹窗 -->
  149. <popup v-model:show="showMapPopup" closeable class="map-popup">
  150. <map-info :rangeWkt="detail?.executionRegion?.regionRange" />
  151. </popup>
  152. </template>
  153. <script setup>
  154. import { ElMessage } from "element-plus";
  155. import wx from "weixin-js-sdk";
  156. import customHeader from "@/components/customHeader.vue";
  157. import { ref, computed, onMounted, onActivated } from "vue";
  158. import { useRouter } from "vue-router";
  159. import { formatDate } from "@/common/commonFun";
  160. import ExecutePopup from "./components/executePopup.vue";
  161. import { base_img_url2 } from "@/api/config";
  162. import UploadTips from "@/components/popup/uploadTips.vue";
  163. import { Popup } from "vant";
  164. import MapInfo from "./components/mapInfo.vue";
  165. import { useRoute } from "vue-router";
  166. const route = useRoute();
  167. const showUploadTipsPopup = ref(false);
  168. const router = useRouter();
  169. // const info = JSON.parse(localStorage.getItem("localUserInfo") || "{}");
  170. const info = { appType: 1 };
  171. /** 接口根级与 detail 合并后的详情(pesticideList、prescriptionList) */
  172. const detail = ref({
  173. farmId: null,
  174. farmWorkLibId: null,
  175. farmWorkName: "",
  176. flowStatus: null,
  177. purpose: "",
  178. speciesId: null,
  179. speciesName: "",
  180. executeDate: null,
  181. intervelTime: null,
  182. remark: "",
  183. pesticideList: [],
  184. prescriptionList: [],
  185. confirmPicture: [],
  186. executeEvidence: [],
  187. expertName: "",
  188. expertPrescription: "",
  189. id: null,
  190. postId: null,
  191. post: null,
  192. expertNameFromFarmBasicInfo: "",
  193. rangeWkt: null,
  194. });
  195. /** 凭证图片统一为 { filename } */
  196. const normalizeCropAlbum = (album) => {
  197. if (!album || !Array.isArray(album)) return [];
  198. return album
  199. .map((x) => {
  200. if (!x) return null;
  201. if (typeof x === "string") return { filename: x };
  202. if (x.filename) return x;
  203. return null;
  204. })
  205. .filter(Boolean);
  206. };
  207. const maybeShowUploadTips = () => {
  208. if (detail.value?.flowStatus !== 1) return;
  209. const shown = localStorage.getItem('upload_tips');
  210. if (shown === "1") return;
  211. localStorage.setItem('upload_tips', "1");
  212. showUploadTipsPopup.value = true;
  213. };
  214. onMounted(() => {
  215. maybeShowUploadTips();
  216. });
  217. const miniJson = ref(null);
  218. onActivated(() => {
  219. if (route.query?.miniJson) {
  220. const miniJsonObj = JSON.parse(route.query.miniJson);
  221. miniJson.value = JSON.parse(miniJsonObj.paramsPage);
  222. } else {
  223. miniJson.value = null;
  224. }
  225. getDetail();
  226. });
  227. const getDetail = () => {
  228. if (!miniJson.value) return;
  229. const { farmWorkLibId, farmId, recordId } = miniJson.value;
  230. VE_API.z_farm_work_record
  231. .getDetailById({ farmWorkLibId, farmId, farmWorkRecordId: recordId })
  232. .then(({ data }) => {
  233. const inner =
  234. data?.detail && typeof data.detail === "object"
  235. ? { ...data.detail }
  236. : {};
  237. detail.value = {
  238. ...inner,
  239. post: data?.post ?? null,
  240. executionRegion: data?.executionRegion ?? null,
  241. expertNameFromFarmBasicInfo:
  242. data?.expertNameFromFarmBasicInfo ?? "",
  243. rangeWkt: data?.rangeWkt ?? null,
  244. };
  245. });
  246. };
  247. // 计算距离执行时间的天数差
  248. const daysDiff = computed(() => {
  249. if (!detail.value?.executeDate) {
  250. return '--';
  251. }
  252. const executeDate = new Date(detail.value.executeDate);
  253. const today = new Date();
  254. // 将时间设置为 00:00:00,只比较日期
  255. executeDate.setHours(0, 0, 0, 0);
  256. today.setHours(0, 0, 0, 0);
  257. // 计算天数差(毫秒转天数)
  258. const diffTime = executeDate.getTime() - today.getTime();
  259. const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));
  260. return diffDays;
  261. });
  262. // 执行方式 Tab 配置
  263. const executionTabs = [
  264. { label: "植保机", value: 1 },
  265. { label: "人工手持", value: 2 },
  266. { label: "地面机械", value: 3 }
  267. ];
  268. // 每一段农事的当前执行方式(索引 -> 执行方式),默认 1:植保机
  269. const stageExecutionMethods = ref({});
  270. const executePopupRef = ref(null);
  271. const hasTextValue = (val) => {
  272. if (val === null || val === undefined) return false;
  273. return String(val).trim() !== "";
  274. };
  275. const hasValidParamForMethod = (item, methodValue) => {
  276. if (!item?.params || !Array.isArray(item.params)) return false;
  277. const methodParam = item.params.find(
  278. (param) => Number(param.executionMethod) === Number(methodValue)
  279. );
  280. if (!methodParam) return false;
  281. return hasTextValue(methodParam.ratio) || hasTextValue(methodParam.remark);
  282. };
  283. const getAvailableExecutionTabs = (prescription) => {
  284. const list = prescription?.pesticideList;
  285. if (!Array.isArray(list) || !list.length) return [];
  286. return executionTabs.filter((tab) =>
  287. list.some((item) => hasValidParamForMethod(item, tab.value))
  288. );
  289. };
  290. const hasAnyAvailableExecutionMethod = (prescription) => {
  291. return getAvailableExecutionTabs(prescription).length > 0;
  292. };
  293. const triggerDateText = computed(() => {
  294. if (!detail.value.executeDate) return "";
  295. const d = formatDate(detail.value.executeDate);
  296. return d.replace(/-/g, ".");
  297. });
  298. /**
  299. * 展示用「分段」列表:detail.pesticideList 或 prescriptionList 推导
  300. */
  301. const stageList = computed(() => {
  302. const d = detail.value;
  303. if (!d) return [];
  304. // if (Array.isArray(d.pesticideList) && d.pesticideList.length) {
  305. return [
  306. {
  307. ...d,
  308. pesticideList: d.pesticideList,
  309. cropAlbum: normalizeCropAlbum(
  310. d.confirmPicture?.length
  311. ? d.confirmPicture
  312. : d.executeEvidence
  313. ),
  314. },
  315. ];
  316. // }
  317. // return [];
  318. });
  319. const hasRemark = (prescription, stageIndex) => {
  320. if (!prescription?.pesticideList || !Array.isArray(prescription.pesticideList)) return false;
  321. const currentMethod = getStageExecutionMethod(stageIndex);
  322. return prescription.pesticideList.some((item) => {
  323. if (!item.params || !Array.isArray(item.params)) return false;
  324. const p = item.params.find((param) => param.executionMethod === currentMethod);
  325. return !!(p && p.remark);
  326. });
  327. };
  328. const handleTagType = (tagType) => {
  329. if (tagType == 0) return "待触发";
  330. if (tagType == -1) return "已过期";
  331. if (tagType == -2) return "已过期";
  332. if (tagType == 3) {
  333. const status = getAuditStatusPriority(detail.value?.executeEvidenceAuditStatus);
  334. if (status === 2) {
  335. return "审核失败";
  336. }
  337. return "待认证"
  338. }
  339. if (tagType == 5) {
  340. const status = getAuditStatusPriority(detail.value?.executeEvidenceAuditStatus);
  341. if (status === 2) {
  342. return "审核失败";
  343. }
  344. if (status === 0) {
  345. return "审核中";
  346. }
  347. return "已完成";
  348. }
  349. return "待触发"
  350. }
  351. // 审核状态优先级:2 > 0 > 1
  352. const getAuditStatusPriority = (auditStatusList) => {
  353. if (!Array.isArray(auditStatusList) || !auditStatusList.length) return 1;
  354. const normalized = auditStatusList.map((x) => Number(x)).filter((x) => [0, 1, 2].includes(x));
  355. if (!normalized.length) return 1;
  356. if (normalized.includes(2)) return 2;
  357. if (normalized.includes(0)) return 0;
  358. return 1;
  359. };
  360. // 审核是否失败
  361. const failIndex = (index) => {
  362. return detail.value?.executeEvidenceAuditStatus[index]
  363. }
  364. const handleExecute = () => {
  365. // const today = new Date();
  366. // const executeDate = new Date(detail.value.executeDate);
  367. // if (executeDate.getTime() > today.getTime()) {
  368. // ElMessage.warning('未到农事执行时间,无法溯源认证');
  369. // return;
  370. // }
  371. const evidenceList = normalizeCropAlbum(
  372. detail.value?.confirmPicture?.length
  373. ? detail.value.confirmPicture
  374. : detail.value.executeEvidence
  375. ).map((item) => item.filename);
  376. const auditStatusList = Array.isArray(detail.value?.executeEvidenceAuditStatus)
  377. ? detail.value.executeEvidenceAuditStatus
  378. : [];
  379. let imgs = []
  380. evidenceList.forEach((item, index) => {
  381. imgs.push({
  382. url: base_img_url2 + item,
  383. status: auditStatusList[index] === 2 ? 'failed' : 'success',
  384. message: auditStatusList[index] === 2 ? '审核失败' : '审核成功',
  385. });
  386. });
  387. console.log("evideimgsnceList", imgs);
  388. executePopupRef.value.openPopup(miniJson.value.recordId, {
  389. evidenceList: imgs,
  390. executeDate: detail.value.executeDate,
  391. executorOrganizationName: detail.value.executorOrganizationName,
  392. });
  393. };
  394. const showMapPopup = ref(false);
  395. const handleViewArea = () => {
  396. showMapPopup.value = true;
  397. }
  398. const toDraw = () => {
  399. router.push({
  400. path: "/draw_area",
  401. query: {
  402. subjectId: localStorage.getItem('selectedFarmId'),
  403. varietyId: miniJson.value.typeId,
  404. },
  405. });
  406. }
  407. const handleBack = () => {
  408. router.back();
  409. };
  410. const handleConvert = () => {
  411. const query = {
  412. askInfo: { title: "农事执行", content: "是否分享该农事给好友" },
  413. shareText: `${detail.value.farmWorkName}农事 已触发,请在最佳农时内执行`,
  414. targetUrl: `work_detail`,
  415. paramsPage: JSON.stringify({...miniJson.value, hideDraw: true}),
  416. imageUrl: 'https://birdseye-img.sysuimars.com/birdseye-look-mini/work_img.png',
  417. };
  418. wx.miniProgram.navigateTo({
  419. url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
  420. });
  421. };
  422. // 获取当前段的执行方式
  423. const getStageExecutionMethod = (stageIndex) => {
  424. const stage = stageList.value?.[stageIndex];
  425. const availableTabs = getAvailableExecutionTabs(stage);
  426. if (!availableTabs.length) return 1;
  427. const val = stageExecutionMethods.value[stageIndex];
  428. const isValidSelected = availableTabs.some(
  429. (tab) => Number(tab.value) === Number(val)
  430. );
  431. return isValidSelected ? val : availableTabs[0].value;
  432. };
  433. // 根据当前执行方式,获取对应的参数(配比、单亩用量、备注)
  434. const getPesticideParam = (item, stageIndex) => {
  435. if (!item?.params || !Array.isArray(item.params)) return null;
  436. const currentMethod = getStageExecutionMethod(stageIndex);
  437. return (
  438. item.params.find((param) => param.executionMethod === currentMethod) || null
  439. );
  440. };
  441. const getParamRemark = (item, stageIndex) => {
  442. const param = getPesticideParam(item, stageIndex);
  443. return param?.remark || item.remark || "";
  444. };
  445. const changeExecutionMethod = (stageIndex, value) => {
  446. const stage = stageList.value?.[stageIndex];
  447. const availableTabs = getAvailableExecutionTabs(stage);
  448. const isAllowed = availableTabs.some(
  449. (tab) => Number(tab.value) === Number(value)
  450. );
  451. if (!isAllowed) return;
  452. stageExecutionMethods.value = {
  453. ...stageExecutionMethods.value,
  454. [stageIndex]: value
  455. };
  456. };
  457. </script>
  458. <style scoped lang="scss">
  459. .work-detail {
  460. height: 100vh;
  461. background: #f2f3f5;
  462. display: flex;
  463. flex-direction: column;
  464. .work-detail-content {
  465. flex: 1;
  466. overflow: auto;
  467. }
  468. }
  469. .content-status {
  470. position: relative;
  471. padding: 16px 12px 0 12px;
  472. color: #fff;
  473. z-index: 1;
  474. height: 100px;
  475. box-sizing: border-box;
  476. &::after {
  477. content: "";
  478. z-index: -1;
  479. position: absolute;
  480. left: 0;
  481. top: 0;
  482. height: 100px;
  483. background: #C7C7C7;
  484. // background: #FF953D;
  485. width: 100%;
  486. }
  487. &.status-0 {
  488. &::after {
  489. background: #C7C7C7;
  490. }
  491. }
  492. &.status-5 {
  493. padding-top: 30px;
  494. &::after {
  495. background: #2199F8;
  496. }
  497. }
  498. &.status-3, &.audit-2, &.audit-0 {
  499. &::after {
  500. background: #FF953D;
  501. }
  502. }
  503. &.audit-2 {
  504. padding-top: 30px;
  505. }
  506. &.status--1 {
  507. &::after {
  508. background: #FF4F4F;
  509. }
  510. }
  511. &.status--2 {
  512. &::after {
  513. background: #C7C7C7;
  514. }
  515. }
  516. .status-l {
  517. .status-title {
  518. font-size: 22px;
  519. }
  520. .status-sub {
  521. font-size: 14px;
  522. }
  523. }
  524. }
  525. .work-wrap {
  526. position: relative;
  527. top: -16px;
  528. padding: 0 12px 12px;
  529. z-index: 2;
  530. &.has-bottom {
  531. margin-bottom: 76px;
  532. }
  533. }
  534. .box-wrap {
  535. // background: #ffffff;
  536. // border-radius: 8px;
  537. // padding: 14px 10px 10px 10px;
  538. // box-shadow: 0 2px 8px rgba(15, 35, 52, 0.06);
  539. .work-info {
  540. background: #ffffff;
  541. border-radius: 8px;
  542. padding: 14px 10px 10px 10px;
  543. box-shadow: 0 2px 8px rgba(15, 35, 52, 0.06);
  544. }
  545. .photo-box {
  546. margin-top: 10px;
  547. padding: 11px 10px;
  548. font-size: 14px;
  549. .tips-text {
  550. color: #FA7406;
  551. padding: 5px 10px;
  552. border: 1px solid #FF953D;
  553. border-radius: 5px;
  554. margin-bottom: 10px;
  555. background: #fff;
  556. }
  557. .photo-title {
  558. color: #000;
  559. padding-bottom: 9px;
  560. }
  561. .photo-sub-title {
  562. padding-bottom: 9px;
  563. color: #767676;
  564. }
  565. }
  566. }
  567. .group-info {
  568. margin-bottom: 10px;
  569. background: #ffffff;
  570. border-radius: 8px;
  571. padding: 14px 10px 10px 10px;
  572. box-shadow: 0 2px 8px rgba(15, 35, 52, 0.06);
  573. &.group-box {
  574. padding: 10px;
  575. .group-name {
  576. font-size: 14px;
  577. color: #767676;
  578. .group-name-text {
  579. color: #000;
  580. }
  581. }
  582. }
  583. .group-name {
  584. font-size: 14px;
  585. color: rgba(0, 0, 0, 0.2);
  586. .group-name-text {
  587. color: #767676;
  588. }
  589. }
  590. .group-sub {
  591. margin-top: 6px;
  592. font-size: 12px;
  593. color: rgba(0, 0, 0, 0.45);
  594. line-height: 1.5;
  595. }
  596. }
  597. .stage-card+.stage-card {
  598. margin-top: 10px;
  599. }
  600. .stage-card {
  601. .stage-header {
  602. padding-bottom: 12px;
  603. display: flex;
  604. align-items: center;
  605. gap: 5px;
  606. .stage-title {
  607. font-size: 16px;
  608. color: #000;
  609. }
  610. .title-tag {
  611. width: fit-content;
  612. font-size: 12px;
  613. height: 26px;
  614. line-height: 26px;
  615. color: #2199F8;
  616. background: rgba(33, 153, 248, 0.1);
  617. border-radius: 20px;
  618. padding: 0 8px;
  619. }
  620. .tag-0 {
  621. color: #FF953D;
  622. background: rgba(255, 149, 61, 0.1);
  623. }
  624. }
  625. .stage-info {
  626. padding: 8px 0 2px;
  627. border-top: 1px solid #f5f5f5;
  628. }
  629. }
  630. .form-item {
  631. display: flex;
  632. font-size: 14px;
  633. color: #767676;
  634. margin-top: 4px;
  635. .area-btn {
  636. border: 1px solid rgba(0, 0, 0, 0.1);
  637. padding: 0 10px;
  638. color: #767676;
  639. }
  640. .area-btn-right {
  641. padding-right: 4px;
  642. display: inline-flex;
  643. align-items: center;
  644. gap: 4px;
  645. }
  646. .item-name {
  647. padding-right: 26px;
  648. color: rgba(0, 0, 0, 0.2);
  649. }
  650. .item-text {
  651. flex: 1;
  652. line-height: 21px;
  653. &.light-text {
  654. color: #2199F8;
  655. }
  656. }
  657. .area-text {
  658. display: inline-flex;
  659. align-items: center;
  660. gap: 10px;
  661. }
  662. }
  663. .light-text {
  664. color: #2199F8;
  665. }
  666. .stage-tabs {
  667. display: inline-flex;
  668. gap: 8px;
  669. margin-top: 8px;
  670. .tab-pill {
  671. padding: 0 8px;
  672. font-size: 14px;
  673. text-align: center;
  674. border-radius: 2px;
  675. height: 28px;
  676. line-height: 28px;
  677. color: #767676;
  678. background: rgba(171, 171, 171, 0.1);
  679. &.active {
  680. background: rgba(33, 153, 248, 0.1);
  681. color: #2199F8;
  682. }
  683. }
  684. }
  685. .prescription-wrap {
  686. margin-top: 10px;
  687. overflow: hidden;
  688. .prescription-title {
  689. padding: 8px 10px;
  690. font-size: 13px;
  691. font-weight: 500;
  692. border-bottom: 1px solid rgba(225, 225, 225, 0.6);
  693. }
  694. }
  695. .prescription-table {
  696. font-size: 12px;
  697. text-align: center;
  698. border-radius: 6px;
  699. border: 1px solid rgba(225, 225, 225, 0.6);
  700. .table-header {
  701. display: flex;
  702. background: rgba(171, 171, 171, 0.1);
  703. padding: 9px 6px;
  704. color: #767676;
  705. }
  706. .table-row {
  707. display: flex;
  708. padding: 12px 6px;
  709. border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  710. color: rgba(0, 0, 0, 0.76);
  711. &:last-child {
  712. border-bottom: none;
  713. }
  714. }
  715. .col {
  716. display: flex;
  717. align-items: center;
  718. justify-content: center;
  719. padding: 0 2px;
  720. }
  721. .col-type {
  722. width: 56px;
  723. }
  724. .col-name {
  725. flex: 1;
  726. }
  727. .col-ratio {
  728. width: 64px;
  729. }
  730. .col-dose {
  731. width: 64px;
  732. }
  733. }
  734. .prescription-remark {
  735. margin-top: 8px;
  736. padding: 7px 10px;
  737. border-radius: 6px;
  738. color: #767676;
  739. background: rgba(171, 171, 171, 0.1);
  740. line-height: 21px;
  741. }
  742. .photo-img-wrap {
  743. display: flex;
  744. flex-wrap: wrap;
  745. gap: 10px;
  746. ::v-deep {
  747. .PhotoConsumer {
  748. width: 31%;
  749. height: 92px;
  750. }
  751. }
  752. .photo-img {
  753. width: 100%;
  754. height: 100%;
  755. position: relative;
  756. box-sizing: border-box;
  757. border: 2px solid transparent;
  758. border-radius: 8px;
  759. overflow: hidden;
  760. .fail-icon {
  761. position: absolute;
  762. top: 0;
  763. left: 0;
  764. width: 100%;
  765. height: 100%;
  766. background: rgba(0, 0, 0, 0.6);
  767. border-radius: 8px;
  768. display: flex;
  769. align-items: center;
  770. justify-content: center;
  771. flex-direction: column;
  772. gap: 4px;
  773. .fail-icon-text {
  774. color: #FF943D;
  775. font-size: 12px;
  776. }
  777. }
  778. img {
  779. width: 100%;
  780. height: 100%;
  781. border-radius: 8px;
  782. object-fit: cover;
  783. }
  784. }
  785. }
  786. .execute-action {
  787. display: flex;
  788. align-items: center;
  789. // justify-content: center;
  790. justify-content: space-between;
  791. gap: 16px;
  792. .action-item {
  793. padding: 0 26px;
  794. height: 40px;
  795. line-height: 40px;
  796. border-radius: 26px;
  797. box-sizing: border-box;
  798. font-size: 14px;
  799. &.second {
  800. background: #ffffff;
  801. border: 0.5px solid rgba(153, 153, 153, 0.5);
  802. color: #999999;
  803. }
  804. &.primary {
  805. background: linear-gradient(180deg, #8ACBFF 0%, #2199F8 100%);
  806. color: #ffffff;
  807. }
  808. }
  809. &.no-share {
  810. justify-content: center;
  811. }
  812. }
  813. .fixed-btn-wrap {
  814. display: flex;
  815. // justify-content: center;
  816. justify-content: space-between;
  817. &.center-btn {
  818. justify-content: center;
  819. }
  820. position: fixed;
  821. bottom: 0px;
  822. left: 0;
  823. right: 0;
  824. background: #fff;
  825. padding: 10px 12px 36px 12px;
  826. box-sizing: border-box;
  827. // box-shadow: 0 -2px 8px rgba(15, 35, 52, 0.06);
  828. box-shadow: 2px 2px 4.5px 0px #00000066;
  829. .fixed-btn {
  830. min-width: 110px;
  831. height: 40px;
  832. line-height: 40px;
  833. text-align: center;
  834. border-radius: 20px;
  835. background: linear-gradient(180deg, #70bffe, #2199f8);
  836. color: #ffffff;
  837. font-size: 14px;
  838. }
  839. }
  840. .map-popup {
  841. width: 92%;
  842. // max-width: 420px;
  843. border-radius: 8px;
  844. padding: 12px;
  845. box-sizing: border-box;
  846. }
  847. </style>