index.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980
  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 ,reproductiveId} = miniJson.value;
  230. VE_API.z_farm_work_record
  231. .getDetailById({ farmWorkLibId, farmId, farmWorkRecordId: recordId, reproductiveId })
  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(0)) return 0;
  357. if (normalized.includes(2)) return 2;
  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. filePath: item,
  384. status: auditStatusList[index] === 2 ? 'failed' : 'success',
  385. message: auditStatusList[index] === 2 ? '审核失败' : '审核成功',
  386. });
  387. });
  388. console.log("evideimgsnceList", imgs);
  389. const isEdit = evidenceList?.length > 0 ? true : false;
  390. executePopupRef.value.openPopup(miniJson.value.recordId, {
  391. evidenceList: imgs,
  392. isEdit: isEdit,
  393. executeDate: detail.value.executeDate,
  394. executorOrganizationName: detail.value.executorOrganizationName,
  395. });
  396. };
  397. const showMapPopup = ref(false);
  398. const handleViewArea = () => {
  399. showMapPopup.value = true;
  400. }
  401. const toDraw = () => {
  402. router.push({
  403. path: "/draw_area",
  404. query: {
  405. subjectId: localStorage.getItem('selectedFarmId'),
  406. varietyId: miniJson.value.typeId,
  407. },
  408. });
  409. }
  410. const handleBack = () => {
  411. router.back();
  412. };
  413. const handleConvert = () => {
  414. const query = {
  415. askInfo: { title: "农事执行", content: "是否分享该农事给好友" },
  416. shareText: `${detail.value.farmWorkName}农事 已触发,请在最佳农时内执行`,
  417. targetUrl: `work_detail`,
  418. paramsPage: JSON.stringify({...miniJson.value, hideDraw: true}),
  419. imageUrl: 'https://birdseye-img.sysuimars.com/birdseye-look-mini/work_img.png',
  420. };
  421. wx.miniProgram.navigateTo({
  422. url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
  423. });
  424. };
  425. // 获取当前段的执行方式
  426. const getStageExecutionMethod = (stageIndex) => {
  427. const stage = stageList.value?.[stageIndex];
  428. const availableTabs = getAvailableExecutionTabs(stage);
  429. if (!availableTabs.length) return 1;
  430. const val = stageExecutionMethods.value[stageIndex];
  431. const isValidSelected = availableTabs.some(
  432. (tab) => Number(tab.value) === Number(val)
  433. );
  434. return isValidSelected ? val : availableTabs[0].value;
  435. };
  436. // 根据当前执行方式,获取对应的参数(配比、单亩用量、备注)
  437. const getPesticideParam = (item, stageIndex) => {
  438. if (!item?.params || !Array.isArray(item.params)) return null;
  439. const currentMethod = getStageExecutionMethod(stageIndex);
  440. return (
  441. item.params.find((param) => param.executionMethod === currentMethod) || null
  442. );
  443. };
  444. const getParamRemark = (item, stageIndex) => {
  445. const param = getPesticideParam(item, stageIndex);
  446. return param?.remark || item.remark || "";
  447. };
  448. const changeExecutionMethod = (stageIndex, value) => {
  449. const stage = stageList.value?.[stageIndex];
  450. const availableTabs = getAvailableExecutionTabs(stage);
  451. const isAllowed = availableTabs.some(
  452. (tab) => Number(tab.value) === Number(value)
  453. );
  454. if (!isAllowed) return;
  455. stageExecutionMethods.value = {
  456. ...stageExecutionMethods.value,
  457. [stageIndex]: value
  458. };
  459. };
  460. </script>
  461. <style scoped lang="scss">
  462. .work-detail {
  463. height: 100vh;
  464. background: #f2f3f5;
  465. display: flex;
  466. flex-direction: column;
  467. .work-detail-content {
  468. flex: 1;
  469. overflow: auto;
  470. }
  471. }
  472. .content-status {
  473. position: relative;
  474. padding: 16px 12px 0 12px;
  475. color: #fff;
  476. z-index: 1;
  477. height: 100px;
  478. box-sizing: border-box;
  479. &::after {
  480. content: "";
  481. z-index: -1;
  482. position: absolute;
  483. left: 0;
  484. top: 0;
  485. height: 100px;
  486. background: #C7C7C7;
  487. // background: #FF953D;
  488. width: 100%;
  489. }
  490. &.status-0 {
  491. &::after {
  492. background: #C7C7C7;
  493. }
  494. }
  495. &.status-5 {
  496. padding-top: 30px;
  497. &::after {
  498. background: #2199F8;
  499. }
  500. }
  501. &.status-3, &.audit-2, &.audit-0 {
  502. &::after {
  503. background: #FF953D;
  504. }
  505. }
  506. &.audit-2 {
  507. padding-top: 30px;
  508. }
  509. &.status--1 {
  510. &::after {
  511. background: #FF4F4F;
  512. }
  513. }
  514. &.status--2 {
  515. &::after {
  516. background: #C7C7C7;
  517. }
  518. }
  519. .status-l {
  520. .status-title {
  521. font-size: 22px;
  522. }
  523. .status-sub {
  524. font-size: 14px;
  525. }
  526. }
  527. }
  528. .work-wrap {
  529. position: relative;
  530. top: -16px;
  531. padding: 0 12px 12px;
  532. z-index: 2;
  533. &.has-bottom {
  534. margin-bottom: 76px;
  535. }
  536. }
  537. .box-wrap {
  538. // background: #ffffff;
  539. // border-radius: 8px;
  540. // padding: 14px 10px 10px 10px;
  541. // box-shadow: 0 2px 8px rgba(15, 35, 52, 0.06);
  542. .work-info {
  543. background: #ffffff;
  544. border-radius: 8px;
  545. padding: 14px 10px 10px 10px;
  546. box-shadow: 0 2px 8px rgba(15, 35, 52, 0.06);
  547. }
  548. .photo-box {
  549. margin-top: 10px;
  550. padding: 11px 10px;
  551. font-size: 14px;
  552. .tips-text {
  553. color: #FA7406;
  554. padding: 5px 10px;
  555. border: 1px solid #FF953D;
  556. border-radius: 5px;
  557. margin-bottom: 10px;
  558. background: #fff;
  559. }
  560. .photo-title {
  561. color: #000;
  562. padding-bottom: 9px;
  563. }
  564. .photo-sub-title {
  565. padding-bottom: 9px;
  566. color: #767676;
  567. }
  568. }
  569. }
  570. .group-info {
  571. margin-bottom: 10px;
  572. background: #ffffff;
  573. border-radius: 8px;
  574. padding: 14px 10px 10px 10px;
  575. box-shadow: 0 2px 8px rgba(15, 35, 52, 0.06);
  576. &.group-box {
  577. padding: 10px;
  578. .group-name {
  579. font-size: 14px;
  580. color: #767676;
  581. .group-name-text {
  582. color: #000;
  583. }
  584. }
  585. }
  586. .group-name {
  587. font-size: 14px;
  588. color: rgba(0, 0, 0, 0.2);
  589. .group-name-text {
  590. color: #767676;
  591. }
  592. }
  593. .group-sub {
  594. margin-top: 6px;
  595. font-size: 12px;
  596. color: rgba(0, 0, 0, 0.45);
  597. line-height: 1.5;
  598. }
  599. }
  600. .stage-card+.stage-card {
  601. margin-top: 10px;
  602. }
  603. .stage-card {
  604. .stage-header {
  605. padding-bottom: 12px;
  606. display: flex;
  607. align-items: center;
  608. gap: 5px;
  609. .stage-title {
  610. font-size: 16px;
  611. color: #000;
  612. }
  613. .title-tag {
  614. width: fit-content;
  615. font-size: 12px;
  616. height: 26px;
  617. line-height: 26px;
  618. color: #2199F8;
  619. background: rgba(33, 153, 248, 0.1);
  620. border-radius: 20px;
  621. padding: 0 8px;
  622. }
  623. .tag-0 {
  624. color: #FF953D;
  625. background: rgba(255, 149, 61, 0.1);
  626. }
  627. }
  628. .stage-info {
  629. padding: 8px 0 2px;
  630. border-top: 1px solid #f5f5f5;
  631. }
  632. }
  633. .form-item {
  634. display: flex;
  635. font-size: 14px;
  636. color: #767676;
  637. margin-top: 4px;
  638. .area-btn {
  639. border: 1px solid rgba(0, 0, 0, 0.1);
  640. padding: 0 10px;
  641. color: #767676;
  642. }
  643. .area-btn-right {
  644. padding-right: 4px;
  645. display: inline-flex;
  646. align-items: center;
  647. gap: 4px;
  648. }
  649. .item-name {
  650. padding-right: 26px;
  651. color: rgba(0, 0, 0, 0.2);
  652. }
  653. .item-text {
  654. flex: 1;
  655. line-height: 21px;
  656. &.light-text {
  657. color: #2199F8;
  658. }
  659. }
  660. .area-text {
  661. display: inline-flex;
  662. align-items: center;
  663. gap: 10px;
  664. }
  665. }
  666. .light-text {
  667. color: #2199F8;
  668. }
  669. .stage-tabs {
  670. display: inline-flex;
  671. gap: 8px;
  672. margin-top: 8px;
  673. .tab-pill {
  674. padding: 0 8px;
  675. font-size: 14px;
  676. text-align: center;
  677. border-radius: 2px;
  678. height: 28px;
  679. line-height: 28px;
  680. color: #767676;
  681. background: rgba(171, 171, 171, 0.1);
  682. &.active {
  683. background: rgba(33, 153, 248, 0.1);
  684. color: #2199F8;
  685. }
  686. }
  687. }
  688. .prescription-wrap {
  689. margin-top: 10px;
  690. overflow: hidden;
  691. .prescription-title {
  692. padding: 8px 10px;
  693. font-size: 13px;
  694. font-weight: 500;
  695. border-bottom: 1px solid rgba(225, 225, 225, 0.6);
  696. }
  697. }
  698. .prescription-table {
  699. font-size: 12px;
  700. text-align: center;
  701. border-radius: 6px;
  702. border: 1px solid rgba(225, 225, 225, 0.6);
  703. .table-header {
  704. display: flex;
  705. background: rgba(171, 171, 171, 0.1);
  706. padding: 9px 6px;
  707. color: #767676;
  708. }
  709. .table-row {
  710. display: flex;
  711. padding: 12px 6px;
  712. border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  713. color: rgba(0, 0, 0, 0.76);
  714. &:last-child {
  715. border-bottom: none;
  716. }
  717. }
  718. .col {
  719. display: flex;
  720. align-items: center;
  721. justify-content: center;
  722. padding: 0 2px;
  723. }
  724. .col-type {
  725. width: 56px;
  726. }
  727. .col-name {
  728. flex: 1;
  729. }
  730. .col-ratio {
  731. width: 64px;
  732. }
  733. .col-dose {
  734. width: 64px;
  735. }
  736. }
  737. .prescription-remark {
  738. margin-top: 8px;
  739. padding: 7px 10px;
  740. border-radius: 6px;
  741. color: #767676;
  742. background: rgba(171, 171, 171, 0.1);
  743. line-height: 21px;
  744. }
  745. .photo-img-wrap {
  746. display: flex;
  747. flex-wrap: wrap;
  748. gap: 10px;
  749. ::v-deep {
  750. .PhotoConsumer {
  751. width: 31%;
  752. height: 92px;
  753. }
  754. }
  755. .photo-img {
  756. width: 100%;
  757. height: 100%;
  758. position: relative;
  759. box-sizing: border-box;
  760. border: 2px solid transparent;
  761. border-radius: 8px;
  762. overflow: hidden;
  763. .fail-icon {
  764. position: absolute;
  765. top: 0;
  766. left: 0;
  767. width: 100%;
  768. height: 100%;
  769. background: rgba(0, 0, 0, 0.6);
  770. border-radius: 8px;
  771. display: flex;
  772. align-items: center;
  773. justify-content: center;
  774. flex-direction: column;
  775. gap: 4px;
  776. .fail-icon-text {
  777. color: #FF943D;
  778. font-size: 12px;
  779. }
  780. }
  781. img {
  782. width: 100%;
  783. height: 100%;
  784. border-radius: 8px;
  785. object-fit: cover;
  786. }
  787. }
  788. }
  789. .execute-action {
  790. display: flex;
  791. align-items: center;
  792. // justify-content: center;
  793. justify-content: space-between;
  794. gap: 16px;
  795. .action-item {
  796. padding: 0 26px;
  797. height: 40px;
  798. line-height: 40px;
  799. border-radius: 26px;
  800. box-sizing: border-box;
  801. font-size: 14px;
  802. &.second {
  803. background: #ffffff;
  804. border: 0.5px solid rgba(153, 153, 153, 0.5);
  805. color: #999999;
  806. }
  807. &.primary {
  808. background: linear-gradient(180deg, #8ACBFF 0%, #2199F8 100%);
  809. color: #ffffff;
  810. }
  811. }
  812. &.no-share {
  813. justify-content: center;
  814. }
  815. }
  816. .fixed-btn-wrap {
  817. display: flex;
  818. // justify-content: center;
  819. justify-content: space-between;
  820. &.center-btn {
  821. justify-content: center;
  822. }
  823. position: fixed;
  824. bottom: 0px;
  825. left: 0;
  826. right: 0;
  827. background: #fff;
  828. padding: 10px 12px 36px 12px;
  829. box-sizing: border-box;
  830. // box-shadow: 0 -2px 8px rgba(15, 35, 52, 0.06);
  831. box-shadow: 2px 2px 4.5px 0px #00000066;
  832. .fixed-btn {
  833. min-width: 110px;
  834. height: 40px;
  835. line-height: 40px;
  836. text-align: center;
  837. border-radius: 20px;
  838. background: linear-gradient(180deg, #70bffe, #2199f8);
  839. color: #ffffff;
  840. font-size: 14px;
  841. }
  842. }
  843. .map-popup {
  844. width: 92%;
  845. // max-width: 420px;
  846. border-radius: 8px;
  847. padding: 12px;
  848. box-sizing: border-box;
  849. }
  850. </style>