detailWork.vue 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077
  1. <template>
  2. <div class="completed-work">
  3. <custom-header name="农事详情" :showClose="false" isGoBack @goback="handleClose"></custom-header>
  4. <div class="work-content">
  5. <div
  6. class="content-status"
  7. >
  8. <div class="status-l">
  9. <div class="stauts-text">待触发</div>
  10. <div class="stauts-sub-text" v-if="arrangeDetail?.interactionTime">
  11. <template v-if="daysDiff > 0">
  12. 距离触发还剩 <span class="time-text">{{ daysDiff }} 天</span>
  13. </template>
  14. <template v-else-if="daysDiff === 0">
  15. 触发时间为今天
  16. </template>
  17. <template v-else>
  18. 触发时间已过
  19. </template>
  20. </div>
  21. </div>
  22. <!-- <template v-if="query.status !== 'warning'">
  23. <div class="status-r" v-if="curRole == 0">{{ status === 0 ? "设置提醒" : "去评价" }}</div>
  24. <div class="status-r" v-if="curRole == 1">{{ status === 0 ? "提醒执行" : "提醒复核" }}</div>
  25. <div class="status-r" v-if="curRole == 2">{{ status === 0 ? "提醒执行" : "提醒复核" }}</div>
  26. </template> -->
  27. </div>
  28. <div class="work-wrap">
  29. <div class="box-wrap executor-info">
  30. <!-- <div class="executor-title">执行人</div> -->
  31. <div class="executor-content">
  32. <div class="executor-info mt-0">
  33. <div class="executor-avatar">
  34. <img
  35. src="https://birdseye-img-ali-cdn.sysuimars.com/16926861-1e20-4cbd-8bf2-90208db5a2d0/806080da-1a30-4b5b-b64b-b22e722c6cb6/DJI_202509010800_001_806080da-1a30-4b5b-b64b-b22e722c6cb6/DJI_20250901080536_0045_V_code-ws0fsmge97gh.jpeg?x-oss-process=image/resize,w_500"
  36. alt="执行人"
  37. />
  38. </div>
  39. <div class="executor-details">
  40. <div class="org-name">
  41. <span class="name">{{ detailData?.agriculturalName || "--" }}</span>
  42. <span class="rating">{{
  43. detailData.score ? detailData.score + "分" : ""
  44. }}</span>
  45. </div>
  46. <div class="service-info">
  47. <div class="service-item">
  48. 服务品种:
  49. <span v-if="speciesList.length">
  50. <span v-for="(sp, sIdx) in speciesList" :key="sIdx">
  51. {{ sp }}<template v-if="sIdx < speciesList.length - 1">、</template>
  52. </span>
  53. </span>
  54. <span v-else>--</span>
  55. </div>
  56. <div class="service-item">
  57. 服务设备:
  58. <span v-if="equipmentList.length">
  59. <span v-for="(eq, eIdx) in equipmentList" :key="eIdx">
  60. {{ eq }}<template v-if="eIdx < equipmentList.length - 1">、</template>
  61. </span>
  62. </span>
  63. <span v-else>--</span>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="farm-info">
  69. <div class="info-title-wrap" v-if="detailData?.prescription?.pesticideFertilizerList?.length">
  70. <div class="sub-title">药肥费用</div>
  71. <div class="info-more">
  72. {{ pesticideCostTotal ? formatArea(pesticideCostTotal) : "--" }}<span class="unit-text">元</span>
  73. </div>
  74. </div>
  75. <div class="info-content-wrap">
  76. <price-table :prescriptionData="detailData?.prescription" :area="detailData?.farm?.mianji">
  77. <template #bottomContent>
  78. <div class="price-bottom">
  79. <div class="info-title-wrap">
  80. <div class="sub-title">服务费用</div>
  81. <div class="info-more">
  82. {{ detailData?.serviceMuPrice ? serviceCostTotal : '--' }}
  83. <span class="unit-text">元</span>
  84. </div>
  85. </div>
  86. <div class="price-info">
  87. <div class="info-l">
  88. 单亩价格<span class="main-text">{{
  89. detailData?.serviceMuPrice
  90. ? detailData?.serviceMuPrice + "元/亩"
  91. : "--"
  92. }}</span>
  93. </div>
  94. <!-- <div class="info-l">
  95. 执行方式<span class="main-text">{{
  96. detailData?.executionMethodName || "人工"
  97. }}</span>
  98. </div>
  99. <div class="info-c">
  100. 亩单价<span class="main-text">{{
  101. detailData?.serviceMuPrice
  102. ? detailData?.serviceMuPrice + "元/亩"
  103. : "--"
  104. }}</span>
  105. </div>
  106. <div class="info-r">
  107. 亩数<span class="main-text">{{
  108. detailData?.farm?.mianji
  109. ? formatArea(detailData?.farm?.mianji) + "亩"
  110. : "--"
  111. }}</span>
  112. </div> -->
  113. </div>
  114. <div class="price-bottom-action">
  115. <div class="price-total">
  116. 报价合计:<span class="main-val">
  117. {{ totalCost ? formatArea(totalCost) : "--" }}</span
  118. >元
  119. </div>
  120. <div class="show-price-btn" v-if="curRole == 2" @click="showPriceSheetPopup">生成报价单</div>
  121. </div>
  122. </div>
  123. </template>
  124. </price-table>
  125. </div>
  126. </div>
  127. <!-- <div class="contact-buttons">
  128. <button class="contact-btn">电话联系</button>
  129. <button class="contact-btn">在线联系</button>
  130. </div> -->
  131. </div>
  132. </div>
  133. </div>
  134. <div class="work-wrap" :class="{ 'info-wrap': curRole == 2 }">
  135. <div class="box-wrap farm-data">
  136. <div class="card-title">
  137. <div>{{ detailData?.name }}<span class="type-tag">标准农事</span></div>
  138. <!-- <div class="point-wrap">
  139. <div class="point"></div>
  140. <span>2区</span>
  141. </div> -->
  142. <div class="tag-text" v-if="arrangeDetail?.isFollow !== undefined">{{ statusMap[arrangeDetail?.isFollow] }}</div>
  143. </div>
  144. <div class="data-content">
  145. <div class="form-item">
  146. <div class="item-name">农事编号</div>
  147. <div class="item-text">{{ detailData?.code }}</div>
  148. </div>
  149. <div class="form-item">
  150. <div class="item-name">服务亩数</div>
  151. <div class="item-text">
  152. {{ detailData?.farm?.mianji ? formatArea(detailData?.farm?.mianji) + "亩" : "--" }}
  153. </div>
  154. </div>
  155. <div class="form-item">
  156. <div class="item-name">服务区域</div>
  157. <div class="item-text">{{ detailData?.farm?.district }}</div>
  158. </div>
  159. <!-- <div class="form-item">
  160. <div class="item-name">触发条件</div>
  161. <div class="item-text">{{ detailData?.condition }}</div>
  162. </div> -->
  163. <div class="form-item">
  164. <div class="item-name">执行日期</div>
  165. <div class="item-text">{{ detailData?.executeDate || detailData?.expectedExecuteDate || detailData?.executeDate }}</div>
  166. </div>
  167. </div>
  168. </div>
  169. <div class="box-wrap farm-table">
  170. <div class="card-title">药物处方</div>
  171. <div class="table-item">
  172. <div class="form-item">
  173. <div class="item-name">施用方式</div>
  174. <div class="item-text">{{ detailData?.prescription?.usageMode || '其他' }}</div>
  175. </div>
  176. <div class="form-item">
  177. <div class="item-name">执行方式</div>
  178. <div class="item-text">{{ detailData?.prescription?.pesticideFertilizerList[0]?.executeStyle === 1 ? '无人机' : detailData?.prescription?.pesticideFertilizerList[0]?.executeStyle === 3 ? '无人机+人工' : '人工' }}</div>
  179. </div>
  180. </div>
  181. <div class="new-wrap" v-if="detailData?.prescription?.pesticideFertilizerList?.length">
  182. <div class="new-title">
  183. <div class="title-1"><div class="table-name">使用功效</div></div>
  184. <div class="title-2"><div class="table-name">药肥名称</div></div>
  185. <div class="title-4"><div class="table-name">药肥配比</div></div>
  186. <div class="title-5"><div class="table-name">单亩用量</div></div>
  187. </div>
  188. <div
  189. class="new-table-wrap"
  190. >
  191. <div
  192. class="new-prescription"
  193. v-for="(subP, subI) in detailData?.prescription?.pesticideFertilizerList"
  194. :key="subI"
  195. >
  196. <div class="new-table">
  197. <div class="line-l">
  198. <div class="line-1 title-1">{{ subP.typeName || '--' }}</div>
  199. <div class="line-2">{{ subP.name }}</div>
  200. </div>
  201. <div class="line-r">
  202. <div class="line-3">
  203. <div class="sub-line title-4">{{ subP.ratio }}倍</div>
  204. <div class="sub-line title-5">{{ subP.dosage }}{{ subP.unit }}</div>
  205. </div>
  206. </div>
  207. </div>
  208. <div class="note-text" v-if="subP.remark">{{ subP.remark }}</div>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. <!-- <div class="work-map">
  214. <div class="card-title">执行农事区域</div>
  215. <div class="map-content">
  216. <div class="map-dom" ref="areaRef"></div>
  217. </div>
  218. </div> -->
  219. </div>
  220. <!-- 农资,步骤:农事已确认 -->
  221. <div class="fixed-btn-wrap" v-if="curRole == 2">
  222. <div class="fixed-btn second" @click="editPrice">编辑报价</div>
  223. <div class="fixed-btn" @click="handleTimelineAction">转入农事任务</div>
  224. </div>
  225. </div>
  226. </div>
  227. <!-- 报价弹窗 -->
  228. <!-- <offer-popup :showPopup="showPopup" :executionData="executionData"></offer-popup> -->
  229. <!-- 服务报价单 -->
  230. <price-sheet-popup ref="priceSheetPopupRef"></price-sheet-popup>
  231. <!-- 新增:激活上传弹窗 -->
  232. <active-upload-popup ref="activeUploadPopupRef" @handleUploadSuccess="handleUploadSuccess"></active-upload-popup>
  233. </template>
  234. <script setup>
  235. import customHeader from "@/components/customHeader.vue";
  236. import { ref, computed, onActivated, onDeactivated, onMounted } from "vue";
  237. // import NewFarmMap from "./newFarmMap";
  238. import { useStore } from "vuex";
  239. import { Popup, Calendar } from "vant";
  240. import offerPopup from "@/components/popup/offerPopup.vue";
  241. import { useRouter, useRoute } from "vue-router";
  242. import farmSteps from "@/components/farmSteps.vue";
  243. import priceTable from "../agri_work/components/priceTable.vue";
  244. import priceSheetPopup from "@/components/popup/priceSheetPopup.vue";
  245. import { base_img_url2 } from "@/api/config";
  246. import { ElMessage } from "element-plus";
  247. import { formatArea, formatDate } from "@/common/commonFun";
  248. import wx from "weixin-js-sdk";
  249. import reviewUploadPopup from "@/components/popup/reviewUploadPopup.vue";
  250. import FnShareSheet from "@/components/pageComponents/FnShareSheet.vue";
  251. import activeUploadPopup from "@/components/popup/activeUploadPopup.vue";
  252. import eventBus from "@/api/eventBus";
  253. const router = useRouter();
  254. const store = useStore();
  255. const query = ref({});
  256. // 角色
  257. // const curRole = store.state.app.curRole
  258. const curRole = ref(localStorage.getItem("SET_USER_CUR_ROLE"));
  259. // const curRole = 2;
  260. // 农资待生成报价单--currentStep:1;curRole:2
  261. // 农资已执行,有执行照片,请求确认--currentStep:2;curRole:2
  262. // 0:执行, 1: 复核
  263. const status = ref(0);
  264. const uploadExecuteRef = ref(null);
  265. const showUpload = ref(false);
  266. const sectionId = ref(null);
  267. // 上传照片处理函数
  268. const handleUploadPhoto = ({ id }) => {
  269. showUpload.value = true;
  270. sectionId.value = id;
  271. };
  272. onDeactivated(() => {
  273. showUpload.value = false;
  274. sectionId.value = null;
  275. });
  276. const handleSelfDone = () => {
  277. VE_API.z_farm_work_record.updateFlowStatus({ id: query.value.id, targetFlowStatus: 5 }).then((res) => {
  278. if (res.code === 0) {
  279. showUpload.value = false;
  280. sectionId.value = null;
  281. setTimeout(() => {
  282. router.replace({
  283. path: "/review_work",
  284. query: {
  285. miniJson: JSON.stringify({ id: query.value.id, goBack: true }),
  286. },
  287. });
  288. }, 500)
  289. }
  290. });
  291. };
  292. const priceSheetPopupRef = ref(null);
  293. const showPriceSheetPopup = () => {
  294. priceSheetPopupRef.value.handleShowPopup({ id: detailData.value.id, farmId: query.value.farmId });
  295. };
  296. const userInfoStr = localStorage.getItem("localUserInfo");
  297. const userInfo = userInfoStr ? JSON.parse(userInfoStr) : {};
  298. const executorList = ref([])
  299. // 检查是否有"转入农事"权限
  300. const hasPlanPermission = computed(() => {
  301. try {
  302. const userInfoStr = localStorage.getItem("localUserInfo");
  303. if (!userInfoStr) return false;
  304. const userInfo = JSON.parse(userInfoStr);
  305. const permissions = userInfo.agriculturalPermissions || [];
  306. return permissions.includes("转入农事");
  307. } catch (error) {
  308. console.error("解析用户信息失败:", error);
  309. return false;
  310. }
  311. });
  312. onMounted(() => {
  313. getManagerList();
  314. });
  315. // 查询当前农资店的成员列表(只保留有"任务接单"权限的成员)
  316. const getManagerList = async () => {
  317. const { data } = await VE_API.mine.listManagerList({ onlyExecutor: true });
  318. if (data && data.length > 0) {
  319. // 过滤 permissionList 中包含"任务接单"的成员,并过滤掉超管(role为1)
  320. executorList.value = data.filter((item) => item.role !== 1);
  321. }
  322. };
  323. const activeUploadPopupRef = ref(null);
  324. const handleTimelineAction = (item) => {
  325. if (hasPlanPermission.value) {
  326. activeUploadPopupRef.value.showPopup({
  327. gardenIdVal: query.value.farmId,
  328. needExecutorVal: true,
  329. problemTitleVal: "请选择 " + detailData.value.name + " 执行截止时间",
  330. imgDescVal: "请上传凭证(转入农事任务凭证)",
  331. arrangeIdVal: query.value.arrangeId,
  332. executorListVal: executorList.value,
  333. farmWorkIdVal: query.value.id,
  334. schemeIdVal: detailData.value.schemeId,
  335. });
  336. } else {
  337. ElMessage.warning("您暂无权限操作");
  338. }
  339. };
  340. const editPrice = () => {
  341. if (!hasPlanPermission.value) {
  342. ElMessage.warning("您暂无权限操作");
  343. return;
  344. }
  345. router.push({
  346. path: "/modify",
  347. query: {
  348. isEdit: true,
  349. onlyPrice: true,
  350. farmId: query.value.farmId,
  351. arrangeId: query.value.arrangeId,
  352. farmWorkId: query.value.id,
  353. },
  354. });
  355. };
  356. const handleUploadSuccess = () => {
  357. router.back();
  358. };
  359. // 地图
  360. // const areaRef = ref(null);
  361. // let newFarmMap = new NewFarmMap();
  362. const quotationData = ref({});
  363. const parmasPage = ref({});
  364. const toList = (val) => {
  365. if (!val) return [];
  366. return JSON.parse(val);
  367. };
  368. const speciesList = computed(() => toList(detailData.value?.agricultural?.serviceSpecies));
  369. const equipmentList = computed(() => toList(detailData.value?.agricultural?.serviceEquipment));
  370. onActivated(async () => {
  371. query.value = useRoute().query?.miniJson ? JSON.parse(useRoute().query?.miniJson) : {};
  372. if (query.value?.paramsPage) {
  373. const data = JSON.parse(query.value.paramsPage);
  374. query.value.id = data.id;
  375. query.value.farmId = data.farmId;
  376. query.value.arrangeId = data.arrangeId;
  377. query.value.goBack = true;
  378. }
  379. const id = query.value?.id;
  380. if (id) {
  381. await getDetail();
  382. }
  383. });
  384. function getServiceCost(cost, area) {
  385. if (!cost || !area) return "--";
  386. return (parseFloat(cost) * parseFloat(area)).toFixed(2);
  387. }
  388. const detailData = ref({});
  389. // 计算距离执行时间的天数差
  390. const daysDiff = computed(() => {
  391. if (!arrangeDetail.value?.interactionTime) {
  392. return 0;
  393. }
  394. const executeDate = new Date(arrangeDetail.value.interactionTime);
  395. const today = new Date();
  396. // 将时间设置为 00:00:00,只比较日期
  397. executeDate.setHours(0, 0, 0, 0);
  398. today.setHours(0, 0, 0, 0);
  399. // 计算天数差(毫秒转天数)
  400. const diffTime = executeDate.getTime() - today.getTime();
  401. const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));
  402. return diffDays;
  403. });
  404. // 药肥费用总计:∑(单价 * 单亩用量 * 亩数)
  405. const pesticideCostTotal = computed(() => {
  406. const list = detailData.value?.prescription?.pesticideFertilizerList || [];
  407. const area = Number(detailData.value?.farm?.mianji || 0);
  408. if (!list.length || !area) return 0;
  409. const sum = list.reduce((acc, item) => {
  410. const price = Number(item?.price || 0);
  411. const dosage = Number(item?.dosage || 0);
  412. if (!price || !dosage) return acc;
  413. return acc + price * dosage * area;
  414. }, 0);
  415. return Number(sum.toFixed(2));
  416. });
  417. // 报价合计 = 药肥费用 + 服务费用
  418. const totalCost = computed(() => {
  419. const pesticide = Number(pesticideCostTotal.value || 0);
  420. const service = Number(serviceCostTotal.value || 0);
  421. if (!pesticide && !service) return '--';
  422. return Number((pesticide + service).toFixed(2));
  423. });
  424. // 服务费用总计(数值):亩单价 * 亩数
  425. const serviceCostTotal = computed(() => {
  426. const price = Number(detailData.value?.serviceMuPrice || 0);
  427. const area = Number(detailData.value?.farm?.mianji || 0);
  428. if (!price || !area) return 0;
  429. return Number((price * area).toFixed(2));
  430. });
  431. const getDetail = async () => {
  432. const { data } = await VE_API.farm.getFarmWorkLib({ id: query.value.id, farmId: query.value.farmId, agriculturalId: userInfo?.agriculturalId });
  433. if (data) {
  434. detailData.value = data;
  435. const pesticideFertilizerCodes = data?.prescription?.pesticideFertilizerList?.map(item => item.code);
  436. getPriceList(data.schemeId, pesticideFertilizerCodes);
  437. getArrangeDetail(query.value.arrangeId);
  438. }
  439. };
  440. const statusMap = ref({
  441. 0: "取消关注",
  442. 1: "特别关注",
  443. 2: "托管农事",
  444. });
  445. const arrangeDetail = ref({});
  446. const getArrangeDetail = async (id) => {
  447. const { data } = await VE_API.container_farm_work_arrange.getArrangeDetail({ id });
  448. if (data) {
  449. arrangeDetail.value = data;
  450. }
  451. };
  452. const getPriceList = async (schemeId, pesticideFertilizerCodes) => {
  453. if (!schemeId || !pesticideFertilizerCodes || !Array.isArray(pesticideFertilizerCodes)) return;
  454. const { data } = await VE_API.farm.getPriceList({ schemeId, pesticideFertilizerCodes });
  455. if (!data || !Array.isArray(data)) return;
  456. detailData.value.prescription.pesticideFertilizerList.forEach((item) => {
  457. const priceInfo = data.find((p) => p.pesticideFertilizerCode === item.code);
  458. if (!priceInfo) return;
  459. item.price = priceInfo.price ?? item.price;
  460. item.brand = priceInfo.brand ?? item.brand;
  461. });
  462. };
  463. const handleClose = () => {
  464. if(query.value.goBack){
  465. router.replace({
  466. path: "/home",
  467. });
  468. }else{
  469. router.back();
  470. }
  471. };
  472. </script>
  473. <style lang="scss" scoped>
  474. .completed-work {
  475. height: 100vh;
  476. position: relative;
  477. overflow: auto;
  478. font-size: 14px;
  479. background: #f2f3f5;
  480. .work-content {
  481. height: calc(100% - 40px);
  482. overflow: auto;
  483. box-sizing: border-box;
  484. &.hasBottom {
  485. padding-bottom: 60px;
  486. }
  487. .info-wrap {
  488. margin-bottom: 80px;
  489. }
  490. .work-wrap {
  491. position: relative;
  492. z-index: 3;
  493. padding: 0 12px;
  494. top: -16px;
  495. }
  496. .pt-10 {
  497. padding-top: 10px;
  498. }
  499. .fixed-btn-wrap {
  500. position: fixed;
  501. z-index: 10;
  502. bottom: 0;
  503. left: 0;
  504. width: 100%;
  505. padding: 10px 12px 25px;
  506. box-sizing: border-box;
  507. display: flex;
  508. align-items: center;
  509. justify-content: space-between;
  510. background: #fff;
  511. box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
  512. &.center {
  513. justify-content: center;
  514. }
  515. .fixed-btn {
  516. width: 120px;
  517. text-align: center;
  518. height: 40px;
  519. line-height: 40px;
  520. background: linear-gradient(180deg, #70bffe, #2199f8);
  521. border-radius: 25px;
  522. color: #fff;
  523. font-size: 14px;
  524. box-sizing: border-box;
  525. &.expert {
  526. width: 180px;
  527. }
  528. &.orange {
  529. color: #ff953d;
  530. border: 1px solid #ff953d;
  531. background: rgba(255, 149, 61, 0.1);
  532. }
  533. &.excute {
  534. background: linear-gradient(180deg, #ffd887, #ed9e1e);
  535. }
  536. &.second {
  537. background: #ffffff;
  538. border: 1px solid rgba(153, 153, 153, 0.5);
  539. color: #666666;
  540. }
  541. }
  542. }
  543. .card-title {
  544. font-size: 16px;
  545. font-weight: bold;
  546. color: #000;
  547. display: flex;
  548. align-items: center;
  549. justify-content: space-between;
  550. .tag-text {
  551. color: #2199F8;
  552. font-size: 12px;
  553. font-weight: normal;
  554. }
  555. .point-wrap {
  556. display: flex;
  557. align-items: center;
  558. color: #393939;
  559. font-size: 12px;
  560. font-weight: normal;
  561. .point {
  562. width: 6px;
  563. height: 6px;
  564. border-radius: 50%;
  565. background: #393939;
  566. margin-right: 4px;
  567. }
  568. }
  569. .type-tag {
  570. margin-left: 5px;
  571. font-size: 12px;
  572. color: #000000;
  573. padding: 4px 10px;
  574. background: rgba(119, 119, 119, 0.1);
  575. border-radius: 20px;
  576. font-weight: normal;
  577. height: 26px;
  578. line-height: 26px;
  579. }
  580. }
  581. .box-wrap {
  582. background: #fff;
  583. padding: 10px;
  584. border-radius: 8px;
  585. }
  586. .step-wrap {
  587. padding: 18px 0;
  588. }
  589. .content-status {
  590. position: relative;
  591. padding: 26px 12px 20px 12px;
  592. color: #fff;
  593. z-index: 2;
  594. display: flex;
  595. justify-content: space-between;
  596. align-items: center;
  597. &::after {
  598. content: "";
  599. z-index: -1;
  600. position: absolute;
  601. left: 0;
  602. top: 0;
  603. height: 136px;
  604. background: #2199f8;
  605. width: 100%;
  606. }
  607. .status-l {
  608. .stauts-text {
  609. font-size: 22px;
  610. display: flex;
  611. align-items: center;
  612. .status-icon {
  613. width: 24px;
  614. height: 24px;
  615. background: #ffffff;
  616. border-radius: 50%;
  617. margin-right: 8px;
  618. }
  619. }
  620. .stauts-sub-text {
  621. // color: rgba(255, 255, 255, 0.51);
  622. font-size: 14px;
  623. }
  624. .time-text {
  625. color: #ffff;
  626. }
  627. }
  628. &.warning {
  629. &::after {
  630. background: #ff953d;
  631. }
  632. .stauts-sub-text {
  633. color: #fff;
  634. }
  635. }
  636. .status-r {
  637. height: 32px;
  638. line-height: 32px;
  639. padding: 0 16px;
  640. color: #2199f8;
  641. font-size: 16px;
  642. background: #fff;
  643. border-radius: 20px;
  644. }
  645. }
  646. .info-content {
  647. padding: 10px 0;
  648. position: relative;
  649. }
  650. .info-title-wrap {
  651. display: flex;
  652. align-items: center;
  653. justify-content: space-between;
  654. color: #000;
  655. .info-more {
  656. font-size: 18px;
  657. }
  658. .unit-text {
  659. font-size: 12px;
  660. }
  661. }
  662. .info-content-wrap {
  663. .price-bottom {
  664. padding-top: 8px;
  665. .price-info {
  666. padding: 8px 0;
  667. display: flex;
  668. align-items: center;
  669. justify-content: space-between;
  670. color: rgba(0, 0, 0, 0.2);
  671. .main-text {
  672. padding-left: 20px;
  673. color: rgba(0, 0, 0, 0.8);
  674. }
  675. .info-c {
  676. flex: 1;
  677. text-align: center;
  678. }
  679. }
  680. .price-bottom-action {
  681. display: flex;
  682. align-items: center;
  683. justify-content: space-between;
  684. gap: 8px;
  685. .show-price-btn {
  686. flex: none;
  687. width: 96px;
  688. height: 40px;
  689. line-height: 38px;
  690. line-height: 38px;
  691. border-radius: 4px;
  692. background: #2199f8;
  693. color: #fff;
  694. font-size: 14px;
  695. text-align: center;
  696. }
  697. }
  698. .price-total {
  699. flex: 1;
  700. height: 38px;
  701. display: flex;
  702. align-items: center;
  703. justify-content: center;
  704. border: 1px solid rgba(33, 153, 248, 0.5);
  705. background: rgba(33, 153, 248, 0.1);
  706. color: #000000;
  707. border-radius: 4px;
  708. .main-val {
  709. font-size: 20px;
  710. font-weight: bold;
  711. color: #2199f8;
  712. padding-right: 2px;
  713. }
  714. }
  715. }
  716. }
  717. .executor-info {
  718. margin-top: 14px;
  719. &.mt-0 {
  720. margin-top: 0;
  721. }
  722. .executor-title {
  723. font-size: 18px;
  724. font-weight: bold;
  725. color: #000;
  726. margin-bottom: 12px;
  727. }
  728. .executor-content {
  729. .executor-info {
  730. display: flex;
  731. align-items: flex-start;
  732. gap: 12px;
  733. }
  734. .executor-avatar {
  735. flex-shrink: 0;
  736. img {
  737. width: 60px;
  738. height: 60px;
  739. border-radius: 8px;
  740. object-fit: cover;
  741. }
  742. }
  743. .executor-details {
  744. flex: 1;
  745. .org-name {
  746. display: flex;
  747. align-items: center;
  748. gap: 8px;
  749. margin-bottom: 3px;
  750. .name {
  751. font-size: 16px;
  752. font-weight: bold;
  753. color: #000;
  754. }
  755. .rating {
  756. font-size: 16px;
  757. color: #ff953d;
  758. font-weight: bold;
  759. }
  760. }
  761. .service-info {
  762. .service-item {
  763. font-size: 12px;
  764. color: #b6b6b6;
  765. line-height: 1.3;
  766. margin-bottom: 2px;
  767. span {
  768. color: #666666;
  769. }
  770. }
  771. }
  772. }
  773. }
  774. .contact-buttons {
  775. display: flex;
  776. justify-content: flex-end;
  777. gap: 8px;
  778. margin-top: 16px;
  779. .contact-btn {
  780. width: 88px;
  781. height: 32px;
  782. border-radius: 20px;
  783. color: rgba(0, 0, 0, 0.5);
  784. background: #fff;
  785. border: 1px solid rgba(0, 0, 0, 0.1);
  786. }
  787. }
  788. }
  789. .farm-info {
  790. color: rgba(0, 0, 0, 0.6);
  791. font-size: 14px;
  792. margin-top: 14px;
  793. .info-title {
  794. display: flex;
  795. align-items: center;
  796. justify-content: space-between;
  797. color: rgba(41, 41, 41, 0.3);
  798. .info-more {
  799. display: flex;
  800. align-items: center;
  801. }
  802. }
  803. }
  804. .farm-photo {
  805. margin-top: 10px;
  806. .photo-list {
  807. display: flex;
  808. align-items: center;
  809. width: 100%;
  810. overflow: auto;
  811. padding-bottom: 10px;
  812. .photo-item {
  813. width: 92px;
  814. height: 92px;
  815. border-radius: 8px;
  816. object-fit: cover;
  817. }
  818. .img-item {
  819. img {
  820. width: 92px;
  821. height: 92px;
  822. border-radius: 8px;
  823. object-fit: cover;
  824. margin-right: 12px;
  825. }
  826. }
  827. .view-box {
  828. width: 92px;
  829. height: 92px;
  830. border-radius: 8px;
  831. object-fit: cover;
  832. }
  833. }
  834. .list-text {
  835. text-align: center;
  836. color: rgba(0, 0, 0, 0.5);
  837. padding-top: 2px;
  838. }
  839. }
  840. .farm-data {
  841. margin-top: 10px;
  842. .data-content {
  843. margin-top: 8px;
  844. border-top: 1px solid #f5f5f5;
  845. padding: 8px 0;
  846. }
  847. }
  848. .form-item {
  849. display: flex;
  850. align-items: center;
  851. font-size: 14px;
  852. color: #767676;
  853. height: 24px;
  854. .item-name {
  855. width: 80px;
  856. color: rgba(0, 0, 0, 0.2);
  857. }
  858. }
  859. .form-item + .form-item {
  860. padding-top: 2px;
  861. }
  862. .farm-table {
  863. margin-top: 10px;
  864. .table-item {
  865. padding: 10px 0 12px 0;
  866. }
  867. }
  868. .new-wrap {
  869. border-radius: 5px;
  870. text-align: center;
  871. border: 1px solid rgba(225, 225, 225, 0.5);
  872. .new-title {
  873. background: rgba(241, 241, 241, 0.4);
  874. border-radius: 5px 5px 0 0;
  875. border-bottom: 1px solid rgba(225, 225, 225, 0.5);
  876. display: flex;
  877. color: #767676;
  878. // justify-content: space-around;
  879. padding: 2px 6px;
  880. font-size: 12px;
  881. .table-name {
  882. width: 24px;
  883. font-size: 12px;
  884. margin: 0 auto;
  885. }
  886. }
  887. .title-1 {
  888. width: 46px;
  889. }
  890. .title-2 {
  891. flex: 1;
  892. }
  893. .title-3 {
  894. width: 52px;
  895. }
  896. .title-4 {
  897. width: 56px;
  898. }
  899. .title-5 {
  900. width: 52px;
  901. }
  902. .new-table-wrap {
  903. padding: 5px;
  904. .new-prescription {
  905. height: 45px;
  906. }
  907. .new-prescription {
  908. .new-table {
  909. height: 100%;
  910. display: flex;
  911. align-items: center;
  912. // border: 1px solid rgba(225, 225, 225, 0.8);
  913. background: #fff;
  914. border-radius: 5px;
  915. color: rgba(0, 0, 0, 0.6);
  916. font-size: 11px;
  917. .line-l {
  918. display: flex;
  919. flex: 1;
  920. .line-2 {
  921. flex: 1;
  922. padding: 0 2px;
  923. }
  924. }
  925. .line-r {
  926. &.has-border {
  927. border-left: 1px solid rgba(225, 225, 225, 0.8);
  928. }
  929. .line-3 {
  930. display: flex;
  931. align-items: center;
  932. }
  933. .sub-line {
  934. padding: 10px 0;
  935. }
  936. .line-4 {
  937. display: flex;
  938. align-items: center;
  939. border-top: 1px solid rgba(225, 225, 225, 0.8);
  940. }
  941. .execute-line {
  942. border-right: 1px solid rgba(225, 225, 225, 0.8);
  943. }
  944. }
  945. }
  946. .note-text {
  947. margin: 8px 0 4px 0;
  948. color: rgba(0, 0, 0, 0.4);
  949. background: #fff;
  950. padding: 6px 8px;
  951. border-radius: 5px;
  952. text-align: left;
  953. font-size: 11px;
  954. }
  955. }
  956. .new-prescription + .new-prescription {
  957. // padding-top: 8px;
  958. .new-table {
  959. border-top: 1px solid rgba(0, 0, 0, 0.08);
  960. }
  961. }
  962. }
  963. }
  964. .work-map {
  965. padding: 10px 0;
  966. .map-content {
  967. padding-top: 8px;
  968. .map-dom {
  969. height: 166px;
  970. width: 100%;
  971. clip-path: inset(0px round 8px);
  972. }
  973. }
  974. }
  975. }
  976. }
  977. .task-tips-popup {
  978. width: 75%;
  979. padding: 28px 28px 20px;
  980. display: flex;
  981. flex-direction: column;
  982. align-items: center;
  983. justify-content: center;
  984. .create-farm-icon {
  985. width: 40px;
  986. height: 40px;
  987. margin-bottom: 12px;
  988. }
  989. .farm-check-icon {
  990. width: 68px;
  991. height: 68px;
  992. margin-bottom: 12px;
  993. }
  994. .create-farm-text {
  995. font-size: 20px;
  996. font-weight: 500;
  997. line-height: 40px;
  998. margin-bottom: 32px;
  999. text-align: center;
  1000. &.success-text {
  1001. font-size: 23px;
  1002. font-weight: 400;
  1003. }
  1004. }
  1005. .main-text {
  1006. color: #2199f8;
  1007. }
  1008. .create-farm-btn {
  1009. width: 100%;
  1010. box-sizing: border-box;
  1011. padding: 8px;
  1012. border-radius: 25px;
  1013. font-size: 16px;
  1014. background: #2199f8;
  1015. color: #fff;
  1016. text-align: center;
  1017. }
  1018. }
  1019. </style>