移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

379 lines
9.2 KiB

  1. <template>
  2. <div class="app-container">
  3. <div class="header_main">
  4. 查肥料
  5. <div class="return_btn" @click="onClickLeft"></div>
  6. <div class="jg"></div>
  7. </div>
  8. <div class="main">
  9. <div class="main_box">
  10. <van-field v-model="queryParams.recordCode" :border="false" label="登记证号" placeholder="请输入登记证号" input-align="right" />
  11. <van-field v-model="queryParams.factory" :border="false" label="企业名称" placeholder="请输入企业名称" input-align="right" />
  12. <van-field v-model="queryParams.productName" :border="false" label="产品通用名称" placeholder="请输入产品通用名称" input-align="right" />
  13. <van-field v-model="queryParams.productGoodsName" :border="false" label="产品商品名称" placeholder="请输入产品商品名称" input-align="right" />
  14. </div>
  15. <p class="submitButton" @click="goSubmit">立即查询</p>
  16. <div class="scroll_box">
  17. <van-list
  18. v-model="loading"
  19. :finished="finished"
  20. finished-text="没有更多了"
  21. @load="getList"
  22. >
  23. <div class="list_box" v-for="(item,index) in list" :key="index">
  24. <van-cell center :to="{name:'lawEnforcementFertilizerDetail', query: {content:item}}">
  25. <template #title>
  26. <div class="tt">
  27. <span>{{item.productName}}</span>
  28. <span>{{item.agent}}</span>
  29. </div>
  30. <div class="first">
  31. <span>{{item.recordCode}}</span>
  32. <span>{{item.productGoodsName}}</span>
  33. </div>
  34. </template>
  35. <template #label>
  36. <div class="label">
  37. <p>{{item.factory}}</p>
  38. <p>{{item.effectiveDate}}</p>
  39. </div>
  40. </template>
  41. </van-cell>
  42. </div>
  43. </van-list>
  44. </div>
  45. </div>
  46. </div>
  47. </template>
  48. <script>
  49. import { listFertilizer } from "@/api/lawEnforcement/index";
  50. export default {
  51. name: "programmeDetail",
  52. data() {
  53. return {
  54. loading: false,
  55. finished: false,
  56. form:{},
  57. value:'',
  58. showCategory:false,
  59. showAgent:false,
  60. queryParams: {
  61. // 分页
  62. pageNum: 1,
  63. pageSize: 10,
  64. // 查询排序
  65. orderByColumn: "id",
  66. isAsc: "desc",
  67. recordCode: null, // 查询参数-登记证号
  68. factory: null, // 查询参数-企业名称
  69. productName: null, // 查询参数-通用名称
  70. productGoodsName: null, // 查询参数-商品名称
  71. },
  72. list:[],
  73. categoryOptions:[],
  74. agentOptions:[],
  75. category: null, // 查询参数-农药种类
  76. agent: null, // 查询参数-剂型
  77. };
  78. },
  79. created() {
  80. // this.getDictionaries()
  81. },
  82. methods: {
  83. getList(){
  84. var _this = this;
  85. listFertilizer(_this.queryParams).then(response => {
  86. response.rows.map(res=>{
  87. this.list.push(res);
  88. })
  89. console.log(this.list.length)
  90. if(this.list.length >= response.total){
  91. this.finished = true;
  92. return;
  93. }else{
  94. this.loading = false;
  95. this.queryParams.pageNum += 1 ;
  96. }
  97. });
  98. },
  99. goSubmit(){
  100. this.list = [];
  101. this.queryParams.pageNum = 1 ;
  102. this.finished = false;
  103. this.loading = false;
  104. }
  105. },
  106. }
  107. </script>
  108. <style scoped lang="scss">
  109. .jg{
  110. height: 180PX;
  111. }
  112. .app-container {
  113. }
  114. .top_box{
  115. line-height: 1;
  116. text-align: left;
  117. width: 85%;
  118. margin: 0 auto;
  119. padding-bottom: 10PX;
  120. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_14.png') no-repeat right bottom;
  121. .top_01{
  122. display: flex;
  123. align-items: center;
  124. font-size: 0.4rem;
  125. margin-top: 15PX;
  126. img{
  127. margin-right: 10PX;
  128. }
  129. }
  130. .tt{
  131. font-size: 0.7rem;
  132. margin-top: 15PX;
  133. }
  134. .top_02{
  135. display: flex;
  136. align-items: center;
  137. font-size: 0.3rem;
  138. margin-top: 15PX;
  139. i{
  140. display: inline-block;
  141. width: 15PX;
  142. height: 15PX;
  143. margin-right: 3PX;
  144. }
  145. p{
  146. display: flex;
  147. align-items: center;
  148. margin-right: 10PX;
  149. &:nth-child(1){
  150. i{
  151. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_11.png') no-repeat center;
  152. background-size: auto 15PX;
  153. }
  154. }
  155. &:nth-child(2){
  156. i{
  157. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_12.png') no-repeat center;
  158. background-size: auto 15PX;
  159. }
  160. }
  161. &:nth-child(3){
  162. i{
  163. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_13.png') no-repeat center;
  164. background-size: auto 15PX;
  165. }
  166. }
  167. }
  168. }
  169. }
  170. .main{
  171. position: relative;
  172. top: -150PX;
  173. }
  174. .center_box{
  175. text-align: center;
  176. padding: 30PX 0!important;
  177. p{
  178. margin-top: 15PX;
  179. &:nth-child(2){
  180. font-size: 0.4rem;
  181. color: #59C145;
  182. }
  183. &:nth-child(3){
  184. font-size: 0.4rem;
  185. color: #B4B0B0;
  186. display: inline-block;
  187. background: url('../../../../static/images/lawEnforcement/new/retrospect_icon_16.png') no-repeat left center;
  188. padding-left: 20PX;
  189. }
  190. }
  191. }
  192. /deep/ .van-cell{
  193. padding-bottom: 0;
  194. padding-top: 0;
  195. margin-bottom: 10PX;
  196. &:last-child{
  197. margin-bottom: 0;
  198. }
  199. }
  200. .header_main{
  201. /*height: 116px;*/
  202. background: url('../../../../static/images/lawEnforcement/new/header_bg.png') no-repeat;
  203. background-size: 100% 100%;
  204. /*position: fixed;*/
  205. top: 0;
  206. left: 0;
  207. width: 100%;
  208. font-size: 36px;
  209. line-height: 116px;
  210. text-align: center;
  211. color: #fff;
  212. z-index: 999;
  213. .return_btn{
  214. width: 24px;
  215. height: 43.2px;
  216. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  217. background-size: 20px 36px;
  218. position: absolute;
  219. left: 38px;
  220. top: 36px;
  221. }
  222. .add_btn{
  223. width: 56.4px;
  224. height: 40.8px;
  225. background: url('../../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  226. background-size: 47px 34px;
  227. position: absolute;
  228. right: 38px;
  229. top: 36px;
  230. }
  231. }
  232. /deep/ .van-radio--horizontal{
  233. margin-left: 0.32rem;
  234. margin-right: 0;
  235. }
  236. .peopleList{
  237. padding-right: 3%;
  238. .van-row{
  239. margin-bottom: 10PX;
  240. .van-col{
  241. text-align: center;
  242. font-size: 14PX;
  243. }
  244. &:first-child{
  245. .van-col{
  246. color: #1D6FE9;
  247. }
  248. }
  249. }
  250. }
  251. .main_title{
  252. font-size: 0.4rem;
  253. color: #1D6FE9;
  254. margin: 0.2rem 6%;
  255. margin-top: 0;
  256. position: relative;
  257. }
  258. .main_box{
  259. width: 90%;
  260. margin: 0 auto;
  261. border-radius: 10PX;
  262. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  263. overflow: hidden;
  264. background-color: #FFF;
  265. padding: 20PX 5PX;
  266. .van-icon{
  267. vertical-align: middle;
  268. }
  269. .custom-title{
  270. font-size: 17PX;
  271. color: #333333;
  272. vertical-align: middle;
  273. line-height: 1;
  274. position: relative;
  275. }
  276. .tap{
  277. color: #1D6FE9;
  278. }
  279. .bgBlue{
  280. display: block;
  281. position: absolute;
  282. width: 17PX;
  283. height: 17PX;
  284. border-radius: 50%;
  285. background-color: rgba(29,111,233,0.26);
  286. top: -2PX;
  287. right: -8PX;
  288. }
  289. }
  290. .submitButton{
  291. width: 70%;
  292. margin: 25PX auto;
  293. background-image: linear-gradient(to right, #2E79E9 , #77A6EF);
  294. text-align: center;
  295. color: #ffffff;
  296. height: 70px;
  297. line-height: 70px;
  298. border-radius: 8PX;
  299. }
  300. .addFamily{
  301. position: absolute;
  302. top: -2px;
  303. right: 0;
  304. border-radius: 50%;
  305. }
  306. /deep/.van-cell__title{
  307. .tt{
  308. display: flex;
  309. justify-content: space-between;
  310. span:first-child{
  311. background: url('../../../../static/images/lawEnforcement/icon/pesticides_icon_03.png') no-repeat left center;
  312. padding-left: 20PX;
  313. }
  314. span:last-child{
  315. color: #1D6FE9;
  316. }
  317. }
  318. .first{
  319. display: flex;
  320. justify-content: space-between;
  321. align-items: center;
  322. margin-top: 5PX;
  323. span{
  324. color: #1D6FE9;
  325. font-size: 0.35rem;
  326. &:first-child{
  327. background: rgba(29,111,233,0.2);
  328. padding: 3PX 5PX;
  329. line-height: 1;
  330. border-radius: 3PX;
  331. }
  332. &:last-child{
  333. color: #666666;
  334. }
  335. }
  336. }
  337. .dress{
  338. font-size: .35rem;
  339. color: #1CB8B1;
  340. margin-top: 5PX;
  341. }
  342. span{
  343. font-family: Arial;
  344. font-size: 0.4rem;
  345. font-weight: normal;
  346. display: -webkit-box;
  347. -webkit-box-orient: vertical;
  348. -webkit-line-clamp: 1;
  349. word-break: break-all;
  350. overflow: hidden;
  351. }
  352. }
  353. .list_box{
  354. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  355. width: 94%;
  356. margin: 0 auto 10PX;
  357. padding: 12PX 0;
  358. background: #ffffff;
  359. border-radius: 8PX;
  360. }
  361. .label {
  362. display: flex;
  363. justify-content: space-between;
  364. p{
  365. display: inline-block;
  366. font-size: 0.35rem;
  367. }
  368. }
  369. </style>