task.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. <template>
  2. <!-- 养殖 -->
  3. <view class="" v-if="data.taskType === '2'" @click="$emit('click')">
  4. <view class="b-radius bg-#fff pd-10 p-rtv">
  5. <image class="w-80 h-34" src="/static/images/plant/port/Task_Breeding.png" mode="widthFix" style="position: absolute; top: 0; left: 0" />
  6. <view class="d-flex j-ed f-s-22 c-#666">{{ data?.plannedStartDate }}至{{ data?.plannedEndDate }}</view>
  7. <view class="d-flex a-ed pd-16 pt-8 pb-8">
  8. <view class="c-#333 f-s-34 f-w-5 mr-6">{{ data?.variety }}</view>
  9. <view class="c-#666 f-s-26">{{ data?.genusName }}</view>
  10. </view>
  11. <view class="d-flex a-c f-s-28 pd-16 pt-8 pb-8">
  12. <view class="c-#666 w-s-no">养殖批号:</view>
  13. <view class="c-#333 f-w-5">{{ data?.plantationCode }}</view>
  14. </view>
  15. <view class="d-flex a-c f-s-28 pd-16 pt-8 pb-8">
  16. <view class="c-#666 w-s-no">种源批号:</view>
  17. <view v-if="data?.seedCodeList.length !== 0">
  18. <view class="c-#333 f-w-5" v-for="item in data?.seedCodeList" :key="item">{{ item }}</view>
  19. </view>
  20. <view v-else>
  21. <view class="c-#666">暂无完善种源信息</view>
  22. </view>
  23. </view>
  24. <view class="d-flex a-c f-s-28 pd-16 pt-8 pb-8">
  25. <view class="c-#666 w-s-no">基地:</view>
  26. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd d-flex a-c">
  27. {{ data?.baseRef?.baseInfo?.address }}基地
  28. <text v-if="data?.landIds.length == 0">全部地块</text>
  29. <view v-else>
  30. <text v-for="(item, index) in data?.baseRef?.baseInfo?.landList" :key="index"><text v-if="index != 0">、</text> {{ item?.landName }}</text>
  31. </view>
  32. </view>
  33. <view class="flex1 d-flex j-ed"><up-icon name="arrow-right" size="34rpx"></up-icon></view>
  34. </view>
  35. <view class="d-flex f-s-28 pd-16 pt-8 pb-8">
  36. <view class="d-flex a-c w-50%">
  37. <view class="c-#666 w-s-no">养殖区域:</view>
  38. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd">{{ data?.breedScale }}{{ data?.breedScaleUnit }}</view>
  39. </view>
  40. <view class="d-flex a-c w-50%">
  41. <view class="c-#666 w-s-no">养殖量:</view>
  42. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd">{{ data?.plantingMgAmount }}{{ data?.plantingMgUnit }}</view>
  43. </view>
  44. </view>
  45. <view class="pd-16 pt-8 pb-8">
  46. <up-line color="#f7f7f7"></up-line>
  47. </view>
  48. <view class="pd-16 pt-8 pb-8 d-flex j-sb gap-20">
  49. <up-button :customStyle="customStyle1">
  50. <view class="d-flex a-c j-c">
  51. <image class="w-28 h-24" src="/static/images/plant/port/Task_Species_source_information.png" mode="widthFix" />
  52. <text class="f-s-26">种源信息</text>
  53. </view>
  54. </up-button>
  55. <up-button :customStyle="customStyle2">
  56. <view class="d-flex a-c j-c">
  57. <image class="w-28 h-24" src="/static/images/plant/port/Task_Breeding_management.png" mode="widthFix" />
  58. <text class="f-s-26">饲养管理</text>
  59. </view>
  60. </up-button>
  61. <up-button :customStyle="customStyle3">
  62. <view class="d-flex a-c j-c">
  63. <image class="w-28 h-24" src="/static/images/plant/port/Task_Harvest_management.png" mode="widthFix" />
  64. <text class="f-s-26">采收管理</text>
  65. </view>
  66. </up-button>
  67. </view>
  68. </view>
  69. </view>
  70. <!-- 种苗繁育 -->
  71. <view class="" v-if="data.taskType === '11'" @click="$emit('click')">
  72. <view class="b-radius bg-#fff pd-10 p-rtv">
  73. <image class="w-112 h-34" src="/static/images/plant/port/Task_Seedling_breeding.png" mode="widthFix" style="position: absolute; top: 0; left: 0" />
  74. <view class="d-flex j-ed f-s-22 c-#666">{{ data?.plannedStartDate }} 至 {{ data?.plannedEndDate }}</view>
  75. <view class="d-flex a-ed pd-16 pt-8 pb-8">
  76. <view class="c-#333 f-s-34 f-w-5 mr-6">{{ data?.variety }}</view>
  77. <view class="c-#666 f-s-26">{{ data?.genusName }}</view>
  78. </view>
  79. <view class="d-flex a-c f-s-28 pd-16 pt-8 pb-8">
  80. <view class="c-#666 w-s-no">繁育批号:</view>
  81. <view class="c-#333 f-w-5">{{ data?.plantationCode }}</view>
  82. </view>
  83. <view class="d-flex a-c f-s-28 pd-16 pt-8 pb-8">
  84. <view class="c-#666 w-s-no">种源批号:</view>
  85. <view v-if="data?.seedCodeList.length !== 0">
  86. <view class="c-#333 f-w-5" v-for="item in data?.seedCodeList" :key="item">{{ item }}</view>
  87. </view>
  88. <view v-else>
  89. <view class="c-#666">暂无完善种源信息</view>
  90. </view>
  91. </view>
  92. <view class="d-flex a-c f-s-28 pd-16 pt-8 pb-8">
  93. <view class="c-#666 w-s-no">基地:</view>
  94. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd d-flex a-c">
  95. {{ data?.baseRef?.baseInfo?.address }}基地
  96. <text v-if="data?.landIds.length == 0">全部地块</text>
  97. <view v-else>
  98. <text v-for="(item, index) in data?.baseRef?.baseInfo?.landList" :key="index"><text v-if="index != 0">、</text> {{ item?.landName }}</text>
  99. </view>
  100. </view>
  101. <view class="flex1 d-flex j-ed"><up-icon name="arrow-right" size="34rpx"></up-icon></view>
  102. </view>
  103. <view class="d-flex f-s-28 pd-16 pt-8 pb-8">
  104. <view v-if="data?.lands[0]?.landType == '3'" class="d-flex a-c w-50%">
  105. <view class="c-#666 w-s-no">接种数量:</view>
  106. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd">{{ data?.inoculationAmount }}{{ data?.inoculationUnit }}</view>
  107. </view>
  108. <view v-else class="d-flex a-c w-50%">
  109. <view class="c-#666 w-s-no">种植面积:</view>
  110. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd">{{ data?.plantingAmount }}{{ data?.plantingUnit }}</view>
  111. </view>
  112. <view class="d-flex a-c w-50%">
  113. <view class="c-#666 w-s-no">繁育量:</view>
  114. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd">{{ data?.plantingMgAmount }}{{ data?.plantingMgUnit }}</view>
  115. </view>
  116. </view>
  117. <view class="pd-16 pt-8 pb-8">
  118. <up-line color="#f7f7f7"></up-line>
  119. </view>
  120. <view class="pd-16 pt-8 pb-8 d-flex j-sb gap-20">
  121. <up-button :customStyle="customStyle1">
  122. <view class="d-flex a-c j-c">
  123. <image class="w-28 h-24" src="/static/images/plant/port/Task_Species_source_information.png" mode="widthFix" />
  124. <text class="f-s-26">种源信息</text>
  125. </view>
  126. </up-button>
  127. <up-button v-if="data?.lands[0]?.landType == '3'" :customStyle="customStyle2">
  128. <view class="d-flex a-c j-c">
  129. <image class="w-28 h-24" src="/static/images/plant/port/Task_Breeding_management.png" mode="widthFix" />
  130. <text class="f-s-26"> 繁育管理 </text>
  131. </view>
  132. </up-button>
  133. <up-button v-else :customStyle="customStyle2">
  134. <view class="d-flex a-c j-c">
  135. <image class="w-28 h-24" src="/static/images/plant/port/Task_Breeding_management.png" mode="widthFix" />
  136. <text class="f-s-26"> 种植管理 </text>
  137. </view>
  138. </up-button>
  139. <up-button :customStyle="customStyle3">
  140. <view class="d-flex a-c j-c">
  141. <image class="w-28 h-24" src="/static/images/plant/port/Task_Harvest_management.png" mode="widthFix" />
  142. <text class="f-s-26">采收管理</text>
  143. </view>
  144. </up-button>
  145. </view>
  146. </view>
  147. </view>
  148. <!-- 种植 -->
  149. <view class="" v-if="data.taskType === '1'" @click="$emit('click')">
  150. <view class="b-radius bg-#fff pd-10 p-rtv">
  151. <image class="w-80 h-34" src="/static/images/plant/port/Task_Planting.png" mode="widthFix" style="position: absolute; top: 0; left: 0" />
  152. <view class="d-flex j-ed f-s-22 c-#666">{{ data?.plannedStartDate }}至{{ data?.plannedEndDate }}</view>
  153. <view class="d-flex a-ed pd-16 pt-8 pb-8">
  154. <view class="c-#333 f-s-34 f-w-5 mr-6">{{ data?.variety }}</view>
  155. <view class="c-#666 f-s-26">{{ data?.genusName }}</view>
  156. </view>
  157. <view class="d-flex a-c f-s-28 pd-16 pt-8 pb-8">
  158. <view class="c-#666 w-s-no">种植批号:</view>
  159. <view class="c-#333 f-w-5">{{ data?.plantationCode }}</view>
  160. </view>
  161. <view class="d-flex a-c f-s-28 pd-16 pt-8 pb-8">
  162. <view class="c-#666 w-s-no">种源批号:</view>
  163. <view v-if="data?.seedCodeList.length !== 0">
  164. <view class="c-#333 f-w-5" v-for="item in data?.seedCodeList" :key="item">{{ item }}</view>
  165. </view>
  166. <view v-else>
  167. <view class="c-#666">暂无完善种源信息</view>
  168. </view>
  169. </view>
  170. <view class="d-flex a-c f-s-28 pd-16 pt-8 pb-8">
  171. <view class="c-#666 w-s-no">基地:</view>
  172. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd d-flex a-c">
  173. {{ data?.baseRef?.baseInfo?.address }}基地
  174. <text v-if="data?.landIds.length == 0">全部地块</text>
  175. <view v-else>
  176. <text v-for="(item, index) in data?.baseRef?.baseInfo?.landList" :key="index"><text v-if="index != 0">、</text> {{ item?.landName }}</text>
  177. </view>
  178. </view>
  179. <view class="flex1 d-flex j-ed"><up-icon name="arrow-right" size="34rpx"></up-icon></view>
  180. </view>
  181. <view class="d-flex f-s-28 pd-16 pt-8 pb-8">
  182. <view class="d-flex a-c w-50%">
  183. <view class="c-#666 w-s-no">种植面积:</view>
  184. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd">{{ data?.plantingAmount }}{{ data?.plantingUnit }}</view>
  185. </view>
  186. <view class="d-flex a-c w-50%">
  187. <view class="c-#666 w-s-no">种植量:</view>
  188. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd">{{ data?.plantingMgAmount }}{{ data?.plantingMgUnit }}</view>
  189. </view>
  190. </view>
  191. <view class="pd-16 pt-8 pb-8">
  192. <up-line color="#f7f7f7"></up-line>
  193. </view>
  194. <view class="pd-16 pt-8 pb-8 d-flex j-sb gap-20">
  195. <up-button :customStyle="customStyle1">
  196. <view class="d-flex a-c j-c">
  197. <image class="w-28 h-24" src="/static/images/plant/port/Task_Species_source_information.png" mode="widthFix" />
  198. <text class="f-s-26">种源信息</text>
  199. </view>
  200. </up-button>
  201. <up-button :customStyle="customStyle2">
  202. <view class="d-flex a-c j-c">
  203. <image class="w-28 h-24" src="/static/images/plant/port/Task_Breeding_management.png" mode="widthFix" />
  204. <text class="f-s-26"> 种植管理 </text>
  205. </view>
  206. </up-button>
  207. <up-button :customStyle="customStyle3">
  208. <view class="d-flex a-c j-c">
  209. <image class="w-28 h-24" src="/static/images/plant/port/Task_Harvest_management.png" mode="widthFix" />
  210. <text class="f-s-26">采收管理</text>
  211. </view>
  212. </up-button>
  213. </view>
  214. </view>
  215. </view>
  216. <!-- 种畜繁育 -->
  217. <view class="" v-if="data.taskType === '21'" @click="$emit('click')">
  218. <view class="b-radius bg-#fff pd-10 p-rtv">
  219. <image class="w-112 h-34" src="/static/images/plant/port/Task_Breeding_Livestock.png" mode="widthFix" style="position: absolute; top: 0; left: 0" />
  220. <view class="d-flex j-ed f-s-22 c-#666">{{ data?.plannedStartDate }}至{{ data?.plannedEndDate }}</view>
  221. <view class="d-flex a-ed pd-16 pt-8 pb-8">
  222. <view class="c-#333 f-s-34 f-w-5 mr-6">{{ data?.variety }}</view>
  223. <view class="c-#666 f-s-26">{{ data?.genusName }}</view>
  224. </view>
  225. <view class="d-flex a-c f-s-28 pd-16 pt-8 pb-8">
  226. <view class="c-#666 w-s-no">繁育批号:</view>
  227. <view class="c-#333 f-w-5">{{ data?.plantationCode }}</view>
  228. </view>
  229. <view class="d-flex a-c f-s-28 pd-16 pt-8 pb-8">
  230. <view class="c-#666 w-s-no">种源批号:</view>
  231. <view v-if="data?.seedCodeList.length !== 0">
  232. <view class="c-#333 f-w-5" v-for="item in data?.seedCodeList" :key="item">{{ item }}</view>
  233. </view>
  234. <view v-else>
  235. <view class="c-#666">暂无完善种源信息</view>
  236. </view>
  237. </view>
  238. <view class="d-flex a-c f-s-28 pd-16 pt-8 pb-8">
  239. <view class="c-#666 w-s-no">基地:</view>
  240. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd d-flex a-c">
  241. {{ data?.baseRef?.baseInfo?.address }}基地
  242. <text v-if="data?.landIds.length == 0">全部地块</text>
  243. <view v-else>
  244. <text v-for="(item, index) in data?.baseRef?.baseInfo?.landList" :key="index"><text v-if="index != 0">、</text> {{ item?.landName }}</text>
  245. </view>
  246. </view>
  247. <view class="flex1 d-flex j-ed"><up-icon name="arrow-right" size="34rpx"></up-icon></view>
  248. </view>
  249. <view class="d-flex f-s-28 pd-16 pt-8 pb-8">
  250. <view class="d-flex a-c w-50%">
  251. <view class="c-#666 w-s-no">养殖区域:</view>
  252. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd">{{ data?.breedScale }}{{ data?.breedScaleUnit }}</view>
  253. </view>
  254. <view class="d-flex a-c w-50%">
  255. <view class="c-#666 w-s-no">养殖量:</view>
  256. <view class="c-#333 f-w-5 tx-ov w-s-no ov-hd">{{ data?.plantingMgAmount }}{{ data?.plantingMgUnit }}</view>
  257. </view>
  258. </view>
  259. <view class="pd-16 pt-8 pb-8">
  260. <up-line color="#f7f7f7"></up-line>
  261. </view>
  262. <view class="pd-16 pt-8 pb-8 d-flex j-sb gap-20">
  263. <up-button :customStyle="customStyle1">
  264. <view class="d-flex a-c j-c">
  265. <image class="w-28 h-24" src="/static/images/plant/port/Task_Species_source_information.png" mode="widthFix" />
  266. <text class="f-s-26">种源信息</text>
  267. </view>
  268. </up-button>
  269. <up-button :customStyle="customStyle2">
  270. <view class="d-flex a-c j-c">
  271. <image class="w-28 h-24" src="/static/images/plant/port/Task_Breeding_management.png" mode="widthFix" />
  272. <text class="f-s-26">饲养管理</text>
  273. </view>
  274. </up-button>
  275. <up-button :customStyle="customStyle3">
  276. <view class="d-flex a-c j-c">
  277. <image class="w-28 h-24" src="/static/images/plant/port/Task_Harvest_management.png" mode="widthFix" />
  278. <text class="f-s-26">采收管理</text>
  279. </view>
  280. </up-button>
  281. </view>
  282. </view>
  283. </view>
  284. </template>
  285. <script setup lang="ts">
  286. const props = defineProps<{ data: any }>();
  287. //按钮样式
  288. const customStyle1 = reactive({
  289. color: '#37A954',
  290. boxShadow: 'inset 0 0 10px #D7F5DF',
  291. background: '#ECFFF1',
  292. border: '2rpx solid #9BD4A9',
  293. borderRadius: '10rpx',
  294. height: '76rpx',
  295. });
  296. const customStyle2 = reactive({
  297. color: '#18BECA',
  298. boxShadow: 'inset 0 0 10px #C7F5F8',
  299. background: '#E5FDFF',
  300. border: '2rpx solid #93E8EE',
  301. borderRadius: '10rpx',
  302. height: '76rpx',
  303. });
  304. const customStyle3 = reactive({
  305. color: '#FC8834',
  306. boxShadow: 'inset 0 0 10px #FFEED7',
  307. background: '#FFFAF3',
  308. border: '2rpx solid #FFD499',
  309. borderRadius: '10rpx',
  310. height: '76rpx',
  311. });
  312. </script>