移动端
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

410 satır
11 KiB

  1. <template>
  2. <div class="home_wrapper">
  3. <!-- 头部开始 -->
  4. <van-nav-bar
  5. title="订单详情"
  6. fixed
  7. placeholder
  8. left-arrow
  9. @click-left="onClickLeft"
  10. />
  11. <!-- 头部结束 -->
  12. <!-- 内容开始 -->
  13. <div class="main">
  14. <div class="main_content_right_list">
  15. <div class="main_content_right_list_header">
  16. <p class="on">商品信息</p>
  17. <p>{{supplyDemand.productType}}</p>
  18. <p>服务</p>
  19. </div>
  20. <div class="main_content_right_list_center">
  21. <template v-if="supplyDemand.supplyDemand!=null">
  22. <img v-if="supplyDemand.supplyDemand.supplyMasterMap" :src="supplyDemand.supplyDemand.supplyMasterMap" style="width: 25vw;height: 25vw;">
  23. <img v-else src="../../../../static/images/agriculturalTrusteeship/zwtp.png" style="width: 25vw;height: 25vw;">
  24. </template>
  25. <img v-else src="../../../../static/images/agriculturalTrusteeship/zwtp.png" style="width: 25vw;height: 25vw;">
  26. <div class="main_content_right_list_content">
  27. <p class="tt">{{supplyDemand.demandName}}</p>
  28. <div class="tab">
  29. <p>¥<span>{{supplyDemand.unitPrice}}</span>.00/{{supplyDemand.unit}}</p>
  30. </div>
  31. </div>
  32. </div>
  33. <van-cell title="卖方名称" :border="false" :value="supplyDemand.entityName" />
  34. <van-cell title="联系人" :border="false" :value="supplyDemand.linker" />
  35. <van-cell title="联系电话" :border="false" :value="supplyDemand.supplyDemandTal" />
  36. </div>
  37. <div class="main_content_right_list">
  38. <div class="main_content_right_list_header">
  39. <p class="on">买家信息</p>
  40. </div>
  41. <van-cell title="联系人" :border="false" :value="supplyDemand.linkera" />
  42. <van-cell title="联系电话" :border="false" :value="supplyDemand.phonea" />
  43. <van-cell title="服务地点" :border="false" :value="supplyDemand.serviceAddress" />
  44. </div>
  45. <div class="main_content_right_list">
  46. <div class="main_content_right_list_header">
  47. <p class="on">订单信息</p>
  48. </div>
  49. <van-cell title="服务合同" :border="false" :value="supplyDemand.contractionName" />
  50. <van-cell title="服务作物" :border="false" :value="supplyDemand.cropType" />
  51. <van-cell title="下单时间" :border="false" :value="supplyDemand.orderAt" />
  52. <van-cell title="服务时间" :border="false" :value="supplyDemand.serviceAt" />
  53. <van-cell title="服务数量" :border="false" :value="supplyDemand.serviceNum" />
  54. <van-cell title="成交金额" :border="false" :value="supplyDemand.realityServiceMoney" />
  55. <van-cell title="备注" :border="false" :value="supplyDemand.serviceRemark" />
  56. </div>
  57. </div>
  58. <!-- 内容结束 -->
  59. </div>
  60. </template>
  61. <script>
  62. import Cookies from "js-cookie";
  63. import {productTypes, supplyorderGet} from "@/api/agriculturalTrusteeship";
  64. export default {
  65. name: "agriculturalTrusteeshipIndex",
  66. data() {
  67. return {
  68. activeKey: 0,
  69. active: 0,
  70. loading: false,
  71. finished: false,
  72. show:true,
  73. activeNames:[],
  74. cropTypeOptions:[],
  75. orderStatusOptions:[],
  76. productList:[],
  77. supplyDemand:{}
  78. };
  79. },
  80. created() {
  81. let query = {
  82. parentId : null,
  83. tree:true
  84. }
  85. productTypes(query).then(response => {
  86. this.productList = response.data;
  87. });
  88. this.getDicts("crop_type").then(response => {
  89. this.cropTypeOptions = response.data;
  90. });
  91. this.getDicts("service_order_status").then(response => {
  92. this.orderStatusOptions = response.data;
  93. });
  94. this.getDetail();
  95. },
  96. methods: {
  97. getDetail(){
  98. supplyorderGet(this.$route.query.id).then(response => {
  99. response.data.cropType = this.selectDictLabel(this.cropTypeOptions, response.data.cropType);
  100. response.data.orderStatus = this.selectDictLabel(this.orderStatusOptions, response.data.orderStatus);
  101. response.data.productType = this.productList.filter(function (e) { return e.id == response.data.productType; })[0].dictName;
  102. response.data.updateTime = response.data.updateTime.substr(0,10);
  103. if (response.data.supplyDemand!=null){
  104. if (response.data.supplyDemand.supplyMasterMap){
  105. var attachement = response.data.supplyDemand.supplyMasterMap.split( "," );
  106. response.data.supplyDemand.supplyMasterMap = '/api' + attachement[0];
  107. }
  108. }
  109. this.supplyDemand = response.data;
  110. });
  111. },
  112. },
  113. }
  114. </script>
  115. <style scoped lang="scss">
  116. .home_wrapper{
  117. }
  118. /*头部*/
  119. .header{
  120. display: flex;
  121. align-items: center;
  122. justify-content: space-between;
  123. padding: 2vh 4% 0vh;
  124. }
  125. .search{
  126. display: flex;
  127. justify-content: space-between;
  128. align-items: center;
  129. border: 1px solid #6E93F3;
  130. padding: 1PX 1PX 1PX 12PX ;
  131. border-radius: 50PX;
  132. margin-right: 30PX;
  133. flex: 1;
  134. input{
  135. flex: 1;
  136. background: transparent;
  137. margin-left: 10PX;
  138. }
  139. }
  140. /*导航栏目*/
  141. .nav{
  142. width: 94%;
  143. margin: 0 auto;
  144. margin-top: 2vh;
  145. padding: 1.5vh 3%;
  146. background: #ffffff;
  147. border-radius: 10PX;
  148. box-shadow: 0px 3PX 6PX 0px rgba(0,0,0,0.16);
  149. .date{
  150. display: flex;
  151. justify-content: space-around;
  152. align-items: center;
  153. p{
  154. border-radius: 1rem;
  155. padding: 5PX 0PX 5PX 5%;
  156. width: 40%;
  157. text-align: center;
  158. color: #334281;
  159. box-shadow: 0px 3PX 6PX 0px rgba(0,0,0,0.16);
  160. background:#D6D9E6 url("../../../../static/images/agriculturalTrusteeship/socialization/socialization_icon_date.png") 20% center no-repeat;
  161. }
  162. }
  163. .billCount {
  164. display: flex;
  165. text-align: center;
  166. margin-top: 3vh;
  167. .billCount_left{
  168. width: 50%;
  169. color: #1B5DEA;
  170. p{
  171. &:nth-child(1){
  172. font-size: .45rem;
  173. }
  174. }
  175. }
  176. .billCount_right{
  177. width: 50%;
  178. color: #FF5E00;
  179. p{
  180. &:nth-child(1){
  181. font-size: .45rem;
  182. }
  183. }
  184. }
  185. }
  186. }
  187. /*内容*/
  188. .main{
  189. width: 94%;
  190. margin: 0 auto;
  191. .main_content_right_list{
  192. margin-top: 2vh;
  193. padding: 1.5vh 3%;
  194. background: #ffffff;
  195. border-radius: 10PX;
  196. /*box-shadow: 0px 3PX 6PX 0px rgba(0,0,0,0.16);*/
  197. /deep/ .van-cell{
  198. padding: 0;
  199. margin-top: 10PX;
  200. }
  201. .main_content_right_list_header{
  202. display: flex;
  203. margin-bottom: 1vh;
  204. align-items: center;
  205. p{
  206. padding: 3PX 10PX;
  207. border-radius: 8PX;
  208. &:nth-child(2){background: #2B7EEC;color: #ffffff;margin-left: auto;}
  209. &:nth-child(3){background: #E2E9FD;color: #497CE8;margin-left: 10PX;}
  210. }
  211. .on{
  212. color: #334281;
  213. border-radius: initial;
  214. padding:0 0 0 20PX;
  215. font-size: 0.35rem;
  216. background: url("../../../../static/images/agriculturalTrusteeship/socialization/bill_icon_01.png") no-repeat left center
  217. }
  218. .off{
  219. color: #E60505;
  220. border-radius: initial;
  221. margin-left: auto;
  222. padding:0 0 0 15PX;
  223. background: url("../../../../static/images/agriculturalTrusteeship/socialization/socialization_icon_off.png") no-repeat left center
  224. }
  225. }
  226. .main_content_right_list_center{
  227. display: flex;
  228. img{
  229. border-radius: 15PX;
  230. margin-right: 4%;
  231. }
  232. .main_content_right_list_content{
  233. display: flex;
  234. flex-direction:column;
  235. justify-content: space-between;
  236. .tt{
  237. color: #333333;
  238. font-size: .35rem;
  239. }
  240. .tab{
  241. display: flex;
  242. justify-content: space-between;
  243. p{
  244. &:nth-child(1){
  245. flex: 1;
  246. color: #FF5E00;
  247. span{
  248. font-size: .4rem;
  249. }
  250. }
  251. &:nth-child(2){
  252. span{
  253. display: inline-block;
  254. text-align: center;
  255. padding: 2PX 5PX;
  256. &:nth-child(1){
  257. color: #497CE8;
  258. background: #E2E9FD;
  259. border-top-left-radius: 10PX;
  260. }
  261. &:nth-child(2){
  262. color: #ffffff;
  263. background-image: linear-gradient(to right , #5D87FA , #5FD5F5);
  264. border-bottom-right-radius: 10PX;
  265. }
  266. }
  267. }
  268. }
  269. }
  270. .name{
  271. color: #7A7A7A;
  272. span{
  273. &:nth-child(2){
  274. margin-left: 5PX;
  275. }
  276. }
  277. }
  278. }
  279. }
  280. }
  281. }
  282. /*弹出层*/
  283. .popup_header{
  284. display: flex;
  285. align-items: center;
  286. color: #334281;
  287. font-size: .38rem;
  288. margin-bottom: 15PX;
  289. img{
  290. margin-right: 10PX;
  291. display: block;
  292. }
  293. p{
  294. line-height: 1;
  295. }
  296. }
  297. .popup_content{
  298. .selected{
  299. .on{
  300. font-size: .35rem;
  301. padding: 10PX 20PX;
  302. color: #334281;
  303. background: url("../../../../static/images/agriculturalTrusteeship/socialization/down.png")left center no-repeat;
  304. }
  305. .off{
  306. font-size: .35rem;
  307. padding: 10PX 20PX;
  308. color: #334281;
  309. background: url("../../../../static/images/agriculturalTrusteeship/socialization/right.png")left center no-repeat;
  310. }
  311. .options{
  312. display: flex;
  313. justify-content: space-between;
  314. flex-wrap: wrap;
  315. p{
  316. background: #F5F5F5;
  317. color: #8F8F8F;
  318. width: 30%;
  319. padding: 5PX 0;
  320. border-radius: 5PX;
  321. text-align: center;
  322. &.active{
  323. background: #E2E9FD;
  324. color: #1B5DEA;
  325. }
  326. }
  327. }
  328. }
  329. }
  330. .popup_date{
  331. display: flex;
  332. justify-content: space-around;
  333. align-items: center;
  334. p{
  335. border-radius: 1rem;
  336. padding: 5PX 0PX 5PX 5%;
  337. width: 45%;
  338. text-align: center;
  339. color: #1B5DEA;
  340. background:#E2E9FD url("../../../../static/images/agriculturalTrusteeship/socialization/socialization_icon_date.png") 15% center no-repeat;
  341. }
  342. }
  343. .popup_btn{
  344. position: fixed;
  345. bottom: 5vh;
  346. display: flex;
  347. align-items: center;
  348. justify-content: space-between;
  349. width: 94%;
  350. left: 3%;
  351. p{
  352. width: 30%;
  353. padding: 7PX 0;
  354. border-radius: 5rem;
  355. text-align: center;
  356. font-size: .35rem;
  357. box-shadow: 0px 3PX 6PX 0px rgba(0,0,0,0.16);
  358. &:nth-child(1){
  359. background: #1B5DEA;
  360. color: #ffffff;
  361. }
  362. &:nth-child(2){
  363. border: 1PX solid #1B5DEA;
  364. color: #1B5DEA;
  365. }
  366. &:nth-child(3){
  367. background-image: linear-gradient(to right , #6E93F3 , #54C6E4);
  368. color: #ffffff;
  369. }
  370. }
  371. }
  372. .main_btn{
  373. display: flex;
  374. justify-content: space-around;
  375. padding: 4vh 0;
  376. p{
  377. font-size: .4rem;
  378. width: 35%;
  379. text-align: center;
  380. padding: 10PX 0;
  381. border-radius: 5rem;
  382. box-shadow: 0px 3PX 6PX 0px rgba(0,0,0,0.16);
  383. &:nth-child(1){
  384. background: #334281;
  385. color: #ffffff;
  386. }
  387. &:nth-child(2){
  388. background: #D1D5E4;
  389. color: #334281;
  390. }
  391. }
  392. }
  393. </style>