modify.vue 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200
  1. <template>
  2. <div class="new-farming-page" ref="pageRef">
  3. <custom-header :name="isEdit ? (onlyPrice ? '编辑报价' : '编辑方案') : '查看详情'"></custom-header>
  4. <div class="new-farming-content" :class="{ 'no-permission': !hasPlanPermission }">
  5. <el-form
  6. ref="formRef"
  7. style="max-width: 600px"
  8. label-position="left"
  9. :rules="rules"
  10. :model="dynamicValidateForm"
  11. class="demo-dynamic"
  12. >
  13. <div class="farm-card">
  14. <div class="card-title between common-inputs">
  15. <div>{{ detailData?.name }}<span class="type-tag">标准农事</span></div>
  16. <el-select v-if="isEdit && !onlyPrice" size="small" v-model="tagName" placeholder="标记为" style="width: 94px">
  17. <el-option
  18. v-for="item in tagList"
  19. :key="item.value"
  20. :label="item.label"
  21. :value="item.value"
  22. />
  23. </el-select>
  24. <div class="edit-tag tag-text" v-else>托管农事</div>
  25. <!-- <el-tooltip
  26. effect="dark"
  27. placement="left"
  28. >
  29. <template #content>
  30. <div class="tag-item">全托管</div>
  31. <div class="tag-item">飞防托管</div>
  32. <div class="tag-item">营养托管</div>
  33. </template>
  34. <div class="title-tag add-tag">托管用户</div>
  35. </el-tooltip> -->
  36. </div>
  37. <div class="info-content">
  38. <el-form-item label-width="70px" class="form-item text-item" label="农事编号">
  39. <div class="info-text">
  40. {{ detailData?.code }}
  41. </div>
  42. </el-form-item>
  43. <el-form-item label-width="70px" class="form-item text-item" label="服务亩数">
  44. <div class="info-text">
  45. {{ detailData?.farm?.mianji ? formatArea(detailData?.farm?.mianji) + "亩" : "--" }}
  46. </div>
  47. </el-form-item>
  48. <el-form-item label-width="70px" class="form-item text-item" label="服务区域">
  49. <div class="info-text">
  50. {{ detailData?.farm?.address || "--" }}
  51. </div>
  52. </el-form-item>
  53. <el-form-item
  54. v-if="isEdit"
  55. label-width="70px"
  56. class="form-item"
  57. prop="executeDate"
  58. label="执行时间"
  59. >
  60. <el-date-picker
  61. class="item-input"
  62. style="width: 100%"
  63. value-format="YYYY-MM-DD"
  64. v-model="dynamicValidateForm.executeDate"
  65. type="date"
  66. :clearable="false"
  67. placeholder="选择日期"
  68. :editable="false"
  69. />
  70. </el-form-item>
  71. <el-form-item v-else label-width="70px" class="form-item text-item" label="执行时间">
  72. <div class="info-text">
  73. {{ detailData?.executeDate }}
  74. </div>
  75. </el-form-item>
  76. </div>
  77. </div>
  78. <div class="farm-card" v-if="!onlyPrice">
  79. <!-- 农情互动 -->
  80. <div class="card-title border-bottom between">
  81. <div>农情互动</div>
  82. <!-- <span class="del-tag">删除互动</span> -->
  83. </div>
  84. <div v-if="isEdit" class="interact-form">
  85. <div class="interact-form-item" data-interact-field="phenologyId">
  86. <div class="form-label">
  87. 互动时间
  88. </div>
  89. <div class="form-input-wrapper">
  90. <el-select style="width: 100%" v-model="interactFormData.phenologyId" placeholder="请选择物候期" :editable="false">
  91. <el-option
  92. v-for="item in phenologyList"
  93. :key="item.id"
  94. :label="item.name"
  95. :value="item.id"
  96. ></el-option>
  97. </el-select>
  98. </div>
  99. </div>
  100. <div class="interact-form-item" data-interact-field="interactionTime">
  101. <div class="form-label">
  102. 强制触发
  103. </div>
  104. <div class="form-input-wrapper">
  105. <el-date-picker
  106. v-model="interactFormData.interactionTime"
  107. style="width: 100%"
  108. type="date"
  109. placeholder="请选择日期"
  110. :editable="false"
  111. />
  112. </div>
  113. </div>
  114. <div class="interact-form-item" data-interact-field="interactionQuestion">
  115. <div class="form-label">
  116. 互动问题
  117. </div>
  118. <el-input
  119. v-model="interactFormData.interactionQuestion"
  120. type="textarea"
  121. :rows="4"
  122. placeholder="请设置互动问题"
  123. class="question-textarea"
  124. />
  125. </div>
  126. </div>
  127. <div v-else class="interact-content">
  128. {{ detailData?.warmReminder }}
  129. <!-- <span class="edit-tag" @click="handleEditInteract(detailData)">点击编辑</span> -->
  130. </div>
  131. </div>
  132. <template v-if="isEdit">
  133. <div class="farm-card prescription-content common-inputs" v-if="!onlyPrice">
  134. <div class="card-title pb-12 between">
  135. 药物处方
  136. <div class="add-tag" @click="addDomain()">
  137. <el-icon color="#2199F8"><Plus /></el-icon>新增药物
  138. </div>
  139. </div>
  140. <el-form-item label-width="82px" class="form-item" prop="usageMode" label="施用方式">
  141. <el-select
  142. v-model="dynamicValidateForm.usageMode"
  143. placeholder="请选择施用方式"
  144. style="width: 100%"
  145. >
  146. <el-option
  147. v-for="(usage, uId) in allUsageModeList"
  148. :key="uId"
  149. :label="usage"
  150. :value="usage"
  151. />
  152. </el-select>
  153. </el-form-item>
  154. <el-form-item v-if="dynamicValidateForm.usageMode === '叶面施'" label-width="82px" class="form-item" prop="executeStyle" label="执行方式">
  155. <el-select
  156. class="select-item"
  157. v-model="dynamicValidateForm.executeStyle"
  158. placeholder="执行方式"
  159. @change="handleExecutionMethodChange"
  160. >
  161. <el-option
  162. v-for="(item, index) in modeList"
  163. :key="index"
  164. :label="item.name"
  165. :value="item.value"
  166. />
  167. </el-select>
  168. </el-form-item>
  169. <el-form-item v-if="dynamicValidateForm.usageMode === '根部施'" label-width="82px" class="form-item" prop="executeStyle" label="执行方式">
  170. <div class="info-text">人工</div>
  171. </el-form-item>
  172. <div v-if="dynamicValidateForm.usageMode !== '人工农事'">
  173. <el-form-item
  174. v-for="(domain, index) in dynamicValidateForm.prescription.pesticideFertilizerList"
  175. :key="index"
  176. :prop="'prescription.pesticideFertilizerList.' + index + '.value'"
  177. class="prescription-item"
  178. >
  179. <div class="recipe-item">
  180. <div class="recipe-form">
  181. <!-- <el-form-item
  182. v-for="(domain, index) in prescriptionItem.pesticideFertilizerList"
  183. :key="domain.key"
  184. :prop="'pesticideFertilizerList.' + index + '.value'"
  185. > -->
  186. <div class="form-box">
  187. <div class="form-index">药肥{{ index + 1 }}</div>
  188. <div class="box-item" v-if="domain.typeName">
  189. <div class="form-l">药肥类型</div>
  190. <div class="form-r r-text">
  191. {{ domain.typeName }}
  192. </div>
  193. </div>
  194. <div class="box-item">
  195. <div class="form-l">药肥名称</div>
  196. <div class="form-r">
  197. <el-select
  198. filterable
  199. @change="
  200. handlePesticideFertilizerChange(index)
  201. "
  202. v-model="domain.code"
  203. placeholder="请选择"
  204. style="width: 150px"
  205. >
  206. <el-option
  207. v-for="item in pesticideFertilizersOptions"
  208. :key="item.pesticideFertilizerCode"
  209. :label="item.defaultName || item.name"
  210. :value="item.pesticideFertilizerCode"
  211. />
  212. </el-select>
  213. </div>
  214. </div>
  215. <div class="mt-8">
  216. <div class="box-item sub-item" :data-ratio-index="index">
  217. <div class="form-l has-sub">
  218. <div class="main-name">亩兑水量</div>
  219. <div class="sub-name">(药剂:兑水量)</div>
  220. </div>
  221. <div class="form-r input-box text-center input-unit">
  222. <el-input
  223. v-model="domain.ratio"
  224. type="number"
  225. step="0.01"
  226. style="width: 150px"
  227. placeholder="请输入"
  228. >
  229. <template #append>{{ domain.unit }}</template>
  230. </el-input>
  231. </div>
  232. </div>
  233. <div class="box-item sub-item" :data-dosage-index="index">
  234. <div class="form-l has-sub">
  235. <div class="main-name">单亩用量</div>
  236. <div class="sub-name">(亩数:药剂)</div>
  237. </div>
  238. <div class="form-r input-box text-center">
  239. <el-input
  240. v-model="domain.dosage"
  241. type="number"
  242. step="0.01"
  243. style="width: 150px"
  244. placeholder="请输入"
  245. >
  246. <template #append>{{ domain.unit }}</template>
  247. </el-input>
  248. </div>
  249. </div>
  250. </div>
  251. <div class="input-box mark-box">
  252. <el-input
  253. v-model="domain.remark"
  254. style="width: 100%"
  255. placeholder="备注:用药注意事项"
  256. />
  257. </div>
  258. <div class="action-btn">
  259. <el-button
  260. class="btn delete-btn"
  261. @click.prevent="removeDomain(prescriptionI, domain)"
  262. >
  263. 删除
  264. </el-button>
  265. <el-button
  266. type="default"
  267. class="btn"
  268. @click.prevent="resetItemForm(prescriptionI, index)"
  269. >
  270. 重置
  271. </el-button>
  272. </div>
  273. </div>
  274. <!-- </el-form-item> -->
  275. </div>
  276. </div>
  277. </el-form-item>
  278. </div>
  279. </div>
  280. <div
  281. v-if="dynamicValidateForm.usageMode !== '人工农事'"
  282. class="farm-card prescription-content common-inputs"
  283. >
  284. <div class="card-title">处方报价</div>
  285. <div class="medicine-wrap">
  286. <template
  287. v-for="(pesticide, mIndex) in dynamicValidateForm.prescription.pesticideFertilizerList"
  288. :key="mIndex"
  289. >
  290. <div
  291. class="medicine-box"
  292. :data-price-index="mIndex"
  293. >
  294. <div class="form-index">药肥{{ mIndex + 1 }}</div>
  295. <div class="box-wrap">
  296. <div class="medicine-item">
  297. <div class="item-name">药肥名称</div>
  298. <div class="item-val">{{ pesticide.name }}</div>
  299. </div>
  300. <div class="medicine-item">
  301. <div class="item-name">药肥品牌</div>
  302. <div class="item-val">
  303. <el-input
  304. v-model="pesticide.brand"
  305. placeholder="药肥品牌"
  306. style="width: 150px"
  307. />
  308. </div>
  309. </div>
  310. <div class="medicine-item mt-8">
  311. <div class="item-name">药肥单价</div>
  312. <div class="item-val">
  313. <el-input
  314. style="width: 150px"
  315. v-model="pesticide.price"
  316. type="number"
  317. step="0.01"
  318. placeholder="单价"
  319. >
  320. <template #append>元/{{ pesticide.unit }}</template>
  321. </el-input>
  322. </div>
  323. </div>
  324. <div class="medicine-item">
  325. <div class="item-name">单亩用量</div>
  326. <div class="item-val">{{ pesticide.dosage }}{{ pesticide.unit }}</div>
  327. </div>
  328. <div class="medicine-item">
  329. <div class="item-name">服务亩数</div>
  330. <div class="item-val">{{ detailData?.farm?.mianji ? formatArea(detailData?.farm?.mianji) + "亩": "" }}</div>
  331. </div>
  332. <div class="medicine-item">
  333. <div class="item-total">总计:</div>
  334. <div class="item-price">
  335. {{ getPesticideTotal(pesticide) }}<span class="item-unit">元</span>
  336. </div>
  337. </div>
  338. </div>
  339. </div>
  340. </template>
  341. <div class="medicine-box">
  342. <div class="form-index">服务报价</div>
  343. <div class="box-wrap">
  344. <div class="medicine-item mt-8">
  345. <div class="item-name">单亩价格</div>
  346. <div class="item-val">
  347. <el-input
  348. style="width: 150px"
  349. v-model="servicePricePerMu"
  350. type="number"
  351. step="0.01"
  352. placeholder="服务单价"
  353. >
  354. <template #append>元/亩</template>
  355. </el-input>
  356. </div>
  357. </div>
  358. <div class="medicine-item">
  359. <div class="item-name">服务亩数</div>
  360. <div class="item-val">{{ detailData?.farm?.mianji ? formatArea(detailData?.farm?.mianji) + "亩" : "" }}</div>
  361. </div>
  362. <div class="medicine-item">
  363. <div class="item-total">总计:</div>
  364. <div class="item-price">
  365. {{ getServiceTotal() }}<span class="item-unit">元</span>
  366. </div>
  367. </div>
  368. </div>
  369. </div>
  370. </div>
  371. </div>
  372. <div class="submit-btn">
  373. <div v-if="!onlyPrice" class="btn second" @click.prevent="cancelEdit">取消编辑</div>
  374. <div class="btn" @click.prevent="submitForm(formRef)">保存</div>
  375. </div>
  376. </template>
  377. <template v-else>
  378. <div class="farm-card prescription-content">
  379. <div class="card-title">药物处方</div>
  380. <div class="table-item">
  381. <div class="form-item">
  382. <div class="item-name">施用方式</div>
  383. <div class="item-text">{{ detailData?.usageMode }}</div>
  384. </div>
  385. </div>
  386. <div class="new-wrap">
  387. <div class="new-title">
  388. <div class="title-1"><div class="table-name">药肥类型</div></div>
  389. <div class="title-2"><div class="table-name">肥药名称</div></div>
  390. <div class="title-3"><div class="table-name">执行方式</div></div>
  391. <div class="title-4"><div class="table-name">亩兑水量</div></div>
  392. <div class="title-5"><div class="table-name">单亩用量</div></div>
  393. </div>
  394. <div
  395. class="new-table-wrap"
  396. v-for="(subP, prescriptionI) in detailData?.prescription?.pesticideFertilizerList || []"
  397. :key="prescriptionI"
  398. >
  399. <!-- <div
  400. class="new-prescription"
  401. v-for="(subP, subI) in prescriptionItem.pesticideFertilizerList"
  402. :key="subI"
  403. > -->
  404. <div class="new-table">
  405. <div class="line-l">
  406. <div class="line-1 title-1">{{ subP.typeName }}</div>
  407. <div class="line-2">
  408. {{ subP.name || subP.pesticideFertilizerName }}
  409. </div>
  410. </div>
  411. <div class="line-r">
  412. <div class="line-3">
  413. <div class="sub-line title-3">人工</div>
  414. <div class="sub-line title-4">{{ subP.ratio }}ML</div>
  415. <div class="sub-line title-5">{{ subP.dosage }}{{ subP.unit }}</div>
  416. </div>
  417. </div>
  418. </div>
  419. <div class="note-text" v-if="subP.remark">{{ subP.remark }}</div>
  420. <!-- </div> -->
  421. </div>
  422. </div>
  423. </div>
  424. <div class="farm-card prescription-content">
  425. <div class="card-title">处方报价</div>
  426. <div class="price-bottom pb-8">
  427. <div class="info-title-wrap">
  428. <div class="sub-title font-bold">药肥费用</div>
  429. <div class="info-more">
  430. {{ pesticideCostTotal ? formatArea(pesticideCostTotal) : "--" }}<span class="unit-text">元</span>
  431. </div>
  432. </div>
  433. </div>
  434. <div class="info-content-wrap">
  435. <price-table :prescriptionData="dynamicValidateForm.prescription" :area="detailData?.farm?.mianji">
  436. <template #bottomContent>
  437. <div class="price-bottom">
  438. <div class="info-title-wrap">
  439. <div class="sub-title font-bold">服务费用</div>
  440. <div class="info-more">
  441. {{
  442. quotationData?.serviceMuPrice
  443. ? getServiceTotal()
  444. : "--"
  445. }}<span class="unit-text">元</span>
  446. </div>
  447. </div>
  448. <div class="price-info">
  449. <div class="info-l">
  450. 执行方式<span class="main-text">{{
  451. dynamicValidateForm.executionMethodName || "人工"
  452. }}</span>
  453. </div>
  454. <div class="info-c">
  455. 亩单价<span class="main-text">{{
  456. quotationData.serviceMuPrice
  457. ? (quotationData.serviceMuPrice) + "元/亩"
  458. : "--"
  459. }}</span>
  460. </div>
  461. <div class="info-r">
  462. 亩数<span class="main-text">{{
  463. quotationData.farm?.mianji ? formatArea(quotationData.farm?.mianji) + "亩" : "--"
  464. }}</span>
  465. </div>
  466. </div>
  467. <div class="price-total">
  468. 报价合计:<span class="main-val">{{
  469. totalCost ? formatArea(totalCost) : "--"
  470. }}</span
  471. >元
  472. </div>
  473. </div>
  474. </template>
  475. </price-table>
  476. </div>
  477. </div>
  478. <div class="submit-btn center-btn" v-has-permission="'农事规划'">
  479. <div class="btn" @click.prevent="toEditPrescription">编辑处方</div>
  480. </div>
  481. </template>
  482. </el-form>
  483. </div>
  484. </div>
  485. <!-- 服务报价单 -->
  486. <price-sheet-popup ref="priceSheetPopupRef"></price-sheet-popup>
  487. <!-- 互动设置弹窗 -->
  488. <interact-popup
  489. ref="interactPopupRef"
  490. @handleSaveSuccess="handleSaveInteractSuccess"
  491. @handleDeleteInteract="handleDeleteInteract"
  492. ></interact-popup>
  493. </template>
  494. <script setup>
  495. import { onActivated, ref, reactive, onDeactivated, onBeforeUnmount, computed, onMounted, nextTick } from "vue";
  496. import { useRouter, useRoute } from "vue-router";
  497. import { ElMessage, ElMessageBox } from "element-plus";
  498. import customHeader from "@/components/customHeader.vue";
  499. import { useStore } from "vuex";
  500. import { formatArea } from "@/common/commonFun";
  501. import priceSheetPopup from "@/components/popup/priceSheetPopup.vue";
  502. import interactPopup from "@/components/popup/interactPopup.vue";
  503. import priceTable from "../agri_work/components/priceTable.vue";
  504. import dayjs from "dayjs";
  505. const store = useStore();
  506. const pageRef = ref(null);
  507. const router = useRouter();
  508. const route = useRoute();
  509. // 检查是否有"农事规划"权限
  510. const hasPlanPermission = computed(() => {
  511. try {
  512. const userInfoStr = localStorage.getItem("localUserInfo");
  513. if (!userInfoStr) return false;
  514. const userInfo = JSON.parse(userInfoStr);
  515. const permissions = userInfo.agriculturalPermissions || [];
  516. return permissions.includes("农事规划");
  517. } catch (error) {
  518. console.error("解析用户信息失败:", error);
  519. return false;
  520. }
  521. });
  522. const tagList = ref([
  523. { label: "托管农事", value: 2 },
  524. { label: "特别关注", value: 1 },
  525. { label: "取消关注", value: 0 },
  526. ]);
  527. const tagName = ref("");
  528. // 互动表单数据
  529. const interactFormData = ref({
  530. phenologyId: "",
  531. interactionTime: "",
  532. interactionQuestion: "",
  533. });
  534. const phenologyList = ref([]);
  535. const isEdit = ref(false);
  536. const onlyPrice = ref(false);
  537. onActivated(() => {
  538. isEdit.value = route.query.isEdit ? true : false;
  539. onlyPrice.value = route.query.onlyPrice ? true : false;
  540. if (route.query.farmWorkId) {
  541. getDetail();
  542. }
  543. nextTick(() => {
  544. if (pageRef.value) {
  545. pageRef.value.scrollTop = 0;
  546. } else {
  547. window.scrollTo(0, 0);
  548. }
  549. });
  550. // 初始化 prescription 对象
  551. if (!route.query.farmWorkId) {
  552. dynamicValidateForm.prescription = {
  553. usageMode: "",
  554. pesticideFertilizerList: [
  555. {
  556. code: "",
  557. name: "",
  558. dosage: "",
  559. ratio: "",
  560. typeName: "",
  561. muPrice: 0,
  562. executeStyle: 1,
  563. unit: "",
  564. },
  565. ],
  566. };
  567. }
  568. });
  569. const priceSheetPopupRef = ref(null);
  570. const showPriceSheetPopup = () => {
  571. priceSheetPopupRef.value.handleShowPopup(detailData.value);
  572. };
  573. const detailData = ref({});
  574. const getDetail = async () => {
  575. const { data, code } = await VE_API.farm.getFarmWorkLib({ id: route.query.farmWorkId, farmId: route.query.farmId, agriculturalId: route.query.agriculturalStoreId });
  576. if(code === 0) {
  577. detailData.value = data;
  578. dynamicValidateForm.executeDate = data.executeDate;
  579. dynamicValidateForm.usageMode = data.prescription.usageMode;
  580. // 从 prescription 获取数据
  581. dynamicValidateForm.prescription = data.prescription || {
  582. usageMode: "",
  583. pesticideFertilizerList: [],
  584. };
  585. servicePricePerMu.value = detailData.value.serviceMuPrice || null;
  586. const pesticideFertilizerCodes = data.prescription.pesticideFertilizerList.map(item => item.code);
  587. getPriceList(data.schemeId, pesticideFertilizerCodes);
  588. // 加载互动表单数据
  589. if (data.id) {
  590. // 重置互动表单数据
  591. interactFormData.value = {
  592. phenologyId: "",
  593. interactionTime: "",
  594. interactionQuestion: "",
  595. };
  596. // 按照 interactPopup.vue 的方式获取数据
  597. await getPhenologyList(data.containerSpaceTimeId || route.query.containerSpaceTimeId);
  598. await getFarmWorkArrangeDetail(route.query.id);
  599. }
  600. }
  601. };
  602. const getPriceList = async (schemeId, pesticideFertilizerCodes) => {
  603. const { data } = await VE_API.farm.getPriceList({ schemeId, pesticideFertilizerCodes });
  604. if (!data || !Array.isArray(data)) return;
  605. dynamicValidateForm.prescription.pesticideFertilizerList.forEach((item) => {
  606. const priceInfo = data.find((p) => p.pesticideFertilizerCode === item.code);
  607. if (!priceInfo) return;
  608. item.price = priceInfo.price ?? item.price;
  609. item.brand = priceInfo.brand ?? item.brand;
  610. });
  611. quotationData.value = {...detailData.value, ...dynamicValidateForm};
  612. };
  613. const toEditPrescription = () => {
  614. isEdit.value = true;
  615. nextTick(() => {
  616. if (pageRef.value) {
  617. pageRef.value.scrollTo({ top: 0, behavior: "auto" });
  618. } else {
  619. window.scrollTo(0, 0);
  620. }
  621. });
  622. };
  623. const quotationData = ref({});
  624. // 计算单个药肥的总计:单价 * 单亩用量 * 亩数
  625. const getPesticideTotal = (pesticide) => {
  626. const price = Number(pesticide.price || 0);
  627. const dosage = Number(pesticide.dosage || 0); // 单亩用量
  628. const area = Number(detailData.value.farm?.mianji || 0); // 农场面积
  629. if (!price || !dosage || !area) return "--";
  630. const total = (price * dosage * area).toFixed(2);
  631. return total;
  632. };
  633. function getServiceCost(cost, area) {
  634. if (!cost || !area) return "--";
  635. return (parseFloat(cost) * parseFloat(area)).toFixed(2);
  636. }
  637. const resetForm = (formEl) => {
  638. if (!formEl) return;
  639. formEl.resetFields();
  640. };
  641. // 清空所有数据
  642. const clearData = () => {
  643. // 清空表单
  644. resetForm(formRef.value);
  645. // 清空详情数据
  646. detailData.value = {};
  647. // 清空表单数据
  648. dynamicValidateForm.farmWorkName = "";
  649. dynamicValidateForm.conditionRate = "";
  650. dynamicValidateForm.purpose = "";
  651. dynamicValidateForm.executeDate = dayjs().format("YYYY-MM-DD");
  652. dynamicValidateForm.checkDay = "";
  653. dynamicValidateForm.usageMode = "";
  654. dynamicValidateForm.prescription = {
  655. id: "",
  656. usageMode: "",
  657. farmWorkLibCode: "",
  658. expertId: "",
  659. phenology: "",
  660. soil: "",
  661. speed: null,
  662. pesticideFertilizerList: [
  663. {
  664. code: "",
  665. name: "",
  666. dosage: "",
  667. ratio: "",
  668. typeName: "",
  669. muPrice: 0,
  670. executeStyle: 1,
  671. unit: "",
  672. },
  673. ],
  674. };
  675. };
  676. onDeactivated(() => {
  677. clearData();
  678. });
  679. onBeforeUnmount(() => {
  680. clearData();
  681. });
  682. const cancelEdit = () => {
  683. ElMessageBox.confirm("确认要取消编辑吗?", "提示", {
  684. confirmButtonText: "确认",
  685. cancelButtonText: "取消",
  686. type: "warning",
  687. })
  688. .then(() => {
  689. isEdit.value = false;
  690. nextTick(() => {
  691. if (pageRef.value) {
  692. pageRef.value.scrollTop = 0;
  693. } else {
  694. window.scrollTo(0, 0);
  695. }
  696. });
  697. })
  698. .catch(() => {
  699. console.log("取消编辑");
  700. });
  701. };
  702. const modeList = ref([
  703. { name: "无人机", value: 1 },
  704. { name: "人工", value: 2 },
  705. ]);
  706. const handleExecutionMethodChange = (index, val) => {
  707. // if (val == 1) {
  708. // servicePricePerMu.value = detailData.value.uavServicePrice;
  709. // } else {
  710. // servicePricePerMu.value = detailData.value.manualServicePrice;
  711. // }
  712. };
  713. // 表单
  714. const formRef = ref();
  715. const dynamicValidateForm = reactive({
  716. farmWorkName: "",
  717. conditionRate: "",
  718. purpose: "",
  719. executeDate: dayjs().format("YYYY-MM-DD"),
  720. checkDay: "",
  721. usageMode: "",
  722. executeStyle: 2,
  723. executionMethod: 2,
  724. prescription: {
  725. id: "",
  726. usageMode: "",
  727. farmWorkLibCode: "",
  728. expertId: "",
  729. phenology: "",
  730. soil: "",
  731. speed: null,
  732. pesticideFertilizerList: [
  733. {
  734. code: "",
  735. id: "",
  736. name: "",
  737. dosage: "",
  738. ratio: "",
  739. typeName: "",
  740. muPrice: 0,
  741. executeStyle: 1,
  742. unit: "",
  743. },
  744. ],
  745. },
  746. });
  747. const rules = {
  748. farmWorkName: [
  749. {
  750. required: true,
  751. message: "请输入农事名称",
  752. trigger: "blur",
  753. },
  754. ],
  755. conditionRate: [
  756. {
  757. required: false,
  758. message: "请输入触发条件",
  759. trigger: "blur",
  760. },
  761. ],
  762. executeDate: [
  763. {
  764. required: false,
  765. message: "请选择执行时间",
  766. trigger: "blur",
  767. },
  768. ],
  769. checkDay: [
  770. {
  771. required: true,
  772. message: "请选择复核时间",
  773. trigger: "blur",
  774. },
  775. ],
  776. };
  777. const addDomain = () => {
  778. if (!dynamicValidateForm.prescription.pesticideFertilizerList) {
  779. dynamicValidateForm.prescription.pesticideFertilizerList = [];
  780. }
  781. dynamicValidateForm.prescription.pesticideFertilizerList.unshift({
  782. code: "",
  783. name: "",
  784. dosage: "",
  785. ratio: "",
  786. typeName: "",
  787. muPrice: 0,
  788. id: "",
  789. executeStyle: 1,
  790. unit: "",
  791. });
  792. };
  793. let pesticideFertilizersOptions = ref([]);
  794. VE_API.z_farm_work_order.pesticideFertilizersList().then(({ data }) => {
  795. pesticideFertilizersOptions.value = data;
  796. });
  797. const allUsageModeList = ["叶面施", "根部施", "人工农事"];
  798. /**
  799. * 选择药肥的时候修改订单中药肥pesticideFertilizerId 以外其他数据
  800. * @param index
  801. */
  802. const handlePesticideFertilizerChange = (index) => {
  803. const currentItem = dynamicValidateForm.prescription.pesticideFertilizerList[index];
  804. let obj = pesticideFertilizersOptions.value.filter(
  805. (item) => currentItem.code === item.pesticideFertilizerCode
  806. )[0];
  807. if (obj) {
  808. dynamicValidateForm.prescription.pesticideFertilizerList[index] = {
  809. ...currentItem,
  810. code: obj.pesticideFertilizerCode,
  811. id: obj.id,
  812. name: obj.name || obj.defaultName,
  813. typeName: obj.typeName,
  814. unit: obj.unit,
  815. ratio: "", // 清空亩兑水量
  816. dosage: "", // 清空单亩用量
  817. executeStyle: obj.executionMethod || 1,
  818. };
  819. }
  820. };
  821. const removeDomain = (index) => {
  822. if (index !== -1 && dynamicValidateForm.prescription.pesticideFertilizerList) {
  823. dynamicValidateForm.prescription.pesticideFertilizerList.splice(index, 1);
  824. }
  825. };
  826. const resetItemForm = (index) => {
  827. if (dynamicValidateForm.prescription.pesticideFertilizerList) {
  828. dynamicValidateForm.prescription.pesticideFertilizerList[index] = {
  829. code: "",
  830. id: "",
  831. name: "",
  832. dosage: "",
  833. ratio: "",
  834. typeName: "",
  835. muPrice: 0,
  836. executeStyle: 1,
  837. unit: "",
  838. };
  839. }
  840. };
  841. const servicePricePerMu = ref(null);
  842. // 服务费用总计(数值):亩单价 * 亩数
  843. const serviceCostTotal = computed(() => {
  844. const price = Number(servicePricePerMu.value || 0);
  845. const area = Number(detailData.value?.farm?.mianji || detailData.value?.area || 0);
  846. if (!price || !area) return 0;
  847. return Number((price * area).toFixed(2));
  848. });
  849. // 显示用的服务费用(字符串或 "--")
  850. const getServiceTotal = () => {
  851. const total = serviceCostTotal.value;
  852. return total ? total.toFixed(2) : "--";
  853. };
  854. // 药肥费用总计:∑(单价 * 单亩用量 * 亩数)
  855. const pesticideCostTotal = computed(() => {
  856. const list = dynamicValidateForm.prescription?.pesticideFertilizerList || [];
  857. const area = Number(detailData.value?.farm?.mianji || detailData.value?.area || 0);
  858. if (!list.length || !area) return 0;
  859. const sum = list.reduce((acc, item) => {
  860. const price = Number(item?.price || 0);
  861. const dosage = Number(item?.dosage || 0);
  862. if (!price || !dosage) return acc;
  863. return acc + price * dosage * area;
  864. }, 0);
  865. return Number(sum.toFixed(2));
  866. });
  867. // 报价合计 = 药肥费用 + 服务费用
  868. const totalCost = computed(() => {
  869. const pesticide = Number(pesticideCostTotal.value || 0);
  870. const service = Number(serviceCostTotal.value || 0);
  871. if (!pesticide && !service) return 0;
  872. return Number((pesticide + service).toFixed(2));
  873. });
  874. const submitForm = (formEl) => {
  875. if (!formEl) return;
  876. formEl.validate(async (valid) => {
  877. if (valid) {
  878. // 校验农情互动,不通过,直接返回失败
  879. if (!onlyPrice.value && !validateInteractForm()) return false;
  880. // 校验药肥的亩兑水量和单亩用量是否填写
  881. if (!onlyPrice.value && !validatePesticideDosage()) return;
  882. // 保存报价信息前先校验是否填写完整
  883. if (!validatePriceInfos()) return;
  884. // 检验服务报价是否填写
  885. if (!validateServicePrice()) return;
  886. submit();
  887. } else {
  888. console.log("error submit!");
  889. }
  890. });
  891. };
  892. // 检验服务报价是否填写
  893. const validateServicePrice = () => {
  894. if (!servicePricePerMu.value) {
  895. ElMessage.warning("请完善服务报价信息");
  896. return false;
  897. }
  898. return true;
  899. };
  900. // 校验药肥的亩兑水量和单亩用量是否填写
  901. const validatePesticideDosage = () => {
  902. const list = dynamicValidateForm.prescription?.pesticideFertilizerList || [];
  903. if (!list.length) return true; // 没有药肥就不校验
  904. // 找到第一个未填写完整的药肥
  905. for (let i = 0; i < list.length; i++) {
  906. const item = list[i];
  907. // 如果选择了药肥(有 code),就必须填写亩兑水量和单亩用量
  908. if (item.code) {
  909. const hasRatio = item.ratio !== undefined && item.ratio !== null && item.ratio !== "";
  910. const hasDosage = item.dosage !== undefined && item.dosage !== null && item.dosage !== "";
  911. if (!hasRatio || !hasDosage) {
  912. ElMessage.warning("请完善药物处方信息");
  913. return false;
  914. }
  915. }
  916. }
  917. return true;
  918. };
  919. // 校验报价信息是否填写完整
  920. const validatePriceInfos = () => {
  921. const list = dynamicValidateForm.prescription?.pesticideFertilizerList || [];
  922. if (!list.length) return true; // 没有药肥就不校验
  923. // 找到第一个未填写完整的药肥
  924. const invalidIndex = list.findIndex((item) => {
  925. // 只要选择了药肥(有 id),就必须填写单价和品牌
  926. if (!item.id) return false; // 没选择药肥不校验
  927. const hasPrice = item.price !== undefined && item.price !== null && item.price !== "";
  928. const hasBrand = !!item.brand;
  929. return !hasPrice || !hasBrand;
  930. });
  931. if (invalidIndex !== -1) {
  932. ElMessage.warning("请先完善报价信息");
  933. return false;
  934. }
  935. return true;
  936. };
  937. const submit = () => {
  938. const data = {
  939. id: route.query.farmWorkId,
  940. ...dynamicValidateForm,
  941. serviceMuPrice: servicePricePerMu.value,
  942. prescription: dynamicValidateForm.prescription
  943. };
  944. VE_API.monitor.saveFarmWorkLib(data);
  945. if (!onlyPrice.value) {
  946. handleSaveInteract();
  947. }
  948. // 保存报价信息
  949. const priceList = {
  950. schemeId: detailData.value.schemeId,
  951. pesticideFertilizerInfos: dynamicValidateForm.prescription.pesticideFertilizerList.map(item => {
  952. return {
  953. pesticideFertilizerId: item.id,
  954. price: item.price,
  955. brand: item.brand,
  956. }
  957. }),
  958. }
  959. VE_API.farm.updateBatchByScheme(priceList).then(async (res) => {
  960. if (res.code === 0) {
  961. await getDetail();
  962. ElMessage.success("保存成功");
  963. if (onlyPrice.value) {
  964. router.back();
  965. return;
  966. }
  967. isEdit.value = false;
  968. nextTick(() => {
  969. if (pageRef.value) {
  970. pageRef.value.scrollTop = 0;
  971. } else {
  972. window.scrollTo(0, 0);
  973. }
  974. });
  975. }
  976. });
  977. // 切换标记
  978. VE_API.container_farm_work_arrange.toggleFollow({ id: route.query.farmWorkId, isFollow: tagName.value });
  979. };
  980. const handleSaveInteractSuccess = () => {
  981. getDetail();
  982. };
  983. const interactPopupRef = ref(null);
  984. const handleEditInteract = (item) => {
  985. if (interactPopupRef.value) {
  986. interactPopupRef.value.showPopup({...item, containerSpaceTimeId: route.query.containerSpaceTimeId,id:route.query.id});
  987. }
  988. };
  989. // 获取物候期列表
  990. const getPhenologyList = async (containerSpaceTimeId) => {
  991. if (!containerSpaceTimeId) {
  992. phenologyList.value = [];
  993. return;
  994. }
  995. const res = await VE_API.monitor.listPhenology({ containerSpaceTimeId });
  996. if (res.code === 0) {
  997. phenologyList.value = res.data || [];
  998. }
  999. };
  1000. // 获取互动设置详情
  1001. const getFarmWorkArrangeDetail = async (id) => {
  1002. if (!id) return;
  1003. const { data, code } = await VE_API.farm.getFarmWorkArrangeDetail({ id });
  1004. if(code === 0) {
  1005. tagName.value = data.isFollow;
  1006. interactFormData.value = {
  1007. phenologyId: data.phenologyId || "",
  1008. interactionTime: data.interactionTime || "",
  1009. interactionQuestion: data.interactionQuestion || "",
  1010. };
  1011. }
  1012. };
  1013. // 格式化日期
  1014. const formatInteractDate = (date) => {
  1015. // 如果已经是字符串格式 YYYY-MM-DD,直接返回
  1016. if (typeof date === "string" && /^\d{4}-\d{2}-\d{2}$/.test(date)) {
  1017. return date;
  1018. }
  1019. // 如果是 Date 对象,进行转换
  1020. if (date instanceof Date) {
  1021. let year = date.getFullYear();
  1022. let month = String(date.getMonth() + 1).padStart(2, "0");
  1023. let day = String(date.getDate()).padStart(2, "0");
  1024. return `${year}-${month}-${day}`;
  1025. }
  1026. // 其他情况返回原值
  1027. return date;
  1028. };
  1029. // 验证互动表单
  1030. const validateInteractForm = () => {
  1031. if (!interactFormData.value.phenologyId) {
  1032. ElMessage.warning("请选择互动时间");
  1033. return false;
  1034. }
  1035. if (!interactFormData.value.interactionTime) {
  1036. ElMessage.warning("请选择强制触发时间");
  1037. return false;
  1038. }
  1039. if (!interactFormData.value.interactionQuestion?.trim()) {
  1040. ElMessage.warning("请设置互动问题");
  1041. return false;
  1042. }
  1043. return true;
  1044. };
  1045. // 保存互动设置
  1046. const handleSaveInteract = async () => {
  1047. const paramsObj = {
  1048. id: route.query.id,
  1049. ...interactFormData.value,
  1050. interactionTime: formatInteractDate(interactFormData.value.interactionTime),
  1051. };
  1052. try {
  1053. const res = await VE_API.monitor.updateFarmWorkArrange(paramsObj);
  1054. if (res.code !== 0) {
  1055. ElMessage.error(res.message || "保存农情互动信息失败");
  1056. return false;
  1057. }
  1058. return true;
  1059. } catch (error) {
  1060. console.error("保存互动设置失败:", error);
  1061. ElMessage.error("保存失败,请重试");
  1062. return false;
  1063. }
  1064. };
  1065. // 删除互动设置
  1066. const handleDeleteInteract = () => {
  1067. ElMessageBox.confirm("确定要删除该互动设置吗?", "提示", {
  1068. confirmButtonText: "确定",
  1069. cancelButtonText: "取消",
  1070. type: "warning",
  1071. })
  1072. .then(async () => {
  1073. if (!detailData.value.id) return;
  1074. const res = await VE_API.monitor.deleteFarmWorkArrange({ id: detailData.value.id });
  1075. if (res.code === 0) {
  1076. ElMessage.success("删除成功");
  1077. // 清空表单数据
  1078. interactFormData.value = {
  1079. phenologyId: "",
  1080. interactionTime: "",
  1081. interactionQuestion: "",
  1082. };
  1083. await getDetail(); // 重新获取详情
  1084. } else {
  1085. ElMessage.error(res.message || "删除失败");
  1086. }
  1087. })
  1088. .catch(() => {
  1089. // 用户取消,不做任何操作
  1090. });
  1091. };
  1092. </script>
  1093. <style lang="scss" scoped>
  1094. .new-farming-page {
  1095. height: 100vh;
  1096. position: relative;
  1097. overflow: auto;
  1098. font-size: 14px;
  1099. background: #f2f3f5;
  1100. ::v-deep {
  1101. .custom-header {
  1102. position: fixed;
  1103. top: 0;
  1104. padding-bottom: 1px;
  1105. }
  1106. }
  1107. .step-wrap {
  1108. padding: 12px 0;
  1109. }
  1110. .box-wrap {
  1111. background: #fff;
  1112. padding: 20px 10px 10px;
  1113. border-radius: 6px;
  1114. }
  1115. .new-farming-content {
  1116. margin: 41px 0 62px 0;
  1117. padding: 4px 12px 8px 12px;
  1118. width: 100%;
  1119. box-sizing: border-box;
  1120. &.no-permission{
  1121. margin-bottom: 12px;
  1122. }
  1123. // ::v-deep {
  1124. // .el-select__input {
  1125. // color: #2199F8;
  1126. // }
  1127. // .el-select__wrapper {
  1128. // color: #2199F8;
  1129. // min-height: 30px;
  1130. // line-height: 28px;
  1131. // box-shadow: 0 0 0 1px rgba(33, 153, 248, 0.3) inset;
  1132. // }
  1133. // .el-select__caret {
  1134. // color: #2199F8;
  1135. // }
  1136. // .el-select__placeholder {
  1137. // color: #2199F8;
  1138. // }
  1139. // .el-radio {
  1140. // margin-right: 16px;
  1141. // }
  1142. // .el-input__wrapper {
  1143. // box-shadow: 0 0 0 1px rgba(33, 153, 248, 0.3) inset;
  1144. // }
  1145. // .el-input__prefix {
  1146. // color: #2199F8;
  1147. // }
  1148. // .el-input__inner {
  1149. // color: #2199F8;
  1150. // --el-input-placeholder-color: rgba(33, 153, 248, 0.43);
  1151. // }
  1152. // .el-tag.el-tag--info {
  1153. // --el-tag-text-color: #2199F8;
  1154. // --el-tag-bg-color: rgba(33, 153, 248, 0.1);
  1155. // }
  1156. // }
  1157. .farm-info {
  1158. color: rgba(0, 0, 0, 0.6);
  1159. font-size: 14px;
  1160. margin-top: 14px;
  1161. .info-title {
  1162. display: flex;
  1163. align-items: center;
  1164. justify-content: space-between;
  1165. color: rgba(41, 41, 41, 0.3);
  1166. .info-more {
  1167. display: flex;
  1168. align-items: center;
  1169. }
  1170. }
  1171. }
  1172. .farm-photo {
  1173. margin-top: 10px;
  1174. .photo-list {
  1175. display: flex;
  1176. align-items: center;
  1177. width: 100%;
  1178. overflow: auto;
  1179. padding-bottom: 10px;
  1180. .photo-item {
  1181. width: 92px;
  1182. height: 92px;
  1183. border-radius: 8px;
  1184. object-fit: cover;
  1185. }
  1186. .img-item {
  1187. img {
  1188. width: 92px;
  1189. height: 92px;
  1190. border-radius: 8px;
  1191. object-fit: cover;
  1192. margin-right: 12px;
  1193. }
  1194. }
  1195. }
  1196. .list-text {
  1197. text-align: center;
  1198. color: rgba(0, 0, 0, 0.5);
  1199. padding-top: 2px;
  1200. }
  1201. }
  1202. .submit-btn {
  1203. z-index: 10;
  1204. position: fixed;
  1205. bottom: 0px;
  1206. left: 0;
  1207. width: 100%;
  1208. display: flex;
  1209. align-items: center;
  1210. justify-content: space-between;
  1211. padding: 12px;
  1212. background: #fff;
  1213. box-sizing: border-box;
  1214. box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
  1215. border-top: 1px solid rgba(0, 0, 0, 0.1);
  1216. &.center-btn {
  1217. justify-content: center;
  1218. }
  1219. .btn {
  1220. height: 40px;
  1221. border-radius: 25px;
  1222. line-height: 40px;
  1223. width: 110px;
  1224. text-align: center;
  1225. background: linear-gradient(180deg, #70bffe, #2199f8);
  1226. color: #ffffff;
  1227. font-size: 14px;
  1228. &.second {
  1229. background: #ffffff;
  1230. border: 1px solid rgba(153, 153, 153, 0.5);
  1231. color: #666666;
  1232. }
  1233. }
  1234. .btn + .btn {
  1235. margin-left: 12px;
  1236. }
  1237. }
  1238. }
  1239. .card-title {
  1240. font-size: 16px;
  1241. font-weight: bold;
  1242. color: #000;
  1243. display: flex;
  1244. align-items: center;
  1245. &.between {
  1246. justify-content: space-between;
  1247. .del-tag {
  1248. color: #e04c4c;
  1249. border: 1px solid #e04c4c;
  1250. border-radius: 5px;
  1251. padding: 4px 14px;
  1252. font-size: 12px;
  1253. font-weight: normal;
  1254. }
  1255. .title-tag {
  1256. padding: 2px 10px;
  1257. height: 26px;
  1258. line-height: 26px;
  1259. }
  1260. }
  1261. // justify-content: space-between;
  1262. .add-tag {
  1263. font-size: 12px;
  1264. color: #2199f8;
  1265. padding: 0px 11px;
  1266. border: 1px solid #2199F8;
  1267. border-radius: 5px;
  1268. font-weight: normal;
  1269. height: 28px;
  1270. line-height: 28px;
  1271. }
  1272. .type-tag {
  1273. margin-left: 5px;
  1274. font-size: 12px;
  1275. color: #000000;
  1276. padding: 0 10px;
  1277. background: rgba(119, 119, 119, 0.1);
  1278. border-radius: 20px;
  1279. font-weight: normal;
  1280. height: 26px;
  1281. line-height: 26px;
  1282. display: inline-block;
  1283. }
  1284. }
  1285. .pb-12 {
  1286. padding-bottom: 12px;
  1287. }
  1288. .farm-card {
  1289. background: #ffffff;
  1290. border-radius: 8px;
  1291. padding: 12px 12px 0 12px;
  1292. width: 100%;
  1293. box-sizing: border-box;
  1294. margin-top: 10px;
  1295. color: rgba(0, 0, 0, 0.4);
  1296. &.progress {
  1297. display: flex;
  1298. align-items: center;
  1299. padding: 12px;
  1300. .progress-title {
  1301. margin-right: 12px;
  1302. }
  1303. ::v-deep {
  1304. .el-radio {
  1305. margin-right: 10px;
  1306. }
  1307. }
  1308. }
  1309. &.map-content {
  1310. margin-top: 12px;
  1311. }
  1312. &.prescription-content {
  1313. padding: 12px;
  1314. }
  1315. .border-bottom {
  1316. padding-bottom: 7px;
  1317. border-bottom: 1px solid rgba(245, 245, 245, 0.99);
  1318. }
  1319. }
  1320. .table-item {
  1321. padding: 6px 0 10px 0;
  1322. .form-item {
  1323. display: flex;
  1324. align-items: center;
  1325. font-size: 14px;
  1326. color: #767676;
  1327. height: 24px;
  1328. .item-name {
  1329. width: 80px;
  1330. color: rgba(0, 0, 0, 0.2);
  1331. }
  1332. }
  1333. }
  1334. .new-wrap {
  1335. border-radius: 5px;
  1336. text-align: center;
  1337. border: 1px solid rgba(225, 225, 225, 0.5);
  1338. .new-title {
  1339. background: rgba(241, 241, 241, 0.4);
  1340. border-radius: 5px 5px 0 0;
  1341. border-bottom: 1px solid rgba(225, 225, 225, 0.5);
  1342. display: flex;
  1343. color: #767676;
  1344. // justify-content: space-around;
  1345. padding: 5px 6px;
  1346. font-size: 12px;
  1347. .table-name {
  1348. width: 24px;
  1349. font-size: 12px;
  1350. margin: 0 auto;
  1351. }
  1352. }
  1353. .title-1 {
  1354. width: 46px;
  1355. }
  1356. .title-2 {
  1357. flex: 1;
  1358. }
  1359. .title-3 {
  1360. width: 52px;
  1361. }
  1362. .title-4 {
  1363. width: 56px;
  1364. }
  1365. .title-5 {
  1366. width: 52px;
  1367. }
  1368. .new-table-wrap {
  1369. padding: 5px 0;
  1370. .new-prescription + .new-prescription {
  1371. border-top: 1px solid rgba(225, 225, 225, 0.8);
  1372. }
  1373. // .new-prescription {
  1374. .new-table {
  1375. display: flex;
  1376. align-items: center;
  1377. // border: 1px solid rgba(225, 225, 225, 0.8);
  1378. background: #fff;
  1379. border-radius: 5px;
  1380. color: rgba(0, 0, 0, 0.6);
  1381. font-size: 11px;
  1382. .line-l {
  1383. display: flex;
  1384. flex: 1;
  1385. .line-2 {
  1386. flex: 1;
  1387. padding: 0 2px;
  1388. }
  1389. }
  1390. .line-r {
  1391. &.has-border {
  1392. border-left: 1px solid rgba(225, 225, 225, 0.8);
  1393. }
  1394. .line-3 {
  1395. display: flex;
  1396. align-items: center;
  1397. }
  1398. .sub-line {
  1399. padding: 10px 0;
  1400. }
  1401. .line-4 {
  1402. display: flex;
  1403. align-items: center;
  1404. border-top: 1px solid rgba(225, 225, 225, 0.8);
  1405. }
  1406. .execute-line {
  1407. border-right: 1px solid rgba(225, 225, 225, 0.8);
  1408. }
  1409. }
  1410. }
  1411. .note-text {
  1412. margin: 8px 0 4px 0;
  1413. color: rgba(0, 0, 0, 0.4);
  1414. background: #fff;
  1415. padding: 6px 8px;
  1416. border-radius: 5px;
  1417. text-align: left;
  1418. font-size: 11px;
  1419. }
  1420. // }
  1421. // .new-prescription + .new-prescription {
  1422. // padding-top: 8px;
  1423. // }
  1424. }
  1425. }
  1426. .info-content-wrap {
  1427. ::v-deep {
  1428. .new-table-wrap {
  1429. padding: 5px 0;
  1430. .new-prescription + .new-prescription {
  1431. border-top: 1px solid rgba(225, 225, 225, 0.8);
  1432. }
  1433. }
  1434. }
  1435. }
  1436. .price-bottom {
  1437. padding-top: 8px;
  1438. .info-title-wrap {
  1439. display: flex;
  1440. align-items: center;
  1441. justify-content: space-between;
  1442. color: #000;
  1443. .info-more {
  1444. font-size: 18px;
  1445. }
  1446. .unit-text {
  1447. font-size: 12px;
  1448. }
  1449. }
  1450. .price-info {
  1451. padding: 8px 0;
  1452. display: flex;
  1453. align-items: center;
  1454. justify-content: space-between;
  1455. color: rgba(0, 0, 0, 0.2);
  1456. .main-text {
  1457. padding-left: 6px;
  1458. color: rgba(0, 0, 0, 0.8);
  1459. }
  1460. .info-c {
  1461. flex: 1;
  1462. text-align: center;
  1463. }
  1464. }
  1465. .price-total {
  1466. height: 38px;
  1467. display: flex;
  1468. align-items: center;
  1469. justify-content: center;
  1470. border: 1px solid rgba(33, 153, 248, 0.5);
  1471. background: rgba(33, 153, 248, 0.1);
  1472. color: #000000;
  1473. border-radius: 4px;
  1474. .main-val {
  1475. font-size: 20px;
  1476. font-weight: bold;
  1477. color: #2199f8;
  1478. padding-right: 2px;
  1479. }
  1480. }
  1481. }
  1482. .pb-8 {
  1483. padding-bottom: 8px;
  1484. }
  1485. .common-inputs {
  1486. ::v-deep {
  1487. .el-input__wrapper {
  1488. box-shadow: none;
  1489. }
  1490. .el-input-group__append {
  1491. padding: 0 10px;
  1492. background: none;
  1493. box-shadow: none;
  1494. }
  1495. .el-input-group__append {
  1496. color: rgba(33, 153, 248, 0.5);
  1497. }
  1498. .el-input {
  1499. border: 1px solid rgba(33, 153, 248, 0.3);
  1500. border-radius: 5px;
  1501. height: 30px;
  1502. box-sizing: border-box;
  1503. }
  1504. .el-input__wrapper {
  1505. padding: 0 2px 0 10px;
  1506. height: 28px;
  1507. line-height: 28px;
  1508. min-height: 28px;
  1509. }
  1510. .el-input__inner {
  1511. --el-input-inner-height: 28px;
  1512. height: 28px;
  1513. line-height: 28px;
  1514. min-height: 28px;
  1515. color: #2199f8;
  1516. --el-input-placeholder-color: rgba(33, 153, 248, 0.43);
  1517. }
  1518. .el-select__wrapper {
  1519. box-shadow: 0 0 0 1px rgba(33, 153, 248, 0.3) inset;
  1520. }
  1521. .el-select__placeholder,
  1522. .el-select__caret {
  1523. color: #2199f8;
  1524. }
  1525. }
  1526. }
  1527. .medicine-box {
  1528. margin-top: 12px;
  1529. // padding-top: 10px;
  1530. border: 1px solid rgba(33, 153, 248, 0.8);
  1531. position: relative;
  1532. border-radius: 6px;
  1533. .item-title {
  1534. padding-left: 5px;
  1535. font-size: 16px;
  1536. color: #000000;
  1537. font-weight: 500;
  1538. padding-bottom: 10px;
  1539. }
  1540. .medicine-item {
  1541. display: flex;
  1542. align-items: center;
  1543. justify-content: space-between;
  1544. height: 32px;
  1545. .item-name {
  1546. color: rgba(0, 0, 0, 0.4);
  1547. }
  1548. .item-val {
  1549. min-width: 142px;
  1550. text-align: center;
  1551. color: #302f2f;
  1552. display: flex;
  1553. align-items: center;
  1554. justify-content: center;
  1555. gap: 4px;
  1556. .price-unit {
  1557. font-size: 12px;
  1558. color: rgba(0, 0, 0, 0.4);
  1559. white-space: nowrap;
  1560. }
  1561. }
  1562. .item-total {
  1563. font-size: 16px;
  1564. color: #000;
  1565. }
  1566. .item-price {
  1567. color: #2199f8;
  1568. font-size: 20px;
  1569. font-weight: bold;
  1570. .item-unit {
  1571. font-size: 14px;
  1572. font-weight: normal;
  1573. padding-left: 2px;
  1574. color: #474747;
  1575. }
  1576. }
  1577. }
  1578. .medicine-item + .medicine-item {
  1579. padding-top: 2px;
  1580. }
  1581. .mt-8 {
  1582. margin-top: 8px;
  1583. }
  1584. }
  1585. .usage-mode-wrap {
  1586. padding: 0 12px;
  1587. margin-top: 12px;
  1588. .info-content {
  1589. padding-top: 14px;
  1590. padding-bottom: 1px;
  1591. }
  1592. .el-form-item--default {
  1593. margin-bottom: 0;
  1594. }
  1595. }
  1596. ::v-deep {
  1597. .el-form-item__label {
  1598. height: 30px;
  1599. line-height: 30px;
  1600. color: rgba(0, 0, 0, 0.4);
  1601. }
  1602. .el-form-item.is-required:not(.is-no-asterisk).asterisk-left > .el-form-item__label:before {
  1603. display: none;
  1604. }
  1605. }
  1606. .interact-content {
  1607. padding: 10px 0;
  1608. line-height: 20px;
  1609. color: #919191;
  1610. font-size: 14px;
  1611. }
  1612. .interact-form {
  1613. padding: 8px 0 20px 0px;
  1614. .interact-form-item {
  1615. display: flex;
  1616. align-items: baseline;
  1617. margin-bottom: 12px;
  1618. &:last-child {
  1619. margin-bottom: 0;
  1620. }
  1621. .form-label {
  1622. width: 70px;
  1623. color: rgba(0, 0, 0, 0.4);
  1624. font-weight: normal;
  1625. margin-right: 10px;
  1626. font-size: 14px;
  1627. flex: none;
  1628. }
  1629. .form-input-wrapper {
  1630. position: relative;
  1631. width: calc(100% - 70px);
  1632. ::v-deep {
  1633. .el-input__inner {
  1634. caret-color: transparent;
  1635. padding-right: 40px;
  1636. }
  1637. .el-input__suffix {
  1638. display: none;
  1639. }
  1640. }
  1641. }
  1642. .question-textarea {
  1643. ::v-deep {
  1644. .el-textarea__inner {
  1645. resize: none;
  1646. line-height: 1.5;
  1647. min-height: 80px;
  1648. }
  1649. }
  1650. }
  1651. }
  1652. .interact-buttons {
  1653. display: flex;
  1654. gap: 12px;
  1655. padding-top: 16px;
  1656. .btn-delete,
  1657. .btn-save {
  1658. flex: 1;
  1659. padding: 8px;
  1660. border-radius: 25px;
  1661. font-size: 16px;
  1662. text-align: center;
  1663. cursor: pointer;
  1664. transition: all 0.3s;
  1665. user-select: none;
  1666. }
  1667. .btn-delete {
  1668. background: #ffffff;
  1669. border: 1px solid #ff4d4f;
  1670. color: #ff4d4f;
  1671. &:hover {
  1672. background: #fff5f5;
  1673. }
  1674. &:active {
  1675. opacity: 0.8;
  1676. transform: scale(0.98);
  1677. }
  1678. }
  1679. .btn-save {
  1680. background: #2199f8;
  1681. color: #fff;
  1682. border: none;
  1683. &:hover:not(.disabled) {
  1684. background: #1a8ae6;
  1685. }
  1686. &:active:not(.disabled) {
  1687. opacity: 0.9;
  1688. transform: scale(0.98);
  1689. }
  1690. &.disabled {
  1691. opacity: 0.6;
  1692. cursor: not-allowed;
  1693. pointer-events: none;
  1694. }
  1695. }
  1696. }
  1697. }
  1698. .edit-tag {
  1699. padding-left: 4px;
  1700. color: #2199f8;
  1701. }
  1702. .tag-text {
  1703. font-size: 12px;
  1704. font-weight: normal;
  1705. }
  1706. .info-content {
  1707. padding: 10px 0;
  1708. position: relative;
  1709. .condition-wrap {
  1710. display: flex;
  1711. align-items: center;
  1712. width: 100%;
  1713. .symbol {
  1714. width: 10px;
  1715. // text-align: center;
  1716. // padding: 0 4px;
  1717. }
  1718. }
  1719. .item-input {
  1720. // width: 60%;
  1721. min-width: 140px;
  1722. max-width: 240px;
  1723. }
  1724. .recheck-text {
  1725. padding-left: 6px;
  1726. }
  1727. .info-item {
  1728. display: flex;
  1729. justify-content: space-between;
  1730. align-items: center;
  1731. width: 100%;
  1732. }
  1733. .info-item + .info-item {
  1734. margin-top: 12px;
  1735. }
  1736. .bottom-map {
  1737. width: 100%;
  1738. height: 250px;
  1739. clip-path: inset(0px round 8px);
  1740. }
  1741. .check-btn {
  1742. position: absolute;
  1743. bottom: 16px;
  1744. right: 6px;
  1745. background: rgba(0, 0, 0, 0.6);
  1746. padding: 0 8px;
  1747. border-radius: 8px;
  1748. ::v-deep {
  1749. .el-checkbox {
  1750. color: #fff;
  1751. }
  1752. }
  1753. }
  1754. .area-select {
  1755. padding-bottom: 12px;
  1756. .block {
  1757. width: 12px;
  1758. display: inline-block;
  1759. }
  1760. }
  1761. }
  1762. ::v-deep {
  1763. .el-form-item--default {
  1764. margin-bottom: 8px;
  1765. &.text-item {
  1766. margin-bottom: 2px;
  1767. .el-form-item__content {
  1768. line-height: 24px;
  1769. }
  1770. .el-form-item__label {
  1771. height: 24px;
  1772. line-height: 24px;
  1773. }
  1774. }
  1775. }
  1776. }
  1777. .sub-title {
  1778. display: flex;
  1779. align-items: center;
  1780. justify-content: space-between;
  1781. color: rgba(0, 0, 0, 0.6);
  1782. font-size: 14px;
  1783. .add-tag {
  1784. font-size: 12px;
  1785. color: #2199f8;
  1786. padding: 0 8px;
  1787. border: 1px solid #2199f8;
  1788. border-radius: 5px;
  1789. font-weight: normal;
  1790. height: 28px;
  1791. line-height: 28px;
  1792. }
  1793. }
  1794. .font-bold {
  1795. font-weight: 500;
  1796. color: #000000;
  1797. }
  1798. .form-index {
  1799. position: absolute;
  1800. left: 0;
  1801. top: 0;
  1802. padding: 0 6px;
  1803. background: #2199f8;
  1804. border-radius: 5px 0 4px 0;
  1805. height: 18px;
  1806. line-height: 18px;
  1807. font-size: 12px;
  1808. color: #fff;
  1809. }
  1810. .recipe-item {
  1811. width: 100%;
  1812. .recipe-form {
  1813. padding-top: 8px;
  1814. ::v-deep {
  1815. .el-form-item {
  1816. &:last-child {
  1817. margin-bottom: 0;
  1818. }
  1819. }
  1820. }
  1821. }
  1822. .mt-8 {
  1823. margin-top: 8px;
  1824. }
  1825. .box-item {
  1826. display: flex;
  1827. align-items: center;
  1828. justify-content: space-between;
  1829. color: rgba(0, 0, 0, 0.4);
  1830. .r-text {
  1831. color: #302f2f;
  1832. width: 150px;
  1833. text-align: center;
  1834. }
  1835. .form-r {
  1836. width: 150px;
  1837. min-width: 140px;
  1838. max-width: 240px;
  1839. }
  1840. }
  1841. .form-box {
  1842. border: 1px solid rgba(33, 153, 248, 0.8);
  1843. border-radius: 6px;
  1844. padding: 20px 10px;
  1845. width: 100%;
  1846. box-sizing: border-box;
  1847. position: relative;
  1848. // background: rgb(209, 235, 255, 0.3);
  1849. // margin-bottom: 12px;
  1850. .input-box {
  1851. &.mark-box {
  1852. padding: 8px 0 12px 0;
  1853. }
  1854. }
  1855. // .input-unit {
  1856. // ::v-deep {
  1857. // .el-input {
  1858. // border: 1px solid #dcdfe6;
  1859. // border-radius: 5px;
  1860. // height: 32px;
  1861. // box-sizing: border-box;
  1862. // }
  1863. // .el-input__wrapper {
  1864. // padding: 0 2px 0 10px;
  1865. // height: 30px;
  1866. // line-height: 30px;
  1867. // min-height: 30px;
  1868. // box-shadow: none;
  1869. // }
  1870. // .el-input__inner {
  1871. // --el-input-inner-height: 30px;
  1872. // height: 30px;
  1873. // line-height: 30px;
  1874. // min-height: 30px;
  1875. // color: #606266;
  1876. // --el-input-placeholder-color: #a8abb2;
  1877. // }
  1878. // .el-input-group__append {
  1879. // box-shadow: none;
  1880. // border: none;
  1881. // background: none;
  1882. // }
  1883. // }
  1884. // }
  1885. // .text-center {
  1886. // ::v-deep {
  1887. // .el-input__inner {
  1888. // text-align: center;
  1889. // }
  1890. // }
  1891. // }
  1892. .action-btn {
  1893. display: flex;
  1894. justify-content: flex-end;
  1895. .btn {
  1896. color: #8f8f8f;
  1897. border-radius: 25px;
  1898. padding: 5px 30px;
  1899. }
  1900. .delete-btn {
  1901. color: rgba(255, 89, 89, 0.9);
  1902. background: #fff;
  1903. border: 1px solid rgba(255, 89, 89, 0.9);
  1904. }
  1905. }
  1906. .btn-group {
  1907. padding-top: 12px;
  1908. }
  1909. .sub-item {
  1910. // padding-left: 10px;
  1911. .has-sub {
  1912. display: flex;
  1913. flex-direction: column;
  1914. align-items: center;
  1915. .main-name {
  1916. line-height: 20px;
  1917. }
  1918. .sub-name {
  1919. font-size: 10px;
  1920. color: rgba(129, 129, 129, 0.5);
  1921. line-height: 14px;
  1922. }
  1923. }
  1924. .colunm-sub {
  1925. display: flex;
  1926. align-items: center;
  1927. .sub-name {
  1928. font-size: 10px;
  1929. color: rgba(129, 129, 129, 0.5);
  1930. }
  1931. }
  1932. .r-text {
  1933. width: 132px;
  1934. text-align: center;
  1935. font-size: 14px;
  1936. color: #474747;
  1937. }
  1938. .price {
  1939. ::v-deep {
  1940. .el-input__wrapper {
  1941. box-shadow: 0 0 0 1px rgba(33, 153, 248, 0.3) inset;
  1942. }
  1943. .el-input__inner {
  1944. color: #2199f8;
  1945. }
  1946. }
  1947. }
  1948. }
  1949. .form-title {
  1950. font-size: 14px;
  1951. padding-top: 6px;
  1952. color: #000;
  1953. font-weight: 600;
  1954. }
  1955. .box-item + .box-item {
  1956. margin-top: 8px;
  1957. }
  1958. }
  1959. .form-box + .form-box {
  1960. margin-top: 8px;
  1961. }
  1962. .usageMode-wrap {
  1963. padding-top: 8px;
  1964. }
  1965. }
  1966. // 状况描述样式
  1967. .situation-description {
  1968. width: 100%;
  1969. .description-title {
  1970. font-size: 16px;
  1971. font-weight: bold;
  1972. color: #000;
  1973. margin-bottom: 12px;
  1974. }
  1975. .description-content {
  1976. .description-textarea {
  1977. margin-bottom: 10px;
  1978. width: 100%;
  1979. }
  1980. .upload-section {
  1981. .upload-btn {
  1982. width: 112px;
  1983. height: 32px;
  1984. border-radius: 3px;
  1985. border: 1px solid #e0e0e0;
  1986. background: #fff;
  1987. color: #000;
  1988. font-size: 14px;
  1989. display: flex;
  1990. align-items: center;
  1991. justify-content: center;
  1992. margin-bottom: 8px;
  1993. .el-icon {
  1994. margin-right: 6px;
  1995. }
  1996. }
  1997. .upload-tip {
  1998. font-size: 12px;
  1999. color: #999;
  2000. line-height: 1.4;
  2001. }
  2002. }
  2003. }
  2004. }
  2005. // 专家诊断按钮样式
  2006. .expert-diagnosis-btn {
  2007. width: 180px;
  2008. height: 40px;
  2009. border-radius: 24px;
  2010. background: linear-gradient(180deg, #70bffe 0%, #2199f8 100%);
  2011. color: #ffffff;
  2012. display: flex;
  2013. align-items: center;
  2014. justify-content: center;
  2015. margin: 30px auto 0;
  2016. }
  2017. }
  2018. .tag-list {
  2019. font-size: 14px;
  2020. .tag-item + .tag-item {
  2021. margin-top: 6px;
  2022. }
  2023. .tag-item {
  2024. padding: 2px 8px;
  2025. text-align: center;
  2026. &.active {
  2027. color: #2199f8;
  2028. background: rgba(33, 153, 248, 0.16);
  2029. border-radius: 4px;
  2030. }
  2031. }
  2032. }
  2033. .task-tips-popup {
  2034. width: 75%;
  2035. padding: 28px 28px 20px;
  2036. display: flex;
  2037. flex-direction: column;
  2038. align-items: center;
  2039. justify-content: center;
  2040. .create-farm-icon {
  2041. width: 40px;
  2042. height: 40px;
  2043. margin-bottom: 12px;
  2044. }
  2045. .farm-check-icon {
  2046. width: 68px;
  2047. height: 68px;
  2048. margin-bottom: 12px;
  2049. }
  2050. .create-farm-text {
  2051. font-size: 20px;
  2052. font-weight: 500;
  2053. line-height: 40px;
  2054. margin-bottom: 32px;
  2055. text-align: center;
  2056. &.success-text {
  2057. font-size: 24px;
  2058. font-weight: 500;
  2059. }
  2060. }
  2061. .main-text {
  2062. color: #2199f8;
  2063. }
  2064. .create-farm-btn {
  2065. width: 100%;
  2066. box-sizing: border-box;
  2067. padding: 8px;
  2068. border-radius: 25px;
  2069. font-size: 16px;
  2070. background: #2199f8;
  2071. color: #fff;
  2072. text-align: center;
  2073. }
  2074. }
  2075. </style>