index.vue 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <template>
  2. <view class="home">
  3. <cu-custom class="home-custom" bgColor=".bg-sancolor" bgImage="../../static/icons/bg.png" :isBack="true">
  4. <block slot="content">皖监测</block>
  5. </cu-custom>
  6. <view>
  7. <view class="cu-list menu content-box">
  8. <view class="cu-bar bg-white margin-top">
  9. <view class="action">
  10. <text class="cuIcon-title text-green"></text>
  11. <text>优质农产品监测与评价</text>
  12. <span class="filled-instro" data-target="Modal" @tap="filledButton">(填写说明)</span>
  13. </view>
  14. </view>
  15. <form>
  16. <view class="cu-form-group ">
  17. <view class="title">1.基地名称</view>
  18. <input placeholder="请输入基地名称" name="input" ></input>
  19. </view>
  20. <!-- <view class="cu-form-group ">
  21. <view class="title">基地类型</view>
  22. <input placeholder="请输入基地类型" name="input"></input>
  23. <button class='cu-btn bg-green shadow'>+</button>
  24. </view>
  25. -->
  26. <view class="cu-form-group " v-for="(item, index) in jdlx">
  27. <view class="title">2.基地类型</view>
  28. <picker @change="PickerChange" :value="item.index" :range="picker" v-model="item.name">
  29. <view class="picker">
  30. {{index>-1?picker[item.index]:'选择基地类型'}}
  31. </view>
  32. </picker>
  33. </view>
  34. <!-- <button class='cu-btn bg-green' @tap="addJdlx" style="margin-left: 5px;">+</button> -->
  35. <view class="padding flex flex-direction">
  36. <button class="cu-btn bg-grey lg" @tap="addJdlx">添加多个基地类型</button>
  37. </view>
  38. <view v-for="(item, index) in product">
  39. <view class="cu-form-group margin-top">
  40. <view class="title">3.主要产品</view>
  41. <input placeholder="请输入主要产品" name="input" ></input>
  42. </view>
  43. <view class="cu-form-group ">
  44. <view class="title">4.基地规模</view>
  45. <input placeholder="请输入基地规模" name="input"></input>
  46. </view>
  47. <view class="cu-form-group ">
  48. <view class="title">5.产品产量</view>
  49. <input placeholder="请输入产品产量" name="input"></input>
  50. <view>公斤</view>
  51. </view>
  52. <view class="cu-form-group ">
  53. <view class="title">6.产品产值</view>
  54. <input placeholder="请输入产品产值" name="input"></input>
  55. <view>元</view>
  56. </view>
  57. <view class="cu-form-group ">
  58. <view class="title">7.产品分类</view>
  59. <picker @change="PickerCategoryChange" :range="category">
  60. <view class="picker">
  61. {{indexCategory>-1?category[item.index]:'选择产品分类'}}
  62. </view>
  63. </picker>
  64. </view>
  65. <view class="cu-form-group ">
  66. <view class="title">单位</view>
  67. <input placeholder="请输入产品单位" name="input"></input>
  68. </view>
  69. </view>
  70. <view class="padding flex flex-direction">
  71. <button class="cu-btn bg-grey lg" @tap="addProduct">添加多个产品</button>
  72. </view>
  73. <view class="cu-form-group margin-top">
  74. <view class="title">8.社会信用代码</view>
  75. <input placeholder="请输入产品产量" name="input"></input>
  76. </view>
  77. <view class="cu-form-group ">
  78. <view class="title">9.主要联系人</view>
  79. <input placeholder="请输入姓名" name="input"></input>
  80. </view>
  81. <view class="cu-form-group ">
  82. <view class="title">10.联系电话</view>
  83. <input placeholder="请输入11位手机号" name="input"></input>
  84. </view>
  85. <view class="cu-form-group ">
  86. <view class="title">11.行政区划</view>
  87. <input placeholder="请输入行政区划" name="input"></input>
  88. </view>
  89. <view class="cu-form-group ">
  90. <view class="title">12.基地地址</view>
  91. <input placeholder="请输入基地详细地址" name="input"></input>
  92. </view>
  93. <view class="cu-form-group ">
  94. <view class="title">13.证书编号</view>
  95. <input placeholder="请输入证书编号" name="input"></input>
  96. </view>
  97. <view class="cu-form-group ">
  98. <view class="title">14.证书有效期</view>
  99. <input placeholder="请输入证书有效期" name="input"></input>
  100. </view>
  101. </form>
  102. <view class="padding flex flex-direction">
  103. <button class="cu-btn bg-green lg">保存</button>
  104. </view>
  105. </view>
  106. <view class="cu-modal" :class="modalName=='Modal'?'show':''">
  107. <view class="cu-dialog">
  108. <view class="cu-bar bg-white justify-end">
  109. <view class="content">填写说明</view>
  110. <view class="action" @tap="hideModal">
  111. <text class="cuIcon-close text-red"></text>
  112. </view>
  113. </view>
  114. <view class="padding-xl" style="text-align: left;">
  115. <view><span class="filled-name">1.基地名称:</span>录入基地的准确全称。有固定名称的,填写须与基地取得相关认证登记证书上的名称一致;无固定名称的,按“基地主体+所在乡镇+基地名称”格式填写。</view>
  116. <view><span class="filled-name">2.基地类型:</span>分为绿色食品生产基地、有机农产品生产基地、地理标志农产品核心生产基地、良好农业规范认证生产基地、全程质量控制生产基地、名特优新农产品生产基地、绿色食品原料标准化生产基地、省级绿色优质农产品生产基地8个类型。如有多个类型,需逐个录入。</view>
  117. <view><span class="filled-name">3.主要产品:</span>录入该基地生产的主要农产品名称。如有多种产品,需逐个录入。</view>
  118. <view><span class="filled-name">4.基地规模:</span>依据产品名称,分别录入应对产品规模。</view>
  119. <view><span class="filled-name">5.产品产量:</span>上一年度产品产量,公斤。</view>
  120. <view><span class="filled-name">6.产品产值:</span>上一年度产品产值,元。</view>
  121. <view><span class="filled-name">7.产品分类及单位:</span>①种植类,填写该基地实际种植面积,单位为亩;②畜禽类,填写该基地对应畜禽当前的存栏量,其中猪、牛、羊单位为头,鸡单位为只;③水产类,填写该基地水产品养殖面积,单位为亩。④其他类,指未列入选项的产品品种,单位由县级根据实际品种确定。</view>
  122. <view><span class="filled-name">8.社会信用代码/身份证:</span>优先录入主体统一社会信用代码,无统一社会信用代码的,可以录入主体身份号码。如农户或者家庭农场主体可填写身份证号码。</view>
  123. <view><span class="filled-name">9.主要联系人:</span>基地联系人姓名。。</view>
  124. <view><span class="filled-name">10.联系电话:</span>录入11位电话号码。</view>
  125. <view><span class="filled-name">11.行政区划:</span>录入对应的行政区划全称,可查看行政区域字典表。如为直管市、直管县,则两级录入同一个名称。</view>
  126. <view><span class="filled-name">12.基地地址:</span>录入基地详细地址。如:红岩村濮岩路219号。</view>
  127. <view><span class="filled-name">13.证书编号:</span>录入对应产品的证书编号。</view>
  128. <view><span class="filled-name">14.证书有效期:</span>为证书有效期开始日期、截止日期,按照对应证书有效期限填写。</view>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </template>
  135. <script>
  136. // import {_dataFilleds} from'./data-filled-model.js'
  137. export default {
  138. data() {
  139. return {
  140. sampleDetailInfo: null,
  141. input_diabled: false,
  142. modalName: null,
  143. indexCategory:0,
  144. picker: ['绿色食品生产基地','有机农产品生产基地','地理标志农产品核心生产基地','良好农业规范认证生产基地','全程质量控制生产基地','名特优新农产品生产基地','绿色食品原料标准化生产基地','省级绿色优质农产品生产基地'],
  145. category:['种植类','畜禽类','水产类','其他类'],
  146. jdlx:[
  147. {
  148. name:'',
  149. index: 0
  150. }
  151. ],
  152. product:[{
  153. zycp: '',
  154. jdgm: '',
  155. cpcl: '',
  156. cpcz: '',
  157. cpfl: '',
  158. dw: '',
  159. index:0
  160. }]
  161. }
  162. },
  163. created() {
  164. },
  165. onLoad(options) {
  166. },
  167. mounted() {
  168. },
  169. methods: {
  170. filledButton(e){
  171. this.modalName = e.currentTarget.dataset.target
  172. },
  173. hideModal(e) {
  174. this.modalName = null
  175. },
  176. PickerChange(e) {
  177. this.index = e.detail.value
  178. },
  179. PickerCategoryChange(e){
  180. this.indexCategory = e.detail.value
  181. },
  182. addJdlx(){
  183. this.jdlx.push({
  184. name:''
  185. })
  186. },
  187. addProduct(){
  188. this.product.push({
  189. zycp: '',
  190. jdgm: '',
  191. cpcl: '',
  192. cpcz: '',
  193. cpfl: '',
  194. dw: ''
  195. })
  196. }
  197. // rediectHome(){
  198. // uni.redirectTo({
  199. // url:'/pages/index/index'
  200. // })
  201. // },
  202. // toSampleInfoList(id){
  203. // uni.navigateTo({
  204. // url:'/pages/sample-info-list/index?id='+id
  205. // })
  206. // },
  207. // getSampleInfoDetail(id){
  208. // _dataFilleds.getAhSampleSheetDetail(id,res=>{
  209. // console.log(res)
  210. // this.sampleDetailInfo = res.data.data
  211. // })
  212. // },
  213. // saveSampleInfoList(){
  214. // console.log(11)
  215. // }
  216. }
  217. }
  218. </script>
  219. <style scoped>
  220. /* .content {
  221. padding: 10px;
  222. }
  223. .content-box {
  224. margin: 10px;
  225. border-radius: 5px;
  226. } */
  227. .filled-instro{
  228. color: cadetblue;
  229. text-decoration:underline;
  230. }
  231. .filled-name{
  232. font-weight: bold;
  233. }
  234. </style>