移动端
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.
 
 

5271 satır
291 KiB

  1. <template>
  2. <div class="app-container">
  3. <div id="info" style="display: none"></div>
  4. <!-- <van-nav-bar-->
  5. <!-- :title="(proposerStatus == 3 ? '添加' : '') + '用地建房申请'"-->
  6. <!-- left-arrow-->
  7. <!-- fixed-->
  8. <!-- placeholder-->
  9. <!-- @click-left="goBack()"-->
  10. <!-- z-index="998"-->
  11. <!-- >-->
  12. <!-- <template #right>-->
  13. <!-- <van-icon name="../../../static/images/icon/icon_flow.png" size="20" @click="goFlow"/>-->
  14. <!-- </template>-->
  15. <!-- </van-nav-bar>-->
  16. <div class="header_main">
  17. {{(proposerStatus == 3 ? '添加' : '') + '用地建房申请'}}
  18. <div class="return_btn" @click="onClickLeft"></div>
  19. <div class="add_btn" @click="goFlow"></div>
  20. </div>
  21. <van-steps :active="active" active-color="#38f" @click-step="onStepClicked">
  22. <van-step>申请</van-step>
  23. <van-step>开工</van-step>
  24. <van-step>验收</van-step>
  25. </van-steps>
  26. <div class="main" style="padding-bottom: 1rem;">
  27. <van-form ref="form">
  28. <template>
  29. <van-dialog v-model:show="mapShow" @cancel="mapZbQx" @confirm="mapZbQd()" show-cancel-button>
  30. <div style="width: 100%;height:45vh;position:relative;">
  31. <div style="width: 100%;height: 100%">
  32. <!--<iframe style="width: 100%;height: 50%" src="https://www.sea-meta.com/location.html"></iframe>-->
  33. <div id='uuidMap' style="width: 100%;height: 100%"></div>
  34. </div>
  35. </div>
  36. </van-dialog>
  37. </template>
  38. <template v-if="selectedTabName == 0 && formVisible.baseApplyFormVisible"> <!-- 申请 -->
  39. <div :class="active == 0 ? '' : 'noModify'">
  40. <p class="topTit">农村宅基地和建房(规划许可)申请表</p>
  41. <template v-if="formVisible.baseApplyForm.baseFormVisible"> <!-- 申请 基本信息 -->
  42. <div>
  43. <p class="main_title">申请户主信息</p>
  44. <div class="main_box">
  45. <van-field readonly v-model="applicationDetail.sqhhzxm" label="姓名" placeholder="姓名" input-align="right" @input="remoteTransfereeMethod" required :rules="[{ required: true }]"/>
  46. <van-popup v-model="showNhxx" position="bottom">
  47. <van-picker
  48. show-toolbar
  49. :columns="nhxxList"
  50. @confirm="getApplyerDetail"
  51. value-key="hzxm"
  52. @cancel="showNhxx = false"
  53. />
  54. </van-popup>
  55. <field-select
  56. v-model="applicationDetail.sqhhzxb"
  57. label="性别"
  58. value-key="dictLabel"
  59. data-key="dictValue"
  60. placeholder="选择性别"
  61. :rules="[{ required: true }]"
  62. required
  63. :readonly="true"
  64. remote-url="/system/dict/data/type/sys_user_sex"
  65. :on-remote-response="'data'"
  66. />
  67. <van-field required readonly v-model="applicationDetail.sqhhznl" label="年龄" placeholder="年龄" input-align="right" type="digit" :rules="[{ required: true }]"/>
  68. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.sqhhzlxdh" label="联系电话" placeholder="联系电话" input-align="right" type="digit" :rules="[{pattern: /(^\d{7}(\d{4})?$)/}]"/>
  69. <van-field required readonly v-model="applicationDetail.sqhhzsfzh" label="身份证号" placeholder="身份证号" input-align="right" :rules="[{pattern: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/}]" @input="updateUserInfo"/>
  70. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.sqhhzhkszd" label="户口所在地" placeholder="户口所在地" input-align="right" :rules="[{ required: true }]"/>
  71. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.sqhjtzz" label="家庭住址" placeholder="家庭住址" input-align="right" :rules="[{ required: true }]"/>
  72. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposer.familyAddress" label="家庭住址" placeholder="家庭住址" input-align="right" :rules="[{ required: true }]"/>-->
  73. <!-- <van-field required readonly v-model="applicationDetail.tHouseApplyProposer.members" label="家庭人口数" placeholder="家庭人口数" type="digit" input-align="right"/>-->
  74. <!-- <field-radio-->
  75. <!-- v-model="applicationDetail.tHouseApplyProposer.existHomestead"-->
  76. <!-- label="是否已有宅基地"-->
  77. <!-- value-key="dictLabel"-->
  78. <!-- data-key="dictValue"-->
  79. <!-- :rules="[{ required: true }]"-->
  80. <!-- required-->
  81. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  82. <!-- :columns="yesNoOptions"-->
  83. <!-- @change="existHomesteadChange"-->
  84. <!-- />-->
  85. </div>
  86. </div>
  87. <div v-if="applicationDetail.sqrjtcyList">
  88. <p class="main_title">家庭成员信息</p>
  89. <!-- <van-collapse v-model="activeNames" v-if="!formEnabled.baseApplyForm.baseFormEnabled">-->
  90. <!-- <van-collapse-item class="collapse" v-for="(item , index) in applicationDetail.sqrjtcyList" :key="index" :name="index+1">-->
  91. <!-- <template #title>-->
  92. <!-- <van-row>-->
  93. <!-- <van-col span="8">{{item.xm}}</van-col>-->
  94. <!-- <van-col span="8">{{item.nl}}</van-col>-->
  95. <!-- <van-col span="8">{{item.yhzgx}}</van-col>-->
  96. <!-- <van-col span="8">{{item.familyStatusName}}</van-col>-->
  97. <!-- </van-row>-->
  98. <!-- </template>-->
  99. <!-- <van-field readonly v-model="item.xm" label="姓名" placeholder="姓名" input-align="right"/>-->
  100. <!-- <van-field readonly v-model="item.nl" label="年龄" placeholder="年龄" input-align="right"/>-->
  101. <!-- <field-select-->
  102. <!-- v-model="item.yhzgx"-->
  103. <!-- label="与户主关系"-->
  104. <!-- value-key="dictLabel"-->
  105. <!-- data-key="dictValue"-->
  106. <!-- placeholder="选择与户主关系"-->
  107. <!-- :rules="[{ required: true }]"-->
  108. <!-- required-->
  109. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  110. <!-- remote-url="/system/dict/data/type/family_status"-->
  111. <!-- :on-remote-response="'data'"-->
  112. <!-- />-->
  113. <!-- <van-field readonly v-model="item.sfzh" label="身份证号" placeholder="身份证号" input-align="right"/>-->
  114. <!-- <van-field readonly v-model="item.hkszd" label="户口所在地" placeholder="户口所在地" input-align="right"/>-->
  115. <!-- </van-collapse-item>-->
  116. <!-- </van-collapse>-->
  117. <div >
  118. <van-tabs v-if="applicationDetail.sqrjtcyList && applicationDetail.sqrjtcyList.length > 0" v-model="familyMembersActive" ref="memberTabs">
  119. <van-tab :title="(index + 1) + '. ' + item.xm" v-for="(item , index) in applicationDetail.sqrjtcyList" :key="index" swipeable>
  120. <div class="familyList">
  121. <div class="main_box" style="margin-bottom: 20px">
  122. <van-button icon="minus" size="mini" type="danger" class="deleteFamily" native-type="button" v-if="index!=0" @click="deleteFamily(index)" />
  123. <van-field required v-model="item.xm" label="姓名" placeholder="姓名" input-align="right" :rules="[{ required: true }]"/>
  124. <van-field required v-model="item.nl" label="年龄" placeholder="年龄" input-align="right" :rules="[{ required: true }]"/>
  125. <field-select
  126. v-model="item.yhzgx"
  127. label="与户主关系"
  128. value-key="dictLabel"
  129. data-key="dictValue"
  130. placeholder="选择与户主关系"
  131. :rules="[{ required: true }]"
  132. required
  133. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  134. remote-url="/system/dict/data/type/family_status"
  135. :on-remote-response="'data'"
  136. />
  137. <van-field required v-model="item.sfzh" label="身份证号" placeholder="身份证号" input-align="right" :rules="[{pattern: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/}]" @input="updateMemberInfo(index)"/>
  138. <van-field required v-model="applicationDetail.sqhhzhkszd" label="户口所在地" placeholder="户口所在地" input-align="right" :rules="[{ required: true }]"/>
  139. </div>
  140. </div>
  141. </van-tab>
  142. </van-tabs>
  143. </div>
  144. </div>
  145. <div v-if="applicationDetail.sfyyzjd === 'Y'">
  146. <p class="main_title">现宅基地及农房状况</p>
  147. <div class="main_box">
  148. <van-field
  149. readonly
  150. clickable
  151. name="picker"
  152. v-model="showZjddm"
  153. label="宅基地代码"
  154. @click="showZjdzk = true"
  155. input-align="right"
  156. right-icon="arrow-down"
  157. />
  158. <van-popup v-model="showZjdzk" position="bottom">
  159. <van-picker
  160. show-toolbar
  161. :columns="zjddmColumns"
  162. value-key="value"
  163. @confirm="onConfirmZjdxx"
  164. @cancel="showZjdzk = false"
  165. />
  166. </van-popup>
  167. </div>
  168. <div class="main_box">
  169. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.xzjdmj" label="宅基地面积" placeholder="宅基地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>
  170. <van-field :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.xjzmj" label="建筑面积" placeholder="建筑面积㎡" input-align="right" type="number" :rules="[{ required: true }]" required ><template #right-icon>㎡</template></van-field>
  171. <!-- <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyCurrentSituation.buildingPerArea" label="人均建筑面积" placeholder="人均建筑面积" input-align="right" label-width="auto" type="number"><template #right-icon>㎡</template></van-field>-->
  172. <van-field :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.qszsh" label="权属证书号" placeholder="权属证书号" input-align="right"/>
  173. <field-select
  174. v-model="applicationDetail.xzjdczqk"
  175. label="处置情况"
  176. value-key="dictLabel"
  177. data-key="dictValue"
  178. placeholder="选择宅基地处置情况"
  179. :rules="[{ required: true }]"
  180. required
  181. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  182. remote-url="/system/dict/data/type/land_isposal"
  183. :on-remote-response="'data'"
  184. />
  185. <template v-if="applicationDetail.sfyyzjd ==='Y'">
  186. <van-field v-if="applicationDetail.xzjdczqk == '1'" :rules="[{ required: true }]" :required="applicationDetail.sfyyzjd ==='Y' && applicationDetail.xzjdczqk == '1'" :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.xzjdblmj" label="保留面积" placeholder="保留面积" input-align="right" type="number"/>
  187. <van-field v-else-if="applicationDetail.xzjdczqk == '3'" :rules="[{ required: true }]" :required="applicationDetail.sfyyzjd ==='Y' && applicationDetail.xzjdczqk == '3'" :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.xzjdzqtqk" label="处置情况" placeholder="处置情况" input-align="right"/>
  188. </template>
  189. <van-icon v-if="!zjdzdxxDetailedShow" class="zkshStyle" name="arrow-up" @click.native="zkshClick"/>
  190. <div v-if="zjdzdxxDetailedShow">
  191. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszd" label="东至" input-align="right"/>
  192. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszx" label="西至" input-align="right"/>
  193. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszn" label="南至" input-align="right"/>
  194. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszb" label="北至" input-align="right"/>
  195. <van-icon class="zkshStyle" name="arrow-down" @click.native="zkshClick"/>
  196. </div>
  197. </div>
  198. </div>
  199. <div v-if="applicationDetail">
  200. <p class="main_title">拟申请宅基地及建房情况</p>
  201. <div class="main_box">
  202. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjdmj" label="宅基地面积" placeholder="宅基地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>
  203. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqfjzdmj" label="房基占地面积" placeholder="房基占地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>
  204. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjddz" label="地址" placeholder="地址" input-align="right"/>
  205. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjdszd" label="东至" placeholder="东至" input-align="right"/>
  206. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjdszx" label="西至" placeholder="西至" input-align="right"/>
  207. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjdszn" label="南至" placeholder="南至" input-align="right"/>
  208. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjdszb" label="北至" placeholder="北至" input-align="right"/>
  209. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.zfjzmj" label="住房建筑面积" placeholder="住房建筑面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>
  210. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.jzcs" label="建筑层数" placeholder="建筑层数" input-align="right" type="digit"><template #right-icon>层</template></van-field>
  211. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.jzgd" label="建筑高度" placeholder="建筑高度" input-align="right" type="number"><template #right-icon>m</template></van-field>
  212. <field-radio
  213. v-model="applicationDetail.sfzqxlqlryj"
  214. label="是否征求相邻权利人意见"
  215. value-key="dictLabel"
  216. data-key="dictValue"
  217. :rules="[{ required: true }]"
  218. required
  219. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  220. :columns="[{dictLabel: '是', dictValue: '1'}, {dictLabel: '否', dictValue: '2'}]"
  221. @change="existHomesteadChange"
  222. />
  223. <!-- <field-select-->
  224. <!-- v-model="applicationDetail.tHouseApplyProposedSituation.housingStructure"-->
  225. <!-- label="房屋构造"-->
  226. <!-- value-key="dictLabel"-->
  227. <!-- data-key="dictValue"-->
  228. <!-- placeholder="选择房屋构造"-->
  229. <!-- :rules="[{ required: true }]"-->
  230. <!-- required-->
  231. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  232. <!-- remote-url="/system/dict/data/type/housing_structure"-->
  233. <!-- :on-remote-response="'data'"-->
  234. <!-- />-->
  235. <field-select
  236. v-model="applicationDetail.jflx"
  237. label="建房类型"
  238. value-key="dictLabel"
  239. data-key="dictValue"
  240. placeholder="选择建房类型"
  241. :rules="[{ required: true }]"
  242. required
  243. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  244. remote-url="/system/dict/data/type/building_type"
  245. :on-remote-response="'data'"
  246. @confirm="onJflxChanged"
  247. />
  248. <!-- <field-radio-->
  249. <!-- v-model="applicationDetail.tHouseApplyProposedSituation.designPaper"-->
  250. <!-- label="设计图纸"-->
  251. <!-- value-key="dictLabel"-->
  252. <!-- data-key="dictValue"-->
  253. <!-- :rules="[{ required: true }]"-->
  254. <!-- required-->
  255. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  256. <!-- remote-url="/system/dict/data/type/design_paper"-->
  257. <!-- :on-remote-response="'data'"-->
  258. <!-- />-->
  259. <!-- <field-select-->
  260. <!-- v-if="applicationDetail.tHouseApplyProposedSituation.designPaper == '2'"-->
  261. <!-- v-model="applicationDetail.tHouseApplyProposedSituation.houseTypeId"-->
  262. <!-- label="户型图"-->
  263. <!-- value-key="name"-->
  264. <!-- data-key="id"-->
  265. <!-- placeholder="选择户型图"-->
  266. <!-- :rules="[{ required: true }]"-->
  267. <!-- required-->
  268. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  269. <!-- :remote-url="getHouseList"-->
  270. <!-- :on-remote-response="'rows'"-->
  271. <!-- />-->
  272. <field-select
  273. v-model="applicationDetail.nsqzjddldm"
  274. label="土地类型"
  275. value-key="dictLabel"
  276. data-key="dictValue"
  277. placeholder="选择土地类型"
  278. :rules="[{ required: true }]"
  279. required
  280. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  281. remote-url="/system/dict/data/type/geographic_type"
  282. :on-remote-response="'data'"
  283. />
  284. <field-select
  285. v-model="applicationDetail.sjtz"
  286. label="设计图纸"
  287. value-key="dictLabel"
  288. data-key="dictValue"
  289. placeholder="选择设计图纸"
  290. :rules="[{ required: true }]"
  291. required
  292. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  293. remote-url="/system/dict/data/type/design_paper"
  294. :on-remote-response="'data'"
  295. />
  296. <template v-if="applicationDetail.sjtz ==='2'">
  297. <van-field
  298. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  299. clickable
  300. required
  301. :rules="[{ required: applicationDetail.sjtz == '2' , message:'请选择选通用图' }]"
  302. label="选通用图"
  303. placeholder="选通用图"
  304. v-model="tytzName"
  305. @click="showTyt = true"
  306. input-align="right"
  307. right-icon="arrow-down"
  308. label-width="auto"
  309. />
  310. <van-popup v-model="showTyt" position="bottom">
  311. <van-picker
  312. show-toolbar
  313. :columns="tytzList"
  314. value-key="name"
  315. @confirm="onConfirmTytz"
  316. @cancel="showTyt = false"
  317. />
  318. </van-popup>
  319. </template>
  320. <!-- <template>-->
  321. <!-- <van-field v-if="applicationDetail.tHouseApplyProposedSituation.geographicType == '10'" :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposedSituation.constructionLandArea" label="建设用地面积" placeholder="建设用地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>-->
  322. <!-- <van-field v-else-if="applicationDetail.tHouseApplyProposedSituation.geographicType == '20'" :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposedSituation.unusedLandArea" label="未利用地面积" placeholder="未利用地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>-->
  323. <!-- <van-field v-else-if="applicationDetail.tHouseApplyProposedSituation.geographicType && applicationDetail.tHouseApplyProposedSituation.geographicType != '10' && applicationDetail.tHouseApplyProposedSituation.geographicType != '20'" :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposedSituation.agriculturalLandArea" label="农用地面积" placeholder="农用地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>-->
  324. <!-- </template>-->
  325. </div>
  326. <!-- <div class="mapBox">-->
  327. </div>
  328. <div v-if="applicationDetail">
  329. <p class="main_title">申请理由</p>
  330. <div class="main_box">
  331. <van-field
  332. rows="3"
  333. autosize
  334. type="textarea"
  335. placeholder="申请理由"
  336. input-align="left"
  337. v-model="applicationDetail.sqly"
  338. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  339. :rules="[{ required: true }]" required
  340. />
  341. <van-row>
  342. <van-col span="12"><van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.sqhhzxm" label="申请人" placeholder="申请人" input-align="left" label-width="auto"/></van-col>
  343. <van-col span="12">
  344. <field-date-picker
  345. v-model="applicationDetail.applyTime"
  346. label=""
  347. placeholder="选择日期"
  348. :rules="[{ required: true }]"
  349. formatter="yyyy-MM-dd"
  350. required
  351. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  352. />
  353. </van-col>
  354. </van-row>
  355. </div>
  356. </div>
  357. </template>
  358. <!-- 申请::村级审核 -->
  359. <template v-if="formVisible.baseApplyForm.villageFormVisible">
  360. <div class="main_box examine_box">
  361. <van-row type="flex" justify="space-between" align="center">
  362. <van-col span="5">村集体<br/>经济组<br/>织或村<br/>民委员<br/>会意见
  363. </van-col>
  364. <van-col span="19">
  365. <van-field required :readonly="!formEnabled.baseApplyForm.villageFormEnabled" v-model="applicationDetail.cjxzscyj" rows="2" autosize type="textarea" placeholder="审批意见" :rules="[{ required: true }]"/>
  366. <van-cell title="负责人:" :rules="[{ required: true }]">
  367. <van-image
  368. width="100"
  369. height="50"
  370. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  371. v-if="applicationDetail.cjxzscr !='' && applicationDetail.cjxzscr !=null
  372. && applicationDetail.cjxzscr.endsWith('png')"
  373. :src="$store.getters.baseRoutingUrl+applicationDetail.cjxzscr"
  374. ></van-image>
  375. <div v-if="applicationDetail.cjxzscr !='' && applicationDetail.cjxzscr !=null && !applicationDetail.cjxzscr.endsWith('png')">
  376. {{applicationDetail.cjxzscr}}
  377. </div>
  378. </van-cell>
  379. <!-- <van-cell title="现场照片:">-->
  380. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveVillage" :uploadDisabled="formEnabled.baseApplyForm.villageFormEnabled" :jsonData="uploadImgVillage.fileList" :proposer-id="uploadImgVillage.proposerId" tableName="t_homeapply_ydjfsp"-->
  381. <!-- @uploadFileChanged="(x) => {this.uploadImgVillage.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgVillage.removeFileList = x;}"-->
  382. <!-- />-->
  383. <!-- </van-cell>-->
  384. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.villageFormEnabled">-->
  385. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveVillageOptions.theGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveVillage')">定位当前位置</van-button>-->
  386. <!-- </van-cell>-->
  387. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.villageFormEnabled">-->
  388. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveVillageOptions.theGeom !='' || applicationDetail.tHouseApproveVillageOptions.theGeom !=null" v-model="applicationDetail.tHouseApproveVillageOptions.theGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveVillage')">查看现场位置</van-button>-->
  389. <!-- </van-cell>-->
  390. <field-date-picker
  391. v-model="applicationDetail.cjxzscsj"
  392. label="审批日期"
  393. placeholder="选择日期"
  394. :rules="[{ required: true }]"
  395. formatter="yyyy-MM-dd"
  396. required
  397. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  398. />
  399. </van-col>
  400. </van-row>
  401. </div>
  402. </template>
  403. <template v-if="formVisible.baseApplyForm.nature_resourceFormVisible">
  404. <div class="main_box examine_box">
  405. <van-row type="flex" justify="space-between" align="center">
  406. <van-col span="5">{{applicationDetail.ydjfsp.zrzybmmc}}意见</van-col>
  407. <van-col span="19">
  408. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.landArea" label="用地面积" placeholder="请输入" input-align="right" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>-->
  409. <!-- <field-select-->
  410. <!-- v-model="applicationDetail.tHouseApproveNatureOptions.rightsType"-->
  411. <!-- label="土地权属"-->
  412. <!-- value-key="dictLabel"-->
  413. <!-- data-key="dictValue"-->
  414. <!-- placeholder="请选择土地权属"-->
  415. <!-- :rules="[{ required: true }]"-->
  416. <!-- required-->
  417. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  418. <!-- remote-url="/system/dict/data/type/rights_type"-->
  419. <!-- :on-remote-response="'data'"-->
  420. <!-- />-->
  421. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.east" label="东至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  422. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.west" label="西至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  423. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.south" label="南至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  424. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.north" label="北至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  425. <!-- <div class="mapBox">-->
  426. <!-- <common-map ref="pointDarwNatureMap" style="height:200px;"-->
  427. <!-- :allowDraw="formEnabled.baseApplyForm.townFormEnabled"-->
  428. <!-- @drawReseted="onNatureMapDrawReseted"-->
  429. <!-- @drawFinished="onMapDrawFinished"-->
  430. <!-- >-->
  431. <!-- </common-map>-->
  432. <!-- </div>-->
  433. <van-field required :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled" v-model="applicationDetail.ydjfsp.zrzybmscyj" rows="2" autosize type="textarea" placeholder="审查意见" :rules="[{ required: true }]"/>
  434. <van-cell title="负责人:" :rules="[{ required: true }]" >
  435. <van-image
  436. width="100"
  437. height="50"
  438. :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled"
  439. v-if="applicationDetail.ydjfsp.zrzybmscrxm !='' && applicationDetail.ydjfsp.zrzybmscrxm !=null
  440. && applicationDetail.ydjfsp.zrzybmscrxm.endsWith('png')"
  441. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfsp.zrzybmscrxm"
  442. ></van-image>
  443. <div v-if="applicationDetail.ydjfsp.zrzybmscrxm !='' && applicationDetail.ydjfsp.zrzybmscrxm !=null
  444. && !applicationDetail.ydjfsp.zrzybmscrxm.endsWith('png')">{{applicationDetail.ydjfsp.zrzybmscrxm}} </div>
  445. </van-cell>
  446. <!-- <van-cell title="现场照片:">-->
  447. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveNature" :uploadDisabled="!formEnabled.baseApplyForm.nature_resourceFormEnabled" :jsonData="uploadImgNature.fileList" :proposer-id="uploadImgNature.proposerId" tableName="t_house_approve_nature_options"-->
  448. <!-- @uploadFileChanged="(x) => {this.uploadImgNature.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgNature.removeFileList = x;}"-->
  449. <!-- />-->
  450. <!-- </van-cell>-->
  451. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.nature_resourceFormEnabled">-->
  452. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveNatureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveNature')">定位当前位置</van-button>-->
  453. <!-- </van-cell>-->
  454. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.nature_resourceFormEnabled">-->
  455. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveNatureOptions.theGeomPoint !='' || applicationDetail.tHouseApproveNatureOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveNatureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveNature')">查看现场位置</van-button>-->
  456. <!-- </van-cell>-->
  457. <field-date-picker
  458. v-model="applicationDetail.ydjfsp.zrzybmscsj"
  459. label="审批日期"
  460. placeholder="选择日期"
  461. :rules="[{ required: true }]"
  462. formatter="yyyy-MM-dd"
  463. required
  464. :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled"
  465. />
  466. </van-col>
  467. </van-row>
  468. </div>
  469. </template>
  470. <!-- 申请::住建部门 -->
  471. <template v-if="formVisible.baseApplyForm.buildingFormVisible">
  472. <div class="main_box examine_box">
  473. <van-row type="flex" justify="space-between" align="center">
  474. <van-col span="5">{{applicationDetail.ydjfsp.zfcxjsbmmc}}意见</van-col>
  475. <van-col span="19">
  476. <!-- <field-select-->
  477. <!-- v-model="applicationDetail.tHouseApproveOtherOptions.buildingType"-->
  478. <!-- label="建筑类型"-->
  479. <!-- value-key="dictLabel"-->
  480. <!-- data-key="dictValue"-->
  481. <!-- placeholder="请选择建筑类型"-->
  482. <!-- :rules="[{ required: true }]"-->
  483. <!-- required-->
  484. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  485. <!-- remote-url="/system/dict/data/type/building_type"-->
  486. <!-- :on-remote-response="'data'"-->
  487. <!-- />-->
  488. <!-- <field-select-->
  489. <!-- v-model="applicationDetail.tHouseApproveOtherOptions.designPaper"-->
  490. <!-- label="图纸类型"-->
  491. <!-- value-key="dictLabel"-->
  492. <!-- data-key="dictValue"-->
  493. <!-- placeholder="请选择图纸类型"-->
  494. <!-- :rules="[{ required: true }]"-->
  495. <!-- required-->
  496. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  497. <!-- remote-url="/system/dict/data/type/design_paper"-->
  498. <!-- :on-remote-response="'data'"-->
  499. <!-- />-->
  500. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.buildingLandArea" label="建筑占地面积" placeholder="请输入" input-align="right" type="number" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>-->
  501. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.buildingArea" label="建筑面积" placeholder="请输入" input-align="right" type="number" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>-->
  502. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.buildingFloors" label="建筑层数" placeholder="请输入" input-align="right" type="digit" :rules="[{ required: true }]"><template #right-icon>层</template></van-field>-->
  503. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.buildingHight" label="建筑高度" placeholder="请输入" input-align="right" type="number" :rules="[{ required: true }]"><template #right-icon>m</template></van-field>-->
  504. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.east" label="东至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  505. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.west" label="西至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  506. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.south" label="南至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  507. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.north" label="北至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  508. <van-field required :readonly="!formEnabled.baseApplyForm.buildingFormEnabled" v-model="applicationDetail.ydjfsp.zfcxjsbmscyj" rows="2" autosize type="textarea" placeholder="审批意见" :rules="[{ required: true }]"/>
  509. <van-cell title="负责人:" :rules="[{ required: true }]">
  510. <van-image
  511. width="100"
  512. height="50"
  513. :readonly="!formEnabled.baseApplyForm.buildingFormEnabled"
  514. v-if="applicationDetail.ydjfsp.zfcxjsbmscrxm !='' && applicationDetail.ydjfsp.zfcxjsbmscrxm !=null
  515. && applicationDetail.ydjfsp.zfcxjsbmscrxm.endsWith('png')"
  516. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfsp.zfcxjsbmscrxm"
  517. ></van-image>
  518. <div v-if="applicationDetail.ydjfsp.zfcxjsbmscrxm !='' && applicationDetail.ydjfsp.zfcxjsbmscrxm !=null
  519. && !applicationDetail.ydjfsp.zfcxjsbmscrxm.endsWith('png')">{{applicationDetail.ydjfsp.zfcxjsbmscrxm}}</div>
  520. </van-cell>
  521. <!-- <van-cell title="现场照片:">-->
  522. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveOther" :uploadDisabled="!formEnabled.baseApplyForm.buildingFormEnabled" :jsonData="uploadImgOther.fileList" :proposer-id="uploadImgOther.proposerId" tableName="t_house_approve_other_options"-->
  523. <!-- @uploadFileChanged="(x) => {this.uploadImgOther.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgOther.removeFileList = x;}"-->
  524. <!-- />-->
  525. <!-- </van-cell>-->
  526. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.buildingFormEnabled">-->
  527. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveOtherOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveOther')">定位当前位置</van-button>-->
  528. <!-- </van-cell>-->
  529. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.buildingFormEnabled">-->
  530. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveOtherOptions.theGeomPoint !='' || applicationDetail.tHouseApproveOtherOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveOtherOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveOther')">查看现场位置</van-button>-->
  531. <!-- </van-cell>-->
  532. <field-date-picker
  533. v-model="applicationDetail.ydjfsp.zfcxjsbmscsj"
  534. label="审批日期"
  535. placeholder="选择日期"
  536. :rules="[{ required: true }]"
  537. formatter="yyyy-MM-dd"
  538. required
  539. :readonly="!formEnabled.baseApplyForm.buildingFormEnabled"
  540. />
  541. </van-col>
  542. </van-row>
  543. </div>
  544. </template>
  545. <!-- 申请::农业部门 -->
  546. <template v-if="formVisible.baseApplyForm.agricultureFormVisible">
  547. <div class="main_box examine_box">
  548. <van-row type="flex" justify="space-between" align="center">
  549. <van-col span="5">{{applicationDetail.ydjfsp.nyncbmmc}}意见</van-col>
  550. <van-col span="19">
  551. <!-- <field-radio-->
  552. <!-- v-model="applicationDetail.tHouseApproveAgricultureOptions.isMembership"-->
  553. <!-- label="成员资格审查"-->
  554. <!-- value-key="dictLabel"-->
  555. <!-- data-key="dictValue"-->
  556. <!-- :rules="[{ required: true }]"-->
  557. <!-- required-->
  558. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  559. <!-- :columns="[{dictLabel: '通过', dictValue: '1'}, {dictLabel: '不通过', dictValue: '2'}]"-->
  560. <!-- />-->
  561. <!-- <field-radio-->
  562. <!-- v-model="applicationDetail.tHouseApproveAgricultureOptions.isOnehouse"-->
  563. <!-- label="一户一宅情况"-->
  564. <!-- value-key="dictLabel"-->
  565. <!-- data-key="dictValue"-->
  566. <!-- :rules="[{ required: true }]"-->
  567. <!-- required-->
  568. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  569. <!-- :columns="[{dictLabel: '符合', dictValue: '1'}, {dictLabel: '不符合', dictValue: '2'}]"-->
  570. <!-- />-->
  571. <!-- <field-radio-->
  572. <!-- v-model="applicationDetail.tHouseApproveAgricultureOptions.isReviewmaterials"-->
  573. <!-- label="村委审查资料"-->
  574. <!-- value-key="dictLabel"-->
  575. <!-- data-key="dictValue"-->
  576. <!-- :rules="[{ required: true }]"-->
  577. <!-- required-->
  578. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  579. <!-- :columns="[{dictLabel: '齐全', dictValue: '1'}, {dictLabel: '不齐全', dictValue: '2'}]"-->
  580. <!-- />-->
  581. <van-field required :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled" rows="2" v-model="applicationDetail.ydjfsp.nyncbmscyj" autosize type="textarea" placeholder="审查意见" :rules="[{ required: true }]"/>
  582. <van-cell title="负责人:" :rules="[{ required: true }]">
  583. <van-image
  584. width="100"
  585. height="50"
  586. :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled"
  587. v-if="applicationDetail.ydjfsp.nyncbmscrxm !='' && applicationDetail.ydjfsp.nyncbmscrxm !=null
  588. && applicationDetail.ydjfsp.nyncbmscrxm.endsWith('png')"
  589. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfsp.nyncbmscrxm"
  590. ></van-image>
  591. <div v-if="applicationDetail.ydjfsp.nyncbmscrxm !='' && applicationDetail.ydjfsp.nyncbmscrxm !=null
  592. && !applicationDetail.ydjfsp.nyncbmscrxm.endsWith('png')">{{applicationDetail.ydjfsp.nyncbmscrxm}}</div>
  593. </van-cell>
  594. <!-- <van-cell title="现场照片:">-->
  595. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveAgriculture" :uploadDisabled="!formEnabled.baseApplyForm.agricultureFormEnabled" :jsonData="uploadImgAgriculture.fileList" :proposer-id="uploadImgAgriculture.proposerId" tableName="t_house_approve_agriculture_options"-->
  596. <!-- @uploadFileChanged="(x) => {this.uploadImgAgriculture.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgAgriculture.removeFileList = x;}"-->
  597. <!-- />-->
  598. <!-- </van-cell>-->
  599. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.agricultureFormEnabled">-->
  600. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveAgriculture')">定位当前位置</van-button>-->
  601. <!-- </van-cell>-->
  602. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.agricultureFormEnabled">-->
  603. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint !='' || applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveAgriculture')">查看现场位置</van-button>-->
  604. <!-- </van-cell>-->
  605. <field-date-picker
  606. v-model="applicationDetail.ydjfsp.nyncbmscsj"
  607. label="审批日期"
  608. placeholder="选择日期"
  609. :rules="[{ required: true }]"
  610. formatter="yyyy-MM-dd"
  611. required
  612. :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled"
  613. />
  614. </van-col>
  615. </van-row>
  616. </div>
  617. </template>
  618. <!-- 申请::镇政府 -->
  619. <template v-if="formVisible.baseApplyForm.townFormVisible">
  620. <div class="main_box examine_box">
  621. <van-row type="flex" justify="space-between" align="center">
  622. <van-col span="5">乡镇<br/>政府<br/>审核<br/>批准<br/>意见</van-col>
  623. <van-col span="19">
  624. <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.ydjfsp.xzzfshpzyj" rows="2" autosize type="textarea" placeholder="审批意见" :rules="[{ required: true }]"/>
  625. <van-cell title="负责人:" :rules="[{ required: true }]">
  626. <van-image
  627. width="100"
  628. height="50"
  629. :readonly="!formEnabled.baseApplyForm.townFormEnabled"
  630. v-if="applicationDetail.ydjfsp.xzzfshpzrxm !='' && applicationDetail.ydjfsp.xzzfshpzrxm !=null
  631. && applicationDetail.ydjfsp.xzzfshpzrxm.endsWith('png')"
  632. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfsp.xzzfshpzrxm"
  633. ></van-image>
  634. <div v-if="applicationDetail.ydjfsp.xzzfshpzrxm !='' && applicationDetail.ydjfsp.xzzfshpzrxm !=null
  635. && !applicationDetail.ydjfsp.xzzfshpzrxm.endsWith('png')">{{applicationDetail.ydjfsp.xzzfshpzrxm}}</div>
  636. </van-cell>
  637. <!-- <van-cell title="现场照片:">-->
  638. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveTown" :uploadDisabled="!formEnabled.baseApplyForm.townFormEnabled" :jsonData="uploadImgTown.fileList" :proposer-id="uploadImgTown.proposerId" tableName="t_house_approve_town_options"-->
  639. <!-- @uploadFileChanged="(x) => {this.uploadImgTown.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgTown.removeFileList = x;}"-->
  640. <!-- />-->
  641. <!-- </van-cell>-->
  642. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.townFormEnabled">-->
  643. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveTownOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveTown')">定位当前位置</van-button>-->
  644. <!-- </van-cell>-->
  645. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.townFormEnabled">-->
  646. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveTownOptions.theGeomPoint !='' || applicationDetail.tHouseApproveTownOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveTownOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveTown')">查看现场位置</van-button>-->
  647. <!-- </van-cell>-->
  648. <field-date-picker
  649. v-model="applicationDetail.ydjfsp.xzzfshpzsj"
  650. label="审批日期"
  651. placeholder="选择日期"
  652. :rules="[{ required: true }]"
  653. formatter="yyyy-MM-dd"
  654. required
  655. :readonly="!formEnabled.baseApplyForm.townFormEnabled"
  656. />
  657. </van-col>
  658. </van-row>
  659. </div>
  660. </template>
  661. <!-- 申请::现场踏勘 -->
  662. <template v-if="formVisible.baseApplyForm.townFormVisible">
  663. <div class="main_box examine_box">
  664. <van-row type="flex" justify="space-between" align="center">
  665. <van-col span="5">宅基地<br/>坐落平<br/>面位置图</van-col>
  666. <van-col span="19">
  667. <MultiImageUploadComp :value="applicationDetail.ydjfsp.zjdzlpmwzt" :uploadDisabled="!wztUpdate" @fileUpdate="fileUpdate"/>
  668. <van-row>
  669. <van-col span="12"><van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.ydjfsp.zckcryxm" label="踏勘人" placeholder="现场踏勘人员" input-align="left" label-width="auto"/></van-col>
  670. <van-col span="12">
  671. <field-date-picker
  672. v-model="applicationDetail.ydjfsp.zckcsj"
  673. label=""
  674. placeholder="选择日期"
  675. :rules="[{ required: true }]"
  676. formatter="yyyy-MM-dd"
  677. required
  678. :readonly="!formEnabled.baseApplyForm.townFormEnabled"
  679. />
  680. </van-col>
  681. </van-row>
  682. <van-row>
  683. <van-col span="12"><van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.ydjfsp.zjdzlpmwztztr" label="制图人" placeholder="制图人" input-align="left" label-width="auto"/></van-col>
  684. <van-col span="12">
  685. <field-date-picker
  686. v-model="applicationDetail.ydjfsp.zjdzlpmwzxctksj"
  687. label=""
  688. placeholder="选择日期"
  689. :rules="[{ required: true }]"
  690. formatter="yyyy-MM-dd"
  691. required
  692. :readonly="!formEnabled.baseApplyForm.townFormEnabled"
  693. />
  694. </van-col>
  695. </van-row>
  696. </van-col>
  697. </van-row>
  698. </div>
  699. </template>
  700. </div>
  701. </template>
  702. <template v-if="selectedTabName == 1 && formVisible.landscopeVisible"> <!-- 开工申请 -->
  703. <div :class="active == 1 ? '' : 'noModify'" v-if="formVisible.landscopeVisible">
  704. <p class="topTit">农村宅基地和建房(规划许可)审批表</p>
  705. <div class="main_box action-box">
  706. <van-cell>
  707. <template #right-icon>
  708. <field-date-picker
  709. v-model="applicationDetail.ydjfkg.kgrq"
  710. label="计划开工时间"
  711. placeholder="选择日期"
  712. :rules="[{ required: true }]"
  713. formatter="yyyy-MM-dd"
  714. required
  715. :readonly="!formEnabled.landscopeForm.baseFormEnabled"
  716. />
  717. </template>
  718. </van-cell>
  719. <van-cell>
  720. <template #right-icon>
  721. <field-date-picker
  722. v-model="applicationDetail.ydjfkg.jgrq"
  723. label="计划竣工时间"
  724. placeholder="选择日期"
  725. :rules="[{ required: true }]"
  726. formatter="yyyy-MM-dd"
  727. required
  728. :readonly="!formEnabled.landscopeForm.baseFormEnabled"
  729. />
  730. </template>
  731. </van-cell>
  732. </div>
  733. <template v-if="formVisible.baseApplyForm.baseFormVisible"> <!-- 申请 基本信息 -->
  734. <div>
  735. <p class="main_title">申请户主信息</p>
  736. <div class="main_box">
  737. <van-field :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.sqhhzxm" label="姓名" placeholder="姓名" input-align="right" required :rules="[{ required: true }]"/>
  738. <field-select
  739. v-model="applicationDetail.sqhhzxb"
  740. label="性别"
  741. value-key="dictLabel"
  742. data-key="dictValue"
  743. placeholder="选择性别"
  744. :rules="[{ required: true }]"
  745. required
  746. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  747. remote-url="/system/dict/data/type/sys_user_sex"
  748. :on-remote-response="'data'"
  749. />
  750. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.sqhhznl" label="年龄" placeholder="年龄" input-align="right" type="digit" :rules="[{ required: true }]"/>
  751. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.sqhhzlxdh" label="联系电话" placeholder="联系电话" input-align="right" type="digit" :rules="[{pattern: /(^\d{7}(\d{4})?$)/}]"/>
  752. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.sqhhzsfzh" label="身份证号" placeholder="身份证号" input-align="right" :rules="[{pattern: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/}]" @input="updateUserInfo"/>
  753. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.sqhhzhkszd" label="户口所在地" placeholder="户口所在地" input-align="right" :rules="[{ required: true }]"/>
  754. </div>
  755. </div>
  756. <div v-if="applicationDetail.sqrjtcyList">
  757. <p class="main_title">家庭成员信息</p>
  758. <!-- <van-collapse v-model="activeNames" v-if="!formEnabled.baseApplyForm.baseFormEnabled">-->
  759. <!-- <van-collapse-item class="collapse" v-for="(item , index) in applicationDetail.sqrjtcyList" :key="index" :name="index+1">-->
  760. <!-- <template #title>-->
  761. <!-- <van-row>-->
  762. <!-- <van-col span="8">{{item.xm}}</van-col>-->
  763. <!-- <van-col span="8">{{item.nl}}</van-col>-->
  764. <!-- <van-col span="8">{{item.yhzgx}}</van-col>-->
  765. <!-- </van-row>-->
  766. <!-- </template>-->
  767. <!-- <van-field readonly v-model="item.xm" label="姓名" placeholder="姓名" input-align="right"/>-->
  768. <!-- <van-field readonly v-model="item.nl" label="年龄" placeholder="年龄" input-align="right"/>-->
  769. <!-- <field-select-->
  770. <!-- v-model="item.yhzgx"-->
  771. <!-- label="与户主关系"-->
  772. <!-- value-key="dictLabel"-->
  773. <!-- data-key="dictValue"-->
  774. <!-- placeholder="选择与户主关系"-->
  775. <!-- :rules="[{ required: true }]"-->
  776. <!-- required-->
  777. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  778. <!-- remote-url="/system/dict/data/type/family_status"-->
  779. <!-- :on-remote-response="'data'"-->
  780. <!-- />-->
  781. <!-- <van-field readonly v-model="item.sfzh" label="身份证号" placeholder="身份证号" input-align="right"/>-->
  782. <!-- <van-field readonly v-model="item.hkszd" label="户口所在地" placeholder="户口所在地" input-align="right"/>-->
  783. <!-- </van-collapse-item>-->
  784. <!-- </van-collapse>-->
  785. <div>
  786. <van-tabs v-if="applicationDetail.sqrjtcyList && applicationDetail.sqrjtcyList.length > 0" v-model="familyMembersActive" ref="memberTabs">
  787. <van-tab :title="(index + 1) + '. ' + item.xm" v-for="(item , index) in applicationDetail.sqrjtcyList" :key="index" swipeable>
  788. <div class="familyList">
  789. <div class="main_box" style="margin-bottom: 20px">
  790. <van-field required v-model="item.xm" label="姓名" placeholder="姓名" input-align="right" :rules="[{ required: true }]"/>
  791. <van-field required v-model="item.nl" label="年龄" placeholder="年龄" input-align="right" :rules="[{ required: true }]"/>
  792. <field-select
  793. v-model="item.yhzgx"
  794. label="与户主关系"
  795. value-key="dictLabel"
  796. data-key="dictValue"
  797. placeholder="选择与户主关系"
  798. :rules="[{ required: true }]"
  799. required
  800. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  801. remote-url="/system/dict/data/type/family_status"
  802. :on-remote-response="'data'"
  803. />
  804. <van-field required v-model="item.sfzh" label="身份证号" placeholder="身份证号" input-align="right" :rules="[{pattern: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/}]" @input="updateMemberInfo(index)"/>
  805. <van-field required v-model="item.hkszd" label="户口所在地" placeholder="户口所在地" input-align="right" :rules="[{ required: true }]"/>
  806. </div>
  807. </div>
  808. </van-tab>
  809. </van-tabs>
  810. </div>
  811. </div>
  812. <div v-if="applicationDetail.sfyyzjd === 'Y'">
  813. <p class="main_title">现宅基地及农房状况</p>
  814. <div class="main_box">
  815. <van-field
  816. readonly
  817. clickable
  818. name="picker"
  819. v-model="showZjddm"
  820. label="宅基地代码"
  821. @click="showZjdzk = true"
  822. input-align="right"
  823. right-icon="arrow-down"
  824. />
  825. <van-popup v-model="showZjdzk" position="bottom">
  826. <van-picker
  827. show-toolbar
  828. :columns="zjddmColumns"
  829. value-key="value"
  830. @confirm="onConfirmZjdxx"
  831. @cancel="showZjdzk = false"
  832. />
  833. </van-popup>
  834. </div>
  835. <div class="main_box">
  836. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.xzjdmj" label="宅基地面积" placeholder="宅基地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>
  837. <!-- <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyCurrentSituation.landPerArea" label="人均宅基地面积" placeholder="人均宅基地面积" input-align="right" label-width="auto" type="number"><template #right-icon>㎡</template></van-field>-->
  838. <!-- <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyCurrentSituation.landCertificateNo" label="不动产单元号" placeholder="不动产单元号" input-align="right"/>-->
  839. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.xjzmj" label="建筑面积" placeholder="建筑面积㎡" input-align="right" type="number"><template #right-icon>㎡</template></van-field>
  840. <!-- <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyCurrentSituation.buildingPerArea" label="人均建筑面积" placeholder="人均建筑面积" input-align="right" label-width="auto" type="number"><template #right-icon>㎡</template></van-field>-->
  841. <van-field :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.qszsh" label="权属证书号" placeholder="权属证书号" input-align="right"/>
  842. <field-select
  843. v-model="applicationDetail.xzjdczqk"
  844. label="处置情况"
  845. value-key="dictLabel"
  846. data-key="dictValue"
  847. placeholder="选择宅基地处置情况"
  848. :rules="[{ required: true }]"
  849. required
  850. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  851. remote-url="/system/dict/data/type/land_isposal"
  852. :on-remote-response="'data'"
  853. />
  854. <template v-if="applicationDetail.sfyyzjd ==='Y'">
  855. <van-field v-if="applicationDetail.sfyyzjd == '1'" :rules="[{ required: true }]" :required="applicationDetail.sfyyzjd ==='Y' && applicationDetail.landIsposal == '1'" :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyCurrentSituation.reservedArea" label="保留面积" placeholder="保留面积" input-align="right" type="number"/>
  856. <van-field v-else-if="applicationDetail.xzjdczqk == '3'" :rules="[{ required: true }]" :required="applicationDetail.sfyyzjd ==='Y' && applicationDetail.xzjdczqk == '3'" :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.xzjdqtqk" label="处置情况" placeholder="处置情况" input-align="right"/>
  857. </template>
  858. <van-icon v-if="!zjdzdxxDetailedShow" class="zkshStyle" name="arrow-up" @click.native="zkshClick"/>
  859. <div v-if="zjdzdxxDetailedShow">
  860. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszd" label="东至" input-align="right"/>
  861. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszx" label="西至" input-align="right"/>
  862. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszn" label="南至" input-align="right"/>
  863. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszb" label="北至" input-align="right"/>
  864. <van-icon class="zkshStyle" name="arrow-down" @click.native="zkshClick"/>
  865. </div>
  866. </div>
  867. </div>
  868. <div v-if="applicationDetail">
  869. <p class="main_title">拟申请宅基地及建房情况</p>
  870. <div class="main_box">
  871. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjdmj" label="宅基地面积" placeholder="宅基地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>
  872. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqfjzdmj" label="房基占地面积" placeholder="房基占地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>
  873. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjddz" label="地址" placeholder="地址" input-align="right"/>
  874. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjdszd" label="东至" placeholder="东至" input-align="right"/>
  875. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjdszx" label="西至" placeholder="西至" input-align="right"/>
  876. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjdszn" label="南至" placeholder="南至" input-align="right"/>
  877. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjdszb" label="北至" placeholder="北至" input-align="right"/>
  878. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.zfjzmj" label="住房建筑面积" placeholder="住房建筑面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>
  879. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.jzcs" label="建筑层数" placeholder="建筑层数" input-align="right" type="digit"><template #right-icon>层</template></van-field>
  880. <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.jzgd" label="建筑高度" placeholder="建筑高度" input-align="right" type="number"><template #right-icon>m</template></van-field>
  881. <field-radio
  882. v-model="applicationDetail.sfzqxlqlryj"
  883. label="是否征求相邻权利人意见"
  884. value-key="dictLabel"
  885. data-key="dictValue"
  886. :rules="[{ required: true }]"
  887. required
  888. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  889. :columns="[{dictLabel: '是', dictValue: '1'}, {dictLabel: '否', dictValue: '2'}]"
  890. @change="existHomesteadChange"
  891. />
  892. <field-select
  893. v-model="applicationDetail.jflx"
  894. label="建房类型"
  895. value-key="dictLabel"
  896. data-key="dictValue"
  897. placeholder="选择建房类型"
  898. :rules="[{ required: true }]"
  899. required
  900. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  901. remote-url="/system/dict/data/type/building_type"
  902. :on-remote-response="'data'"
  903. />
  904. <field-select
  905. v-model="applicationDetail.nsqzjddldm"
  906. label="土地类型"
  907. value-key="dictLabel"
  908. data-key="dictValue"
  909. placeholder="选择土地类型"
  910. :rules="[{ required: true }]"
  911. required
  912. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  913. remote-url="/system/dict/data/type/geographic_type"
  914. :on-remote-response="'data'"
  915. />
  916. <!-- <template>-->
  917. <!-- <van-field v-if="applicationDetail.tHouseApplyProposedSituation.geographicType == '10'" :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposedSituation.constructionLandArea" label="建设用地面积" placeholder="建设用地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>-->
  918. <!-- <van-field v-else-if="applicationDetail.tHouseApplyProposedSituation.geographicType == '20'" :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposedSituation.unusedLandArea" label="未利用地面积" placeholder="未利用地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>-->
  919. <!-- <van-field v-else-if="applicationDetail.tHouseApplyProposedSituation.geographicType && applicationDetail.tHouseApplyProposedSituation.geographicType != '10' && applicationDetail.tHouseApplyProposedSituation.geographicType != '20'" :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposedSituation.agriculturalLandArea" label="农用地面积" placeholder="农用地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>-->
  920. <!-- </template>-->
  921. </div>
  922. </div>
  923. </template>
  924. <!-- 申请::村级审核 -->
  925. <!-- <template v-if="formVisible.baseApplyForm.villageFormVisible">-->
  926. <!-- <div class="main_box examine_box">-->
  927. <!-- <van-row type="flex" justify="space-between" align="center">-->
  928. <!-- <van-col span="5">村集体<br/>经济组<br/>织或村<br/>民委员<br/>会意见-->
  929. <!-- </van-col>-->
  930. <!-- <van-col span="19">-->
  931. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.villageFormEnabled" v-model="applicationDetail.tHouseApproveVillageOptions.villageOption" rows="2" autosize type="textarea" placeholder="审批意见" :rules="[{ required: true }]"/>-->
  932. <!-- <van-field :rules="[{ required: true }]" v-if="applicationDetail.tHouseApproveVillageOptions.villageLeader !='' && applicationDetail.tHouseApproveVillageOptions.villageLeader !=null && !applicationDetail.tHouseApproveVillageOptions.villageLeader.endsWith('jpeg')"-->
  933. <!-- required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" @click="formEnabled.baseApplyForm.villageFormEnabled && searchCommit('tHouseApproveVillageOptions.villageLeader')" v-model="applicationDetail.tHouseApproveVillageOptions.villageLeader" label="负责人" placeholder="负责人" input-align="right" label-width="auto"/>-->
  934. <!-- <van-cell title="负责人:" v-if="applicationDetail.tHouseApproveVillageOptions.villageLeader =='' || applicationDetail.tHouseApproveVillageOptions.villageLeader ==null || applicationDetail.tHouseApproveVillageOptions.villageLeader.endsWith('jpeg')" :rules="[{ required: true }]">-->
  935. <!-- <van-button :disabled="!formEnabled.baseApplyForm.villageFormEnabled" color="#7AC943" v-if="applicationDetail.tHouseApproveVillageOptions.villageLeader =='' || applicationDetail.tHouseApproveVillageOptions.villageLeader ==null || !applicationDetail.tHouseApproveVillageOptions.villageLeader.endsWith('jpeg')" v-model="applicationDetail.tHouseApproveVillageOptions.villageLeader" type="primary" style="float: right;width:100%;height:40px" @click="searchCommit('tHouseApproveVillageOptions.villageLeader')">签名确认</van-button>-->
  936. <!-- <van-image-->
  937. <!-- width="100"-->
  938. <!-- height="50"-->
  939. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  940. <!-- v-if="applicationDetail.tHouseApproveVillageOptions.villageLeader !='' && applicationDetail.tHouseApproveVillageOptions.villageLeader !=null-->
  941. <!-- && applicationDetail.tHouseApproveVillageOptions.villageLeader.endsWith('jpeg')"-->
  942. <!-- :src="$store.getters.baseRoutingUrl+applicationDetail.tHouseApproveVillageOptions.villageLeader"-->
  943. <!-- @click="formEnabled.baseApplyForm.villageFormEnabled && searchCommit('tHouseApproveVillageOptions.villageLeader')"-->
  944. <!-- ></van-image>-->
  945. <!-- </van-cell>-->
  946. <!-- <van-cell title="现场照片:">-->
  947. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveVillage" :uploadDisabled="!formEnabled.baseApplyForm.villageFormEnabled" :jsonData="uploadImgVillage.fileList" :proposer-id="uploadImgVillage.proposerId" tableName="t_house_approve_village_options"-->
  948. <!-- @uploadFileChanged="(x) => {this.uploadImgVillage.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgVillage.removeFileList = x;}"-->
  949. <!-- />-->
  950. <!-- </van-cell>-->
  951. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.villageFormEnabled">-->
  952. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveVillageOptions.theGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveVillage')">定位当前位置</van-button>-->
  953. <!-- </van-cell>-->
  954. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.villageFormEnabled">-->
  955. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveVillageOptions.theGeom !='' || applicationDetail.tHouseApproveVillageOptions.theGeom !=null" v-model="applicationDetail.tHouseApproveVillageOptions.theGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveVillage')">查看现场位置</van-button>-->
  956. <!-- </van-cell>-->
  957. <!-- <field-date-picker-->
  958. <!-- v-model="applicationDetail.tHouseApproveVillageOptions.villageTime"-->
  959. <!-- label="审批日期"-->
  960. <!-- placeholder="选择日期"-->
  961. <!-- :rules="[{ required: true }]"-->
  962. <!-- formatter="yyyy-MM-dd"-->
  963. <!-- required-->
  964. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  965. <!-- />-->
  966. <!-- </van-col>-->
  967. <!-- </van-row>-->
  968. <!-- </div>-->
  969. <!-- </template>-->
  970. <common-map ref="pointDarwMap" style="height:200px;"
  971. :allowDraw="formVisible.landscopeForm.nature_resourceFormEnabled"
  972. @drawReseted="onMapDrawReseted"
  973. @drawFinished="onMapDrawFinished"
  974. >
  975. </common-map>
  976. <!-- &lt;!&ndash; 申请::自然资源部门 &ndash;&gt;-->
  977. <!-- <template v-if="formVisible.baseApplyForm.nature_resourceFormVisible">-->
  978. <!-- <div class="main_box examine_box">-->
  979. <!-- <van-row type="flex" justify="space-between" align="center">-->
  980. <!-- <van-col span="5">乡镇<br/>自然<br/>资源<br/>部门<br/>意见</van-col>-->
  981. <!-- <van-col span="19">-->
  982. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.approveOption" rows="2" autosize type="textarea" placeholder="审查意见" :rules="[{ required: true }]"/>-->
  983. <!-- <van-field v-if="applicationDetail.tHouseApproveNatureOptions.approveLeader !='' && applicationDetail.tHouseApproveNatureOptions.approveLeader !=null && !applicationDetail.tHouseApproveNatureOptions.approveLeader.endsWith('jpeg')"-->
  984. <!-- required :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled" @click="formEnabled.baseApplyForm.nature_resourceFormEnabled && searchCommit(tHouseApproveNatureOptions)" :rules="[{ required: true }]" v-model="applicationDetail.tHouseApproveNatureOptions.approveLeader" label="负责人" placeholder="负责人" input-align="right" label-width="auto"/>-->
  985. <!-- <van-cell title="负责人:" v-if="applicationDetail.tHouseApproveNatureOptions.approveLeader =='' || applicationDetail.tHouseApproveNatureOptions.approveLeader ==null || applicationDetail.tHouseApproveNatureOptions.approveLeader.endsWith('jpeg')" :rules="[{ required: true }]" >-->
  986. <!-- <van-button :disabled="!formEnabled.baseApplyForm.nature_resourceFormEnabled" color="#7AC943" v-if="applicationDetail.tHouseApproveNatureOptions.approveLeader =='' || applicationDetail.tHouseApproveNatureOptions.approveLeader ==null || !applicationDetail.tHouseApproveNatureOptions.approveLeader.endsWith('jpeg')" v-model="applicationDetail.tHouseApproveNatureOptions.approveLeader" type="primary" style="float: right;width:100%;height:40px" @click="searchCommit('tHouseApproveNatureOptions.approveLeader')">签名确认</van-button>-->
  987. <!-- <van-image-->
  988. <!-- width="100"-->
  989. <!-- height="50"-->
  990. <!-- :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled"-->
  991. <!-- v-if="applicationDetail.tHouseApproveNatureOptions.approveLeader !='' && applicationDetail.tHouseApproveNatureOptions.approveLeader !=null-->
  992. <!-- && applicationDetail.tHouseApproveNatureOptions.approveLeader.endsWith('jpeg')"-->
  993. <!-- :src="$store.getters.baseRoutingUrl+applicationDetail.tHouseApproveNatureOptions.approveLeader"-->
  994. <!-- @click="formEnabled.baseApplyForm.nature_resourceFormEnabled && searchCommit('tHouseApproveNatureOptions.approveLeader')"-->
  995. <!-- ></van-image>-->
  996. <!-- </van-cell>-->
  997. <!-- <van-cell title="现场照片:">-->
  998. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveNature" :uploadDisabled="!formEnabled.baseApplyForm.nature_resourceFormEnabled" :jsonData="uploadImgNature.fileList" :proposer-id="uploadImgNature.proposerId" tableName="t_house_approve_nature_options"-->
  999. <!-- @uploadFileChanged="(x) => {this.uploadImgNature.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgNature.removeFileList = x;}"-->
  1000. <!-- />-->
  1001. <!-- </van-cell>-->
  1002. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.nature_resourceFormEnabled">-->
  1003. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveNatureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveNature')">定位当前位置</van-button>-->
  1004. <!-- </van-cell>-->
  1005. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.nature_resourceFormEnabled">-->
  1006. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveNatureOptions.theGeomPoint !='' || applicationDetail.tHouseApproveNatureOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveNatureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveNature')">查看现场位置</van-button>-->
  1007. <!-- </van-cell>-->
  1008. <!-- <field-date-picker-->
  1009. <!-- v-model="applicationDetail.tHouseApproveNatureOptions.approveTime"-->
  1010. <!-- label="审批日期"-->
  1011. <!-- placeholder="选择日期"-->
  1012. <!-- :rules="[{ required: true }]"-->
  1013. <!-- formatter="yyyy-MM-dd"-->
  1014. <!-- required-->
  1015. <!-- :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled"-->
  1016. <!-- />-->
  1017. <!-- </van-col>-->
  1018. <!-- </van-row>-->
  1019. <!-- </div>-->
  1020. <!-- </template>-->
  1021. <!-- &lt;!&ndash; 申请::住建部门 &ndash;&gt;-->
  1022. <!-- <template v-if="formVisible.baseApplyForm.buildingFormVisible">-->
  1023. <!-- <div class="main_box examine_box">-->
  1024. <!-- <van-row type="flex" justify="space-between" align="center">-->
  1025. <!-- <van-col span="5">乡镇<br/>住建<br/>部门<br/>意见<br/></van-col>-->
  1026. <!-- <van-col span="19">-->
  1027. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.buildingFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.approveOption" rows="2" autosize type="textarea" placeholder="审批意见" :rules="[{ required: true }]"/>-->
  1028. <!-- <van-field :rules="[{ required: true }]" v-if="applicationDetail.tHouseApproveOtherOptions.approveLeader !='' && applicationDetail.tHouseApproveOtherOptions.approveLeader !=null && !applicationDetail.tHouseApproveOtherOptions.approveLeader.endsWith('jpeg')"-->
  1029. <!-- @click="formEnabled.baseApplyForm.buildingFormEnabled && searchCommit('tHouseApproveOtherOptions.approveLeader')" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.approveLeader" label="负责人" placeholder="负责人" input-align="right" label-width="auto"/>-->
  1030. <!-- <van-cell title="负责人:" v-if="applicationDetail.tHouseApproveOtherOptions.approveLeader =='' || applicationDetail.tHouseApproveOtherOptions.approveLeader ==null || applicationDetail.tHouseApproveOtherOptions.approveLeader.endsWith('jpeg')" :rules="[{ required: true }]">-->
  1031. <!-- <van-button :disabled="!formEnabled.baseApplyForm.buildingFormEnabled" color="#7AC943" v-if="applicationDetail.tHouseApproveOtherOptions.approveLeader =='' || applicationDetail.tHouseApproveOtherOptions.approveLeader ==null || !applicationDetail.tHouseApproveOtherOptions.approveLeader.endsWith('jpeg')" v-model="applicationDetail.tHouseApproveOtherOptions.approveLeader" type="primary" style="float: right;width:100%;height:40px" @click="searchCommit('tHouseApproveOtherOptions.approveLeader')">签名确认</van-button>-->
  1032. <!-- <van-image-->
  1033. <!-- width="100"-->
  1034. <!-- height="50"-->
  1035. <!-- :readonly="!formEnabled.baseApplyForm.buildingFormEnabled"-->
  1036. <!-- v-if="applicationDetail.tHouseApproveOtherOptions.approveLeader !='' && applicationDetail.tHouseApproveOtherOptions.approveLeader !=null-->
  1037. <!-- && applicationDetail.tHouseApproveOtherOptions.approveLeader.endsWith('jpeg')"-->
  1038. <!-- :src="$store.getters.baseRoutingUrl+applicationDetail.tHouseApproveOtherOptions.approveLeader"-->
  1039. <!-- @click="formEnabled.baseApplyForm.buildingFormEnabled && searchCommit('tHouseApproveOtherOptions.approveLeader')"-->
  1040. <!-- ></van-image>-->
  1041. <!-- </van-cell>-->
  1042. <!-- <van-cell title="现场照片:">-->
  1043. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveOther" :uploadDisabled="!formEnabled.baseApplyForm.buildingFormEnabled" :jsonData="uploadImgOther.fileList" :proposer-id="uploadImgOther.proposerId" tableName="t_house_approve_other_options"-->
  1044. <!-- @uploadFileChanged="(x) => {this.uploadImgOther.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgOther.removeFileList = x;}"-->
  1045. <!-- />-->
  1046. <!-- </van-cell>-->
  1047. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.buildingFormEnabled">-->
  1048. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveOtherOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveOther')">定位当前位置</van-button>-->
  1049. <!-- </van-cell>-->
  1050. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.buildingFormEnabled">-->
  1051. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveOtherOptions.theGeomPoint !='' || applicationDetail.tHouseApproveOtherOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveOtherOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveOther')">查看现场位置</van-button>-->
  1052. <!-- </van-cell>-->
  1053. <!-- <field-date-picker-->
  1054. <!-- v-model="applicationDetail.tHouseApproveOtherOptions.approveTime"-->
  1055. <!-- label="审批日期"-->
  1056. <!-- placeholder="选择日期"-->
  1057. <!-- :rules="[{ required: true }]"-->
  1058. <!-- formatter="yyyy-MM-dd"-->
  1059. <!-- required-->
  1060. <!-- :readonly="!formEnabled.baseApplyForm.buildingFormEnabled"-->
  1061. <!-- />-->
  1062. <!-- </van-col>-->
  1063. <!-- </van-row>-->
  1064. <!-- </div>-->
  1065. <!-- </template>-->
  1066. <!-- &lt;!&ndash; 申请::农业部门 &ndash;&gt;-->
  1067. <!-- <template v-if="formVisible.baseApplyForm.agricultureFormVisible">-->
  1068. <!-- <div class="main_box examine_box">-->
  1069. <!-- <van-row type="flex" justify="space-between" align="center">-->
  1070. <!-- <van-col span="5">乡镇<br/>农业<br/>农村<br/>部门<br/>审查<br/>意见</van-col>-->
  1071. <!-- <van-col span="19">-->
  1072. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled" rows="2" v-model="applicationDetail.tHouseApproveAgricultureOptions.approveOption" autosize type="textarea" placeholder="审查意见" :rules="[{ required: true }]"/>-->
  1073. <!-- <van-field :rules="[{ required: true }]" v-if="applicationDetail.tHouseApproveAgricultureOptions.approveLeader !='' && applicationDetail.tHouseApproveAgricultureOptions.approveLeader !=null && !applicationDetail.tHouseApproveAgricultureOptions.approveLeader.endsWith('jpeg')"-->
  1074. <!-- @click="formEnabled.baseApplyForm.agricultureFormEnabled && searchCommit('tHouseApproveOtherOptions.approveLeader')" required :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled" v-model="applicationDetail.tHouseApproveAgricultureOptions.approveLeader" label="负责人" placeholder="负责人" input-align="right" label-width="auto"/>-->
  1075. <!-- <van-cell title="负责人:" v-if="applicationDetail.tHouseApproveAgricultureOptions.approveLeader =='' || applicationDetail.tHouseApproveAgricultureOptions.approveLeader ==null || applicationDetail.tHouseApproveAgricultureOptions.approveLeader.endsWith('jpeg')" :rules="[{ required: true }]">-->
  1076. <!-- <van-button :disabled="!formEnabled.baseApplyForm.agricultureFormEnabled" color="#7AC943" v-if="applicationDetail.tHouseApproveAgricultureOptions.approveLeader =='' || applicationDetail.tHouseApproveAgricultureOptions.approveLeader ==null || !applicationDetail.tHouseApproveAgricultureOptions.approveLeader.endsWith('jpeg')" v-model="applicationDetail.tHouseApproveAgricultureOptions.approveLeader" type="primary" style="float: right;width:100%;height:40px" @click="searchCommit('tHouseApproveAgricultureOptions.approveLeader')">签名确认</van-button>-->
  1077. <!-- <van-image-->
  1078. <!-- width="100"-->
  1079. <!-- height="50"-->
  1080. <!-- :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled"-->
  1081. <!-- v-if="applicationDetail.tHouseApproveAgricultureOptions.approveLeader !='' && applicationDetail.tHouseApproveAgricultureOptions.approveLeader !=null-->
  1082. <!-- && applicationDetail.tHouseApproveAgricultureOptions.approveLeader.endsWith('jpeg')"-->
  1083. <!-- :src="$store.getters.baseRoutingUrl+applicationDetail.tHouseApproveAgricultureOptions.approveLeader"-->
  1084. <!-- @click="formEnabled.baseApplyForm.buildingFormEnabled && searchCommit('tHouseApproveAgricultureOptions.approveLeader')"-->
  1085. <!-- ></van-image>-->
  1086. <!-- </van-cell>-->
  1087. <!-- <van-cell title="现场照片:">-->
  1088. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveAgriculture" :uploadDisabled="!formEnabled.baseApplyForm.agricultureFormEnabled" :jsonData="uploadImgAgriculture.fileList" :proposer-id="uploadImgAgriculture.proposerId" tableName="t_house_approve_agriculture_options"-->
  1089. <!-- @uploadFileChanged="(x) => {this.uploadImgAgriculture.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgAgriculture.removeFileList = x;}"-->
  1090. <!-- />-->
  1091. <!-- </van-cell>-->
  1092. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.agricultureFormEnabled">-->
  1093. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveAgriculture')">定位当前位置</van-button>-->
  1094. <!-- </van-cell>-->
  1095. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.agricultureFormEnabled">-->
  1096. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint !='' || applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveAgriculture')">查看现场位置</van-button>-->
  1097. <!-- </van-cell>-->
  1098. <!-- <field-date-picker-->
  1099. <!-- v-model="applicationDetail.tHouseApproveAgricultureOptions.approveTime"-->
  1100. <!-- label="审批日期"-->
  1101. <!-- placeholder="选择日期"-->
  1102. <!-- :rules="[{ required: true }]"-->
  1103. <!-- formatter="yyyy-MM-dd"-->
  1104. <!-- required-->
  1105. <!-- :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled"-->
  1106. <!-- />-->
  1107. <!-- </van-col>-->
  1108. <!-- </van-row>-->
  1109. <!-- </div>-->
  1110. <!-- </template>-->
  1111. <!-- &lt;!&ndash; 申请::镇政府 &ndash;&gt;-->
  1112. <!-- <template v-if="formVisible.baseApplyForm.townFormVisible">-->
  1113. <!-- <div class="main_box examine_box" v-if="formVisible.baseApplyForm.townFormVisible">-->
  1114. <!-- <van-row type="flex" justify="space-between" align="center">-->
  1115. <!-- <van-col span="5">乡镇<br/>政府<br/>审核<br/>批准<br/>意见</van-col>-->
  1116. <!-- <van-col span="19">-->
  1117. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveTownOptions.approveOption" rows="2" autosize type="textarea" placeholder="审批意见" :rules="[{ required: true }]"/>-->
  1118. <!-- <van-field :rules="[{ required: true }]" v-if="applicationDetail.tHouseApproveTownOptions.approveLeader !='' && applicationDetail.tHouseApproveTownOptions.approveLeader !=null && !applicationDetail.tHouseApproveTownOptions.approveLeader.endsWith('jpeg')"-->
  1119. <!-- @click="formEnabled.baseApplyForm.agricultureFormEnabled && searchCommit('tHouseApproveTownOptions.approveLeader')" required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveTownOptions.approveLeader" label="负责人:" placeholder="负责人" input-align="right" label-width="auto"/>-->
  1120. <!-- <van-cell title="负责人:" v-if="applicationDetail.tHouseApproveTownOptions.approveLeader =='' || applicationDetail.tHouseApproveTownOptions.approveLeader ==null || applicationDetail.tHouseApproveTownOptions.approveLeader.endsWith('jpeg')" :rules="[{ required: true }]">-->
  1121. <!-- <van-button :disabled="!formEnabled.baseApplyForm.townFormEnabled" color="#7AC943" v-if="applicationDetail.tHouseApproveTownOptions.approveLeader =='' || applicationDetail.tHouseApproveTownOptions.approveLeader ==null || !applicationDetail.tHouseApproveTownOptions.approveLeader.endsWith('jpeg')" v-model="applicationDetail.tHouseApproveTownOptions.approveLeader" type="primary" style="float: right;width:100%;height:40px" @click="searchCommit('tHouseApproveTownOptions.approveLeader')">签名确认</van-button>-->
  1122. <!-- <van-image-->
  1123. <!-- width="100"-->
  1124. <!-- height="50"-->
  1125. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  1126. <!-- v-if="applicationDetail.tHouseApproveTownOptions.approveLeader !='' && applicationDetail.tHouseApproveTownOptions.approveLeader !=null-->
  1127. <!-- && applicationDetail.tHouseApproveTownOptions.approveLeader.endsWith('jpeg')"-->
  1128. <!-- :src="$store.getters.baseRoutingUrl+applicationDetail.tHouseApproveTownOptions.approveLeader"-->
  1129. <!-- @click="formEnabled.baseApplyForm.townFormEnabled && searchCommit('tHouseApproveTownOptions.approveLeader')"-->
  1130. <!-- ></van-image>-->
  1131. <!-- </van-cell>-->
  1132. <!-- <van-cell title="现场照片:">-->
  1133. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveTown" :uploadDisabled="!formEnabled.baseApplyForm.townFormEnabled" :jsonData="uploadImgTown.fileList" :proposer-id="uploadImgTown.proposerId" tableName="t_house_approve_town_options"-->
  1134. <!-- @uploadFileChanged="(x) => {this.uploadImgTown.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgTown.removeFileList = x;}"-->
  1135. <!-- />-->
  1136. <!-- </van-cell>-->
  1137. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.townFormEnabled">-->
  1138. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveTownOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveTown')">定位当前位置</van-button>-->
  1139. <!-- </van-cell>-->
  1140. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.townFormEnabled">-->
  1141. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveTownOptions.theGeomPoint !='' || applicationDetail.tHouseApproveTownOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveTownOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveTown')">查看现场位置</van-button>-->
  1142. <!-- </van-cell>-->
  1143. <!-- <field-date-picker-->
  1144. <!-- v-model="applicationDetail.tHouseApproveTownOptions.approveTime"-->
  1145. <!-- label="审批日期"-->
  1146. <!-- placeholder="选择日期"-->
  1147. <!-- :rules="[{ required: true }]"-->
  1148. <!-- formatter="yyyy-MM-dd"-->
  1149. <!-- required-->
  1150. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  1151. <!-- />-->
  1152. <!-- </van-col>-->
  1153. <!-- </van-row>-->
  1154. <!-- </div>-->
  1155. <!-- </template>-->
  1156. <!-- &lt;!&ndash; 申请::现场踏勘 &ndash;&gt;-->
  1157. <!-- <template v-if="formVisible.baseApplyForm.townFormVisible">-->
  1158. <!-- <div class="main_box examine_box" v-if="formVisible.baseApplyForm.townFormVisible">-->
  1159. <!-- <van-row type="flex" justify="space-between" align="center">-->
  1160. <!-- <van-col span="5">现场<br/>踏勘</van-col>-->
  1161. <!-- <van-col span="19">-->
  1162. <!-- <house-location-plan-comp ref="pictureUploadApplying" :uploadDisabled="!formEnabled.baseApplyForm.townFormEnabled" :jsonData="uploadImg.fileList" :proposer-id="uploadImg.proposerId" tableName="t_house_approve_locationplan_options"-->
  1163. <!-- @uploadFileChanged="(x) => {this.uploadImg.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImg.removeFileList = x;}"-->
  1164. <!-- />-->
  1165. <!-- <van-row>-->
  1166. <!-- <van-col span="12"><van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveLocationplanOptions.surveyPersonnel" label="踏勘" placeholder="现场踏勘人员" input-align="left" label-width="auto"/></van-col>-->
  1167. <!-- <van-col span="12">-->
  1168. <!-- <field-date-picker-->
  1169. <!-- v-model="applicationDetail.tHouseApproveLocationplanOptions.suveyTime"-->
  1170. <!-- label=""-->
  1171. <!-- placeholder="选择日期"-->
  1172. <!-- :rules="[{ required: true }]"-->
  1173. <!-- formatter="yyyy-MM-dd"-->
  1174. <!-- required-->
  1175. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  1176. <!-- />-->
  1177. <!-- </van-col>-->
  1178. <!-- </van-row>-->
  1179. <!-- <van-row>-->
  1180. <!-- <van-col span="12"><van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveLocationplanOptions.cartographer" label="制图" placeholder="制图人" input-align="left" label-width="auto"/></van-col>-->
  1181. <!-- <van-col span="12">-->
  1182. <!-- <field-date-picker-->
  1183. <!-- v-model="applicationDetail.tHouseApproveLocationplanOptions.cartographicTime"-->
  1184. <!-- label=""-->
  1185. <!-- placeholder="选择日期"-->
  1186. <!-- :rules="[{ required: true }]"-->
  1187. <!-- formatter="yyyy-MM-dd"-->
  1188. <!-- required-->
  1189. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  1190. <!-- />-->
  1191. <!-- </van-col>-->
  1192. <!-- </van-row>-->
  1193. <!-- </van-col>-->
  1194. <!-- </van-row>-->
  1195. <!-- </div>-->
  1196. <!-- </template>-->
  1197. </div>
  1198. </template>
  1199. <template v-if="selectedTabName == 2 && formVisible.acceptingVisible"> <!-- 验收申请 -->
  1200. <template v-if="formVisible.acceptingForm.baseFormVisible">
  1201. <div :class="active == 2 ? '' : 'noModify'">
  1202. <p class="topTit">农村宅基地和建房(规划许可)验收意见表</p>
  1203. <div class="main_box check-box">
  1204. <van-field required readonly v-model="applicationDetail.sqhhzxm" label="申请户主姓名" placeholder="申请户主姓名" input-align="right" label-width="auto"/>
  1205. <van-field required readonly v-model="applicationDetail.sqhhzsfzh" label="身份证号" placeholder="身份证号" input-align="right" label-width="auto"/>
  1206. <!-- <van-field required readonly v-model="applicationDetail.tHouseApplyEnd.location" label="用地建房位置" placeholder="用地建房位置" input-align="right" label-width="auto"/>-->
  1207. <van-field required readonly v-model="applicationDetail.ydjfys.xkzh" label="乡村建设规划许可证号" placeholder="乡村建设规划许可证号" input-align="right" label-width="auto"/>
  1208. <van-field required readonly v-model="applicationDetail.ydjfys.pzsh" label="农村宅基地批准书号" placeholder="农村宅基地批准书号" input-align="right" label-width="auto"/>
  1209. <field-date-picker
  1210. v-model="applicationDetail.ydjfys.kgrq"
  1211. label="开工日期"
  1212. placeholder="选择开工日期"
  1213. :rules="[{ required: true }]"
  1214. formatter="yyyy-MM-dd"
  1215. required
  1216. :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1217. />
  1218. <field-date-picker
  1219. v-model="applicationDetail.ydjfys.jgrq"
  1220. label="竣工日期"
  1221. placeholder="选择竣工日期"
  1222. :rules="[{ required: true }]"
  1223. formatter="yyyy-MM-dd"
  1224. required
  1225. :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1226. />
  1227. <!-- <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyEnd.houseCertificateNo" label="权属证书号(不动产)" placeholder="权属证书号(不动产)" input-align="right" label-width="auto" :rules="[{ required: true }]"/>-->
  1228. <!-- <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyEnd.landCertificateNo" label="权属证书号(宅基地)" placeholder="权属证书号(宅基地)" input-align="right" label-width="auto" :rules="[{ required: true }]"/>-->
  1229. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.pzzjdmj" label-width="auto" label="批准宅基地面积" placeholder="批准宅基地面积" input-align="right" type="number" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>
  1230. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.syzjdmj" label="实用宅基地面积面积" placeholder="实用宅基地面积面积" input-align="right" label-width="auto" type="number" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>
  1231. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.pzfjzdmj" label="批准房基占地面积" placeholder="批准房基占地面积" input-align="right" label-width="auto" type="number" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>
  1232. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.sjfjzdmj" label="实际房基占地面积" placeholder="实际房基占地面积" input-align="right" label-width="auto" type="number" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>
  1233. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.pjcg" label="批建高度" placeholder="批建高度" input-align="right" label-width="auto" type="number" :rules="[{ required: true }]"><template #right-icon>m</template></van-field>
  1234. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.pjcs" label="批建层数" placeholder="批建层数" input-align="right" label-width="auto" type="digit" :rules="[{ required: true }]"><template #right-icon>层</template></van-field>
  1235. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.jggd" label="竣工高度" placeholder="竣工高度" input-align="right" label-width="auto" type="number" :rules="[{ required: true }]"><template #right-icon>m</template></van-field>
  1236. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.jgcs" label="竣工层数" placeholder="竣工层数" input-align="right" label-width="auto" type="digit" :rules="[{ required: true }]"><template #right-icon>层</template></van-field>
  1237. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.zjzmj" label="总建筑面积" placeholder="总建筑面积" input-align="right" type="number" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>
  1238. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.fwzjmj" label="其中: 房屋建筑面积" placeholder="房屋建筑面积" input-align="right" label-width="auto" type="number" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>
  1239. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.ptfsssjzmj" label="配套附属设施建筑面积" placeholder="配套附属设施建筑面积" input-align="right" label-width="auto" type="number" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>
  1240. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.zfzj" label="住房造价" placeholder="住房造价" input-align="right" type="number" :rules="[{ required: true }]"><template #right-icon>万元</template></van-field>
  1241. <field-select
  1242. v-model="applicationDetail.ydjfys.jglx"
  1243. label="结构类型"
  1244. value-key="dictLabel"
  1245. data-key="dictValue"
  1246. placeholder="选择结构类型"
  1247. :rules="[{ required: true }]"
  1248. required
  1249. :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1250. remote-url="/system/dict/data/type/design_paper"
  1251. :on-remote-response="'data'"
  1252. />
  1253. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.wlmys" label="外立面颜色" placeholder="外立面颜色" input-align="right" label-width="auto" :rules="[{ required: true }]"/>
  1254. <field-select
  1255. v-model="applicationDetail.ydjfys.cjhtzjdqk"
  1256. label="旧宅基地退还情况"
  1257. value-key="dictLabel"
  1258. data-key="dictValue"
  1259. placeholder="选择旧宅基地退还情况"
  1260. :rules="[{ required: true }]"
  1261. required
  1262. :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1263. remote-url="/system/dict/data/type/old_house_status"
  1264. :on-remote-response="'data'"
  1265. />
  1266. <field-radio
  1267. v-model="applicationDetail.ydjfys.sfxszfjsbzzc"
  1268. label="是否享受住房建设补助政策"
  1269. value-key="dictLabel"
  1270. data-key="dictValue"
  1271. :rules="[{ required: true }]"
  1272. required
  1273. :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1274. :columns="yesNoOptions"
  1275. />
  1276. <field-select
  1277. v-if="applicationDetail.ydjfys.sfxszfjsbzzc === '1'"
  1278. v-model="applicationDetail.ydjfys.zfjsbzzc"
  1279. label="住房建设补助政策"
  1280. value-key="dictLabel"
  1281. data-key="dictValue"
  1282. placeholder="选择住房建设补助政策"
  1283. :rules="[{ required: true }]"
  1284. required
  1285. :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1286. remote-url="/system/dict/data/type/house_subsidy_policy"
  1287. :on-remote-response="'data'"
  1288. />
  1289. <!-- <van-cell title="农房验收位置"></van-cell>-->
  1290. <!-- <div class="mapBox">-->
  1291. <!-- <common-map ref="pointDarwAcceptanceMap" style="height:200px;"-->
  1292. <!-- :allowDraw="formEnabled.acceptingForm.baseFormEnabled"-->
  1293. <!-- @drawReseted="onAcceptanceMapDrawReseted"-->
  1294. <!-- @drawFinished="onMapDrawFinished"-->
  1295. <!-- >-->
  1296. <!-- </common-map>-->
  1297. <!-- </div>-->
  1298. <!-- <van-field rows="3" :autosize="true" type="textarea" readonly label="备注" label-width="auto" placeholder="" input-align="left" value="1.村民旧宅基地属于应退未退的,不得发放本验收意见表。-->
  1299. <!--2.本验收意见表是向不动产登记部门申请办理不动产登记的要件之一,请妥善保管。"></van-field>-->
  1300. <div class="main_box examine_box">
  1301. <van-row type="flex" justify="space-between" align="center">
  1302. <van-col span="5">竣工<br/>平面<br/>简图<br/>
  1303. (标注<br/>长宽<br/>及四至)</van-col>
  1304. <van-col span="19">
  1305. <MultiImageUploadComp :value="applicationDetail.ydjfys.jgpmjt" :uploadDisabled="!formEnabled.acceptingForm.baseFormEnabled" @fileUpdate="fileUpdatePmt"/>
  1306. <van-field required :readonly="!this.formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.ydjfys.jgpmjtjbr" placeholder="经办人" label="经办人" input-align="left" :rules="[{ required: true }]"/>
  1307. </van-col>
  1308. </van-row>
  1309. </div>
  1310. <div class="main_box examine_box" v-if="isYiLong()">
  1311. <van-row type="flex" justify="space-between" align="center">
  1312. <van-col span="5">住房<br/>竣工<br/>验收<br/>内容</van-col>
  1313. <van-col span="19">
  1314. <field-checkbox
  1315. v-model="applicationDetail.ydjfys.qtysnr.sfywcgcsjhhtyddgxnr"
  1316. label="1.是否已完成工程设计和合同约定的各项内容"
  1317. true-label="1"
  1318. false-label="0"
  1319. :rules="[{ required: true }]"
  1320. :readonly="!formEnabled.ysnrEnable"
  1321. label-width="5.6rem"
  1322. />
  1323. <field-checkbox
  1324. v-model="applicationDetail.ydjfys.qtysnr.clrdwgzfzlzcsfhhg"
  1325. label="2.承揽人对完工住房质量自查是否合格"
  1326. true-label="1"
  1327. false-label="0"
  1328. :rules="[{ required: true }]"
  1329. :readonly="!formEnabled.ysnrEnable"
  1330. label-width="5.6rem"
  1331. />
  1332. <field-checkbox
  1333. v-model="applicationDetail.ydjfys.qtysnr.sfysgjlzl"
  1334. label="3.是否有施工记录资料"
  1335. true-label="1"
  1336. false-label="0"
  1337. :rules="[{ required: true }]"
  1338. :readonly="!formEnabled.ysnrEnable"
  1339. label-width="5.6rem"
  1340. />
  1341. <field-checkbox
  1342. v-model="applicationDetail.ydjfys.qtysnr.jfcmhclrsfyjgtqsnczfzlbxs"
  1343. label="4.建房村民和承揽人是否已经共同签署农村住房质量保修书"
  1344. true-label="1"
  1345. false-label="0"
  1346. :rules="[{ required: true }]"
  1347. :readonly="!formEnabled.ysnrEnable"
  1348. label-width="5.6rem"
  1349. />
  1350. <field-checkbox
  1351. v-model="applicationDetail.ydjfys.qtysnr.zfcxjsxzzgbmhxzrmzfzlzgdwtsfqbzgwb"
  1352. label="5.住房城乡建设行政主管部门或乡(镇)人民政府责令整改的问题是否全部整改完毕"
  1353. true-label="1"
  1354. false-label="0"
  1355. :rules="[{ required: true }]"
  1356. :readonly="!formEnabled.ysnrEnable"
  1357. label-width="5.6rem"
  1358. />
  1359. <field-checkbox
  1360. v-model="applicationDetail.ydjfys.qtysnr.jzfmsfysjtjbyz"
  1361. label="6.建筑风貌是否与设计图基本一致"
  1362. true-label="1"
  1363. false-label="0"
  1364. :rules="[{ required: true }]"
  1365. :readonly="!formEnabled.ysnrEnable"
  1366. label-width="5.6rem"
  1367. />
  1368. <field-checkbox
  1369. v-model="applicationDetail.ydjfys.qtysnr.flfggddqtystjwcqk"
  1370. label="7.法律、法规规定的其他验收条件完成情况"
  1371. true-label="1"
  1372. false-label="0"
  1373. :rules="[{ required: true }]"
  1374. :readonly="!formEnabled.ysnrEnable"
  1375. label-width="5.6rem"
  1376. />
  1377. </van-col>
  1378. </van-row>
  1379. <div class="main_box examine_box">
  1380. <van-row type="flex" justify="space-between" align="center">
  1381. <van-col span="5">承揽人<br/>(姓名/<br/>单位/<br/>职务)</van-col>
  1382. <van-col span="19">
  1383. <van-field required :readonly="!formEnabled.ysnrEnable" v-model="applicationDetail.ydjfys.qtysnr.clr" label="签字" placeholder="承揽人签字" input-align="right" label-width="auto" :rules="[{ required: true }]"/>
  1384. <!-- </van-cell>-->
  1385. <field-date-picker
  1386. v-model="applicationDetail.ydjfys.qtysnr.clrsj"
  1387. label="签字日期"
  1388. placeholder="选择日期"
  1389. :rules="[{ required: true }]"
  1390. formatter="yyyy-MM-dd"
  1391. required
  1392. :readonly="!formEnabled.ysnrEnable"
  1393. />
  1394. </van-col>
  1395. </van-row>
  1396. </div>
  1397. <div class="main_box examine_box">
  1398. <van-row type="flex" justify="space-between" align="center">
  1399. <van-col span="5">第三服务方</van-col>
  1400. <van-col span="19">
  1401. <van-field required :readonly="!formEnabled.ysnrEnable" v-model="applicationDetail.ydjfys.qtysnr.dsfwf" label="签字" placeholder="第三服务方签字" input-align="right" label-width="auto" :rules="[{ required: true }]"/>
  1402. <!-- </van-cell>-->
  1403. <field-date-picker
  1404. v-model="applicationDetail.ydjfys.qtysnr.dsfwfsj"
  1405. label="签字日期"
  1406. placeholder="选择日期"
  1407. :rules="[{ required: true }]"
  1408. formatter="yyyy-MM-dd"
  1409. required
  1410. :readonly="!formEnabled.ysnrEnable"
  1411. />
  1412. </van-col>
  1413. </van-row>
  1414. </div>
  1415. <div class="main_box examine_box">
  1416. <van-row type="flex" justify="space-between" align="center">
  1417. <van-col span="5">专业技<br/>术人员)</van-col>
  1418. <van-col span="19">
  1419. <van-field required :readonly="!formEnabled.ysnrEnable" v-model="applicationDetail.ydjfys.qtysnr.zyjsry" label="签字" placeholder="专业技术人员签字" input-align="right" label-width="auto" :rules="[{ required: true }]"/>
  1420. <!-- </van-cell>-->
  1421. <field-date-picker
  1422. v-model="applicationDetail.ydjfys.qtysnr.zyjsrysj"
  1423. label="签字日期"
  1424. placeholder="选择日期"
  1425. :rules="[{ required: true }]"
  1426. formatter="yyyy-MM-dd"
  1427. required
  1428. :readonly="!formEnabled.ysnrEnable"
  1429. />
  1430. </van-col>
  1431. </van-row>
  1432. </div>
  1433. </div>
  1434. </div>
  1435. </div>
  1436. </template>
  1437. <template v-if="formVisible.acceptingForm.agricultureFormVisible">
  1438. <div class="main_box examine_box">
  1439. <van-row type="flex" justify="space-between" align="center">
  1440. <van-col span="5">{{applicationDetail.ydjfys.nyncbmmc}}意见</van-col>
  1441. <van-col span="19">
  1442. <van-field required :readonly="!formEnabled.acceptingForm.agricultureFormEnabled" rows="2" v-model="applicationDetail.ydjfys.nyncbmysyj" :autosize="true" type="textarea" placeholder="乡镇农业农村部门意见" :rules="[{ required: true }]"/>
  1443. <van-cell title="负责人:" :rules="[{ required: true }]">
  1444. <van-image
  1445. width="100"
  1446. height="50"
  1447. :readonly="!formEnabled.acceptingForm.agricultureFormEnabled"
  1448. v-if="applicationDetail.ydjfys.nyncbmysjbrxm !='' && applicationDetail.ydjfys.nyncbmysjbrxm !=null
  1449. && applicationDetail.ydjfys.nyncbmysjbrxm.endsWith('png')"
  1450. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfys.nyncbmysjbrxm"
  1451. @click="formEnabled.acceptingForm.agricultureFormEnabled && searchCommit('ydjfys.nyncbmysjbrxm')"
  1452. ></van-image>
  1453. <div v-if="applicationDetail.ydjfys.nyncbmysjbrxm !='' && applicationDetail.ydjfys.nyncbmysjbrxm !=null
  1454. && !applicationDetail.ydjfys.nyncbmysjbrxm.endsWith('png')">{{applicationDetail.ydjfys.nyncbmysjbrxm}}</div>
  1455. </van-cell>
  1456. <!-- <van-cell title="现场照片:">-->
  1457. <!-- <house-location-plan-comp ref="tHouseApplyEndNongye" :uploadDisabled="!formEnabled.acceptingForm.agricultureFormEnabled" :jsonData="uploadImgEndNongyePlan.fileList" :proposer-id="uploadImgTown.proposerId" tableName="t_house_apply_end_nongye_options"-->
  1458. <!-- @uploadFileChanged="(x) => {this.uploadImgEndNongyePlan.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgEndNongyePlan.removeFileList = x;}"-->
  1459. <!-- />-->
  1460. <!-- </van-cell>-->
  1461. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.acceptingForm.agricultureFormEnabled">-->
  1462. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApplyEnd.nongyeGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApplyEndNongye')">定位当前位置</van-button>-->
  1463. <!-- </van-cell>-->
  1464. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.acceptingForm.agricultureFormEnabled">-->
  1465. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApplyEnd.nongyeGeom !='' || applicationDetail.tHouseApplyEnd.nongyeGeom !=null" v-model="applicationDetail.tHouseApplyEnd.nongyeGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApplyEndNongye')">查看现场位置</van-button>-->
  1466. <!-- </van-cell>-->
  1467. <field-date-picker
  1468. v-model="applicationDetail.ydjfys.nyncbmyssj"
  1469. label="审批日期"
  1470. placeholder="选择日期"
  1471. :rules="[{ required: true }]"
  1472. formatter="yyyy-MM-dd"
  1473. required
  1474. :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled"
  1475. />
  1476. </van-col>
  1477. </van-row>
  1478. <div id="showInfo"></div>
  1479. </div>
  1480. </template>
  1481. <template v-if="formVisible.acceptingForm.nature_resourceFormVisible">
  1482. <div class="main_box examine_box">
  1483. <van-row type="flex" justify="space-between" align="center">
  1484. <van-col span="5">{{applicationDetail.ydjfys.zrzybmmc}}意见</van-col>
  1485. <van-col span="19">
  1486. <van-field required :readonly="!formEnabled.acceptingForm.nature_resourceFormEnabled" rows="2" v-model="applicationDetail.ydjfys.zrzybmysyj" :autosize="true" type="textarea" placeholder="乡镇自然资源部门意见" :rules="[{ required: true }]"/>
  1487. <van-cell title="负责人:" :rules="[{ required: true }]">
  1488. <van-image
  1489. width="100"
  1490. height="50"
  1491. :readonly="!formEnabled.acceptingForm.nature_resourceFormEnabled"
  1492. v-if="applicationDetail.ydjfys.zrzybmysjbrxm !='' && applicationDetail.ydjfys.zrzybmysjbrxm !=null
  1493. && applicationDetail.ydjfys.zrzybmysjbrxm.endsWith('png')"
  1494. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfys.zrzybmysjbrxm"
  1495. ></van-image>
  1496. <div v-if="applicationDetail.ydjfys.zrzybmysjbrxm !='' && applicationDetail.ydjfys.zrzybmysjbrxm !=null
  1497. && !applicationDetail.ydjfys.zrzybmysjbrxm.endsWith('png')">{{applicationDetail.ydjfys.zrzybmysjbrxm}}</div>
  1498. </van-cell>
  1499. <!-- <van-cell title="现场照片:">-->
  1500. <!-- <house-location-plan-comp ref="tHouseApplyEndNature" :uploadDisabled="!formEnabled.acceptingForm.nature_resourceFormEnabled" :jsonData="uploadImgEndNaturePlan.fileList" :proposer-id="uploadImgEndNaturePlan.proposerId" tableName="t_house_apply_end_nature_options"-->
  1501. <!-- @uploadFileChanged="(x) => {this.uploadImgEndNaturePlan.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgEndNaturePlan.removeFileList = x;}"-->
  1502. <!-- />-->
  1503. <!-- </van-cell>-->
  1504. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.acceptingForm.nature_resourceFormEnabled">-->
  1505. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApplyEnd.natureGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApplyEndNature')">定位当前位置</van-button>-->
  1506. <!-- </van-cell>-->
  1507. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.acceptingForm.nature_resourceFormEnabled">-->
  1508. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApplyEnd.natureGeom !='' || applicationDetail.tHouseApplyEnd.natureGeom !=null" v-model="applicationDetail.tHouseApplyEnd.natureGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApplyEndNature')">查看现场位置</van-button>-->
  1509. <!-- </van-cell>-->
  1510. <field-date-picker
  1511. v-model="applicationDetail.ydjfys.zrzybmyssj"
  1512. label="审批日期"
  1513. placeholder="选择日期"
  1514. :rules="[{ required: true }]"
  1515. formatter="yyyy-MM-dd"
  1516. required
  1517. :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled"
  1518. />
  1519. </van-col>
  1520. </van-row>
  1521. </div>
  1522. </template>
  1523. <template v-if="formVisible.acceptingForm.buildingFormVisible">
  1524. <div class="main_box examine_box">
  1525. <van-row type="flex" justify="space-between" align="center">
  1526. <van-col span="5">{{applicationDetail.ydjfys.zfcxjsbmmc}}意见</van-col>
  1527. <van-col span="19">
  1528. <van-field required :readonly="!formEnabled.acceptingForm.buildingFormEnabled" v-model="applicationDetail.ydjfys.zfcxjsbmysyj" rows="2" autosize type="textarea" placeholder="审批意见" :rules="[{ required: true }]"/>
  1529. <van-cell title="负责人:" :rules="[{ required: true }]">
  1530. <van-image
  1531. width="100"
  1532. height="50"
  1533. :readonly="!formEnabled.acceptingForm.buildingFormEnabled"
  1534. v-if="applicationDetail.ydjfys.zfcxjsbmysjbrxm !='' && applicationDetail.ydjfys.zfcxjsbmysjbrxm !=null
  1535. && applicationDetail.ydjfys.zfcxjsbmysjbrxm.endsWith('png')"
  1536. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfys.zfcxjsbmysjbrxm"
  1537. ></van-image>
  1538. <div v-if="applicationDetail.ydjfys.zfcxjsbmysjbrxm !='' && applicationDetail.ydjfys.zfcxjsbmysjbrxm !=null
  1539. && !applicationDetail.ydjfys.zfcxjsbmysjbrxm.endsWith('png')">{{applicationDetail.ydjfys.zfcxjsbmysjbrxm}}</div>
  1540. </van-cell>
  1541. <!-- <van-cell title="现场照片:">-->
  1542. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveOther" :uploadDisabled="!formEnabled.baseApplyForm.buildingFormEnabled" :jsonData="uploadImgOther.fileList" :proposer-id="uploadImgOther.proposerId" tableName="t_house_approve_other_options"-->
  1543. <!-- @uploadFileChanged="(x) => {this.uploadImgOther.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgOther.removeFileList = x;}"-->
  1544. <!-- />-->
  1545. <!-- </van-cell>-->
  1546. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.buildingFormEnabled">-->
  1547. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveOtherOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveOther')">定位当前位置</van-button>-->
  1548. <!-- </van-cell>-->
  1549. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.buildingFormEnabled">-->
  1550. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveOtherOptions.theGeomPoint !='' || applicationDetail.tHouseApproveOtherOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveOtherOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveOther')">查看现场位置</van-button>-->
  1551. <!-- </van-cell>-->
  1552. <field-date-picker
  1553. v-model="applicationDetail.ydjfys.zfcxjsbmyssj"
  1554. label="审批日期"
  1555. placeholder="选择日期"
  1556. :rules="[{ required: true }]"
  1557. formatter="yyyy-MM-dd"
  1558. required
  1559. :readonly="!formEnabled.acceptingForm.buildingFormEnabled"
  1560. />
  1561. </van-col>
  1562. </van-row>
  1563. </div>
  1564. </template>
  1565. <template v-if="formVisible.acceptingForm.townFormVisible">
  1566. <div class="main_box examine_box">
  1567. <van-row type="flex" justify="space-between" align="center">
  1568. <van-col span="5">乡镇<br/>政府<br/>验收<br/>意见</van-col>
  1569. <van-col span="19">
  1570. <van-field required :readonly="!formEnabled.acceptingForm.townFormEnabled" rows="2" v-model="applicationDetail.ydjfys.xzzfysyj" :autosize="true" type="textarea" placeholder="乡镇政府验收意见" :rules="[{ required: true }]"/>
  1571. <van-cell title="负责人:" :rules="[{ required: true }]">
  1572. <van-image
  1573. width="100"
  1574. height="50"
  1575. :readonly="!formEnabled.acceptingForm.townFormEnabled"
  1576. v-if="applicationDetail.ydjfys.xzzfysjbrxm !='' && applicationDetail.ydjfys.xzzfysjbrxm !=null
  1577. && applicationDetail.ydjfys.xzzfysjbrxm.endsWith('png')"
  1578. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfys.xzzfysjbrxm"
  1579. ></van-image>
  1580. <div v-if="applicationDetail.ydjfys.xzzfysjbrxm !='' && applicationDetail.ydjfys.xzzfysjbrxm !=null
  1581. && !applicationDetail.ydjfys.xzzfysjbrxm.endsWith('png')">{{applicationDetail.ydjfys.xzzfysjbrxm}}</div>
  1582. </van-cell>
  1583. <!-- <van-cell title="现场照片:">-->
  1584. <!-- <house-location-plan-comp ref="tHouseApplyEndZhen" :uploadDisabled="!formEnabled.acceptingForm.townFormEnabled" :jsonData="uploadImgEndZhenPlan.fileList" :proposer-id="uploadImgEndZhenPlan.proposerId" tableName="t_house_apply_end_zhen_options"-->
  1585. <!-- @uploadFileChanged="(x) => {this.uploadImgEndZhenPlan.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgEndZhenPlan.removeFileList = x;}"-->
  1586. <!-- />-->
  1587. <!-- </van-cell>-->
  1588. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.acceptingForm.townFormEnabled">-->
  1589. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApplyEnd.zhenGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApplyEndZhen')">定位当前位置</van-button>-->
  1590. <!-- </van-cell>-->
  1591. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.acceptingForm.townFormEnabled">-->
  1592. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApplyEnd.zhenGeom !='' || applicationDetail.tHouseApplyEnd.zhenGeom !=null" v-model="applicationDetail.tHouseApplyEnd.zhenGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApplyEndZhen')">查看现场位置</van-button>-->
  1593. <!-- </van-cell>-->
  1594. <field-date-picker
  1595. v-model="applicationDetail.ydjfys.xzzfyssj"
  1596. label="审批日期"
  1597. placeholder="选择日期"
  1598. :rules="[{ required: true }]"
  1599. formatter="yyyy-MM-dd"
  1600. required
  1601. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  1602. />
  1603. </van-col>
  1604. </van-row>
  1605. </div>
  1606. <van-field rows="3" :autosize="true" type="textarea" label="备注" label-width="auto" placeholder="备注" :readonly="!formEnabled.acceptingForm.townFormEnabled" v-model="applicationDetail.ydjfys.bz" input-align="left"></van-field>
  1607. </template>
  1608. </template>
  1609. </van-form>
  1610. </div>
  1611. <!-- 底部按钮 -->
  1612. <van-goods-action style="z-index: 999;">
  1613. <van-goods-action-icon icon="label-o" text="附件" @click="openAttachment" color="#1D6FE9" />
  1614. <template v-if="formVisible.editVisible">
  1615. <van-goods-action-button type="info" text="保存" @click="onSubmit('add')" :disabled="!formEnabled.baseApplyEnabled" v-if="formEnabled.baseApplyEnabled"/>
  1616. <van-goods-action-button type="info" :text="formEnabled.baseApplyEnabled ? '保存并提交' : '提交'" @click="onSubmit(formEnabled.baseApplyEnabled ? 'save_and_submit' : 'submit')" :disabled="!formEnabled.submitEnabled"/>
  1617. </template>
  1618. <template v-else-if="formEnabled.landscopeEnabled">
  1619. <van-goods-action-button type="info" text="提交开工" @click="onSubmit('start_and_submit')"/>
  1620. </template>
  1621. <template v-else-if="formEnabled.acceptingEnabled">
  1622. <van-goods-action-button type="info" text="提交验收" @click="onSubmit('end')"/>
  1623. </template>
  1624. <template v-else-if="formVisible.auditVisible">
  1625. <van-goods-action-button type="info" text="同意" @click="onSubmit('agree')"/>
  1626. <van-goods-action-button type="danger" text="驳回" @click="onSubmit('reject')"/>
  1627. </template>
  1628. </van-goods-action>
  1629. <!-- 3组附件 -->
  1630. <van-popup
  1631. v-model="attachmentVisible"
  1632. closeable
  1633. position="top"
  1634. :style="{ height: '61.8%' }"
  1635. :close-on-click-overlay="proposerStatus == 1"
  1636. :lazy-render="false"
  1637. >
  1638. <van-tabs type="card" style="padding-top: 1.35rem;" color="#1D6FE9" :lazy-render="false" v-model="attachmentActive" ref="attachmentDialog">
  1639. <van-tab title="申请" key="0">
  1640. <home-apply-upload-comp
  1641. :businessType="houseApplyUploadComp.businessType"
  1642. :houseApplyStatus="houseApplyUploadComp.homeApplyStatus"
  1643. :processKey="houseApplyUploadComp.processKey"
  1644. :proposerId="houseApplyUploadComp.proposerId"
  1645. :tableName="houseApplyUploadComp.tableName"
  1646. :readonly="houseApplyUploadComp.readonly"
  1647. :userName="sysFarmer.memberName"
  1648. :full="houseApplyUploadComp.full"
  1649. @uploadFinished="onUploadFinished"
  1650. >
  1651. </home-apply-upload-comp>
  1652. </van-tab>
  1653. <van-tab title="开工" key="1" :disabled="active < 1">
  1654. <home-apply-upload-comp
  1655. :business-type="houseApplyUploadCompStart.businessType"
  1656. :house-apply-status="houseApplyUploadCompStart.homeApplyStatus"
  1657. :process-key="houseApplyUploadCompStart.processKey"
  1658. :proposer-id="houseApplyUploadCompStart.proposerId"
  1659. :table-name="houseApplyUploadCompStart.tableName"
  1660. :readonly="houseApplyUploadCompStart.readonly"
  1661. :full="houseApplyUploadCompStart.full"
  1662. >
  1663. </home-apply-upload-comp>
  1664. </van-tab>
  1665. <van-tab title="验收" key="2" :disabled="active < 2">
  1666. <home-apply-upload-comp
  1667. :business-type="houseApplyUploadCompEnd.businessType"
  1668. :house-apply-status="houseApplyUploadCompEnd.homeApplyStatus"
  1669. :process-key="houseApplyUploadCompEnd.processKey"
  1670. :proposer-id="houseApplyUploadCompEnd.proposerId"
  1671. :table-name="houseApplyUploadCompEnd.tableName"
  1672. :readonly="houseApplyUploadCompEnd.readonly"
  1673. :full="houseApplyUploadCompEnd.full"
  1674. >
  1675. </home-apply-upload-comp>
  1676. </van-tab>
  1677. </van-tabs>
  1678. </van-popup>
  1679. <!-- 当前流程 -->
  1680. <van-popup
  1681. v-model="flowVisible"
  1682. position="top"
  1683. >
  1684. <div class="flow_main_box">
  1685. <van-row>
  1686. <van-col span="8"><p class="tit" :style="{'background-color': applicationDetail.proposerActiveIndex >= 0 ? '' : '#ABABAB'}">01 申请</p></van-col>
  1687. <van-col span="8"><p class="tit" :style="{'background-color': applicationDetail.startActiveIndex >= 0 ? '' : '#ABABAB'}">02 开工</p></van-col>
  1688. <van-col span="8"><p class="tit" :style="{'background-color': applicationDetail.endActiveIndex >= 0 ? '' : '#ABABAB'}">03 验收</p></van-col>
  1689. </van-row>
  1690. <van-row>
  1691. <van-col span="8">
  1692. <van-steps direction="vertical" active-color="#1D6FE9" :active="applicationDetail.proposerActiveIndex" style="padding-left: 0.853333rem;">
  1693. <van-step v-for="(item,index) in applicationDetail.applyStepList" :key="index">{{item}}</van-step>
  1694. </van-steps>
  1695. </van-col>
  1696. <van-col span="8">
  1697. <van-steps direction="vertical" active-color="#1D6FE9" :active="applicationDetail.startActiveIndex" style="padding-left: 0.853333rem;">
  1698. <van-step v-for="(item,index) in applicationDetail.startStepList" :key="index">{{item}}</van-step>
  1699. </van-steps>
  1700. </van-col>
  1701. <van-col span="8">
  1702. <van-steps direction="vertical" active-color="#1D6FE9" :active="applicationDetail.endActiveIndex" style="padding-left: 0.853333rem;">
  1703. <van-step v-for="(item,index) in applicationDetail.endStepList" :key="index">{{item}}</van-step>
  1704. </van-steps>
  1705. </van-col>
  1706. </van-row>
  1707. </div>
  1708. </van-popup>
  1709. <van-popup v-model="showesign" position="bottom" closeable
  1710. close-icon="close">
  1711. <van-row style="margin:0 10%">
  1712. <p class="title" style="margin:20px 0;position:relative;padding-left:20px;font-size:0.5rem">电子签名</p>
  1713. </van-row>
  1714. <van-row style="margin: 0 5% 5% 5%;border:1px solid #BFBFBF;">
  1715. <vue-esign
  1716. ref="esign"
  1717. class="mySign"
  1718. :height="200"
  1719. :isCrop="isCrop"
  1720. :lineWidth="lineWidth"
  1721. :lineColor="lineColor"
  1722. :bgColor.sync="bgColor"
  1723. v-if="!resultImg"
  1724. />
  1725. <img :src="resultImg" alt="" width="100%" height="100%" v-if="resultImg"/>
  1726. </van-row>
  1727. <van-row type="flex" justify="center" style="margin-bottom:20px;"> <!--v-if="!formEnabled.acceptingForm.townFormEnabled"-->
  1728. <van-col span="6" style="text-align:center;"><van-button type="primary" round size="small" @click="handleReset">清空画板</van-button></van-col>
  1729. <van-col span="6" style="text-align:center;"><van-button type="primary" round size="small" @click="handleGenerate">保存提交</van-button></van-col>
  1730. </van-row>
  1731. </van-popup>
  1732. </div>
  1733. </template>
  1734. <script>
  1735. import HomeApplyUploadComp from "@/components/home/HomeApplyUploadComp";
  1736. import HouseLocationPlanComp from "@/components/house/HouseLocationPlanComp";
  1737. import FieldSelect from "@/components/form/FieldSelect";
  1738. import { getHomeapplyydjfsqStatus,listHomeapplytype,getQueryLand, saveHomeBaseInfo , getHomeMembers , allInformationWLHT, checkDuplicateBuilding, checkDuplicateBuildingQuery, customSubmitWLHT, submitStartWLHT, updateStart, submitEndWLHT, getWorkflow ,selectProposerNh,attach} from "@/api/sunVillage_info/homestead/application";
  1739. import CommonMap from "@/components/house/CommonMap";
  1740. import FieldDatePicker from "@/components/form/FieldDatePicker";
  1741. import FieldRadio from "@/components/form/FieldRadio";
  1742. import FieldCheckbox from "@/components/form/FieldCheckbox";
  1743. import MultiImageUploadComp from "@/components/house/MultiImageUploadComp"
  1744. import {formatDate} from "element-ui/src/utils/date-util.js";
  1745. import request from '@/utils/request'
  1746. import {Notify, Dialog} from "vant";
  1747. import {uploadFile} from "@/api/homesteadSurvey/zjdzd";
  1748. import {updateOpretion} from "@/api/onlineHome/homestead/application";
  1749. import {REGION} from '@/utils/global';
  1750. import Cookies from "js-cookie";
  1751. import axios from "axios";
  1752. // 意图
  1753. const PROPOSER_VIEW = 1;
  1754. const PROPOSER_EDIT = 2;
  1755. const PROPOSER_ADD = 3;
  1756. // 阶段
  1757. const PROPOSER_STAGE_BASE_APPLY = 0;
  1758. const PROPOSER_STAGE_START = 1;
  1759. const PROPOSER_STAGE_END = 2;
  1760. // 工作流名称
  1761. const PROPOSER_STAGE_BASE_APPLY_ACTIVITY = 'home_apply';
  1762. const PROPOSER_STAGE_START_ACTIVITY = 'home_start';
  1763. const PROPOSER_STAGE_END_ACTIVITY = 'home_check';
  1764. // 附件表名
  1765. const PROPOSER_STAGE_BASE_APPLY_TABLE = 't_homeapply_ydjfsq';
  1766. const PROPOSER_STAGE_START_TABLE = 't_homeapply_ydjfkg';
  1767. const PROPOSER_STAGE_END_TABLE = 't_homeapply_ydjfys';
  1768. // 其他
  1769. const PROPOSER_MODULE = 'home';
  1770. export default {
  1771. name: "homeApplication",
  1772. components: {
  1773. FieldCheckbox,
  1774. FieldRadio, HomeApplyUploadComp, FieldDatePicker, CommonMap, FieldSelect, HouseLocationPlanComp,MultiImageUploadComp},
  1775. data() {
  1776. return {
  1777. // 当前流程步骤
  1778. active: 0,
  1779. // 申请ID
  1780. id: '',
  1781. // 表单数据
  1782. applicationDetail: {},
  1783. // 当前家庭成员展开
  1784. activeNames:['1'],
  1785. showNhxx:false,
  1786. showTyt:false,
  1787. wztUpdate:false,
  1788. tytzName:null,
  1789. //农户信息集合
  1790. nhxxList:[],
  1791. zjddmColumns:[],
  1792. zjdzdxxList:[],
  1793. zjdzdxxDetailed:{
  1794. zdszd:null,
  1795. zdszn:null,
  1796. zdszx:null,
  1797. zdszb:null
  1798. },
  1799. tytzList: [],
  1800. jflxColumns:[],
  1801. zjdzdxxDetailedShow:false,
  1802. deptId:null,
  1803. sysFarmer:{memberName:"",dept:null},
  1804. showZjddm:null,
  1805. region:null,
  1806. showZjdzk:false,
  1807. // 当前显示流程
  1808. selectedTabName: 0,
  1809. processKeyField: null,
  1810. // 表单意图
  1811. proposerStatus: PROPOSER_VIEW,
  1812. // 显示控制
  1813. formVisible: {
  1814. baseApplyFormVisible: true,
  1815. editVisible: false,
  1816. baseApplyForm: {
  1817. baseFormVisible: true,
  1818. homesteadFormVisible: false,
  1819. groupFormVisible: false,
  1820. villageFormVisible: false,
  1821. townFormVisible: false,
  1822. agricultureFormVisible: false,
  1823. buildingFormVisible: false,
  1824. nature_resourceFormVisible: false,
  1825. homesteadForm: {
  1826. keepVisible: false, // 是否显示宅基地保留输入
  1827. otherVisible: false, // 是否显示宅基地其他输入
  1828. }
  1829. },
  1830. landscopeVisible: false,
  1831. landscopeForm: {
  1832. baseFormVisible: false,
  1833. nature_resourceFormVisible: false,
  1834. },
  1835. acceptingVisible: false,
  1836. acceptingForm: {
  1837. baseFormVisible: false,
  1838. townFormVisible: false,
  1839. agricultureFormVisible: false,
  1840. nature_resourceFormVisible: false,
  1841. buildingFormVisible: false,
  1842. },
  1843. auditVisible: false,
  1844. },
  1845. // 表单启用控制
  1846. formEnabled: {
  1847. baseApplyEnabled: false,
  1848. submitEnabled: false,
  1849. ysnrEnable:false,
  1850. baseApplyForm: {
  1851. baseFormEnabled: false,
  1852. homesteadFormEnabled: false,
  1853. groupFormEnabled: false,
  1854. villageFormEnabled: false,
  1855. townFormEnabled: false,
  1856. agricultureFormEnabled: false,
  1857. buildingFormEnabled: false,
  1858. nature_resourceFormEnabled: false,
  1859. },
  1860. landscopeEnabled: false,
  1861. landscopeForm: {
  1862. baseFormEnabled: false,
  1863. nature_resourceFormEnabled: false,
  1864. },
  1865. acceptingEnabled: false,
  1866. acceptingForm: {
  1867. baseFormEnabled: false,
  1868. townFormEnabled: false,
  1869. agricultureFormEnabled: false,
  1870. nature_resourceFormEnabled: false,
  1871. },
  1872. },
  1873. // 申请附件树
  1874. houseApplyUploadComp: {
  1875. businessType: PROPOSER_MODULE,
  1876. proposerId: null,
  1877. houseApplyStatus: null,
  1878. processKey: PROPOSER_STAGE_BASE_APPLY_ACTIVITY,
  1879. tableName: PROPOSER_STAGE_BASE_APPLY_TABLE,
  1880. attachmentList: [],
  1881. readonly: false,
  1882. full: false,
  1883. },
  1884. // 开工附件树
  1885. houseApplyUploadCompStart: {
  1886. businessType: PROPOSER_MODULE,
  1887. proposerId: null,
  1888. houseApplyStatus: null,
  1889. processKey: PROPOSER_STAGE_START_ACTIVITY,
  1890. tableName: PROPOSER_STAGE_START_TABLE,
  1891. attachmentList: [],
  1892. readonly: false,
  1893. full: false,
  1894. },
  1895. // 验收附件树
  1896. houseApplyUploadCompEnd: {
  1897. businessType: PROPOSER_MODULE,
  1898. proposerId: null,
  1899. houseApplyStatus: null,
  1900. processKey: PROPOSER_STAGE_END_ACTIVITY,
  1901. tableName: PROPOSER_STAGE_END_TABLE,
  1902. attachmentList: [],
  1903. readonly: false,
  1904. full: false,
  1905. },
  1906. currentUserRole: null,
  1907. // 当前位置信息
  1908. tGeoOrganizationLat: null,
  1909. tGeoOrganizationLng: null,
  1910. // 表单默认值
  1911. form: {
  1912. villagerOpinion: "经审查,材料真实有效,符合建房安全、无纠纷,同意申报。",
  1913. villageOption: "经审查,{sqhhzxm}宅基地和建房申请材料真实有效,拟用地{nsqzjddz}符合村庄规划,相邻人{isAdvice}无异议,同意其宅基地和建房申请。",
  1914. // applicationDetail.tHouseApplyProposer.memberName, applicationDetail.tHouseApplyProposedSituation.location, null
  1915. groupOption: "经讨论和公示无异议,{sqhhzxm}符合农村宅基地申请资格,同意{sqhhzxm}的农村宅基地和建房申请。",
  1916. // applicationDetail.tHouseApplyProposer.memberName, applicationDetail.tHouseApplyProposer.memberName
  1917. },
  1918. // 工作流
  1919. taskId: null,
  1920. instanceId: null,
  1921. // 村级领导审核
  1922. uploadImgVillage: {
  1923. proposerId: null,
  1924. fileList: '',
  1925. uploadFileList: [],
  1926. removeFileList: [],
  1927. },
  1928. // 自然资源领导审批
  1929. uploadImgNature: {
  1930. proposerId: null,
  1931. fileList: '',
  1932. uploadFileList: [],
  1933. removeFileList: [],
  1934. },
  1935. // 农村农业部领导审批
  1936. uploadImgAgriculture: {
  1937. proposerId: null,
  1938. fileList: '',
  1939. uploadFileList: [],
  1940. removeFileList: [],
  1941. },
  1942. // 其他部门领导审批
  1943. uploadImgOther: {
  1944. proposerId: null,
  1945. fileList: '',
  1946. uploadFileList: [],
  1947. removeFileList: [],
  1948. },
  1949. // 镇级领导审批
  1950. uploadImgTown: {
  1951. proposerId: null,
  1952. fileList: '',
  1953. uploadFileList: [],
  1954. removeFileList: [],
  1955. },
  1956. // 验收自然资源领导审批
  1957. uploadImgEndNaturePlan: {
  1958. proposerId: null,
  1959. fileList: '',
  1960. uploadFileList: [],
  1961. removeFileList: [],
  1962. },
  1963. // 验收农村农业部领导审批
  1964. uploadImgEndNongyePlan: {
  1965. proposerId: null,
  1966. fileList: '',
  1967. uploadFileList: [],
  1968. removeFileList: [],
  1969. },
  1970. // 验收其他部门领导审批
  1971. uploadImgEndBuildingPlan: {
  1972. proposerId: null,
  1973. fileList: '',
  1974. uploadFileList: [],
  1975. removeFileList: [],
  1976. },
  1977. // 验收镇级领导审批
  1978. uploadImgEndZhenPlan: {
  1979. proposerId: null,
  1980. fileList: '',
  1981. uploadFileList: [],
  1982. removeFileList: [],
  1983. },
  1984. // 申请镇政府审批平面图
  1985. uploadImg: {
  1986. proposerId: null,
  1987. fileList: '',
  1988. uploadFileList: [],
  1989. removeFileList: [],
  1990. },
  1991. // 验收镇政府审批平面图
  1992. uploadImgAccepting: {
  1993. proposerId: null,
  1994. fileList: '',
  1995. uploadFileList: [],
  1996. removeFileList: [],
  1997. },
  1998. // 地图绘制
  1999. drawInsert: null,
  2000. // 附件弹出框显示
  2001. attachmentVisible: false,
  2002. // 工作流弹出框显示
  2003. flowVisible: false,
  2004. // 是/否字典
  2005. yesNoOptions: [
  2006. {dictLabel: '是', dictValue: 'Y'},
  2007. {dictLabel: '否', dictValue: 'N'},
  2008. ],
  2009. yhzgxOptions:[],
  2010. // 当前附件tab
  2011. attachmentActive: 0,
  2012. // 家庭成员tab
  2013. familyMembersActive: 0,
  2014. //电子签名
  2015. showesign: false,
  2016. //部门签字判断
  2017. onCliceQz:"",
  2018. lineWidth: 6, // 画笔的线条粗细
  2019. lineColor: "#000000", // 画笔的颜色
  2020. bgColor: "", // 画布的背景颜色
  2021. resultImg: "", // 最终画布生成的base64图片
  2022. isCrop: false, // 是否裁剪,在画布设定尺寸基础上裁掉四周空白部分
  2023. mapShow:false,
  2024. mapZbDw:"",
  2025. mapBcZb:"", //定位坐标
  2026. mapZbNow:"", //当前查看坐标
  2027. };
  2028. },
  2029. created() { this.id = this.$route.query.id;
  2030. this.type = this.$route.query.type;
  2031. this.taskId = this.$route.query.taskId;
  2032. this.instanceId = this.$route.query.instanceId;
  2033. this.getDicts("family_status").then(response => {
  2034. let arr = [];
  2035. response.data.forEach(function (item) {
  2036. if (item.dictLabel !== '户主') {
  2037. arr.push(item)
  2038. }
  2039. })
  2040. this.yhzgxOptions = arr;
  2041. });
  2042. this.getDicts("building_type").then(response => {
  2043. this.jflxColumns = response.data;
  2044. });
  2045. if(this.type !== "add"){
  2046. getHomeapplyydjfsqStatus(this.id).then(response => {
  2047. this.region = response.data.region;
  2048. this.deptId = response.data.deptId;
  2049. console.info(response.data.deptId);
  2050. });
  2051. }else{
  2052. this.deptId = this.sysFarmer.deptId;
  2053. }
  2054. if(this.type === "todo" || this.type === "done"){
  2055. this.$set(this.sysFarmer, 'memberName', this.$store.getters.nickName);
  2056. }else{
  2057. this.sysFarmer = JSON.parse(Cookies.get('user'));
  2058. }
  2059. console.info( this.sysFarmer);
  2060. this.getFormIntent();
  2061. this.getDetail();
  2062. // this.getLandCoord();
  2063. },
  2064. methods: {
  2065. guidProduct(){
  2066. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  2067. var r = Math.random() * 16 | 0,
  2068. v = c == 'x' ? r : (r & 0x3 | 0x8);
  2069. return v.toString(16);
  2070. });
  2071. },
  2072. isYiLong: function() {
  2073. return this.region === REGION.YI_LONG_XIAN;
  2074. },
  2075. // 打开工作流程
  2076. goFlow(){
  2077. this.flowVisible = true;
  2078. //window.location='flowChart?id='+this.id + '&processKey=WLHT';
  2079. },
  2080. // 初始化当前数据, 有ID则查询, 否则新增
  2081. getDetail(){
  2082. this.reset();
  2083. if(this.id)
  2084. {
  2085. if(this.type === "edit"){
  2086. this.proposerStatus = PROPOSER_EDIT;
  2087. }
  2088. allInformationWLHT(this.id).then(response => {
  2089. listHomeapplytype({deptId: response.data.deptId,status:"0"}).then(res => {
  2090. this.tytzList = res.rows;
  2091. for (let i = 0; i < res.rows.length; i++) {
  2092. //_this.infoList[i].push({text: response.rows[i].name, value: response.rows[i].code});
  2093. if(res.rows[i].id === response.data.tyhxt){
  2094. this.tytzName = res.rows[i].name;
  2095. }
  2096. }
  2097. });
  2098. this.init(response.data);
  2099. });
  2100. }
  2101. else
  2102. {
  2103. listHomeapplytype({deptId:this.sysFarmer.deptId,status:"0"}).then(response => {
  2104. let _this = this;
  2105. this.tytzList = response.rows;
  2106. this.init();
  2107. this.getApplyerDetail(this.sysFarmer);
  2108. });
  2109. }
  2110. },
  2111. // 绘制申请地图
  2112. pointDarw(data) {
  2113. this.$nextTick(() => {
  2114. let map = this.$refs.pointDarwMap;
  2115. if(data === null)
  2116. if(this.applicationDetail.ydjfkg != null){
  2117. data = this.applicationDetail.ydjfkg.theGeomJson;
  2118. this.setMapData(map, data);
  2119. }
  2120. });
  2121. },
  2122. // 绘制验收地图
  2123. pointWrapAcceptance(data) {
  2124. this.$nextTick(() => {
  2125. let map = this.$refs.pointDarwAcceptanceMap;
  2126. if(data === null)
  2127. if(data === null)
  2128. {
  2129. if(this.applicationDetail.tHouseApplyEnd && this.applicationDetail.tHouseApplyEnd.theGeom)
  2130. data = this.applicationDetail.tHouseApplyEnd.theGeom;
  2131. else {
  2132. if(this.applicationDetail.tHouseApproveNatureOptions && this.applicationDetail.tHouseApproveNatureOptions.theGeom)
  2133. data = this.applicationDetail.tHouseApproveNatureOptions.theGeom;
  2134. }
  2135. }
  2136. this.setMapData(map, data);
  2137. });
  2138. },
  2139. // 绘制开工地图
  2140. paintStartNatureMap(data) {
  2141. this.$nextTick(() => {
  2142. let map = this.$refs.startNatureMap;
  2143. // if(data === null)
  2144. // {
  2145. // if(this.applicationDetail.tHouseApproveNatureOptions && this.applicationDetail.tHouseApproveNatureOptions.theGeom)
  2146. // data = this.applicationDetail.tHouseApproveNatureOptions.theGeom;
  2147. // else {
  2148. // if(this.applicationDetail.theGeom)
  2149. // data = this.applicationDetail.theGeom;
  2150. // }
  2151. // }
  2152. // this.setMapData(map, data);
  2153. });
  2154. },
  2155. // 绘制自然资源部门地图
  2156. pointDarwNature(data) {
  2157. this.$nextTick(() => {
  2158. let map = this.$refs.pointDarwNatureMap;
  2159. if(data === null)
  2160. {
  2161. if(this.applicationDetail.tHouseApproveNatureOptions && this.applicationDetail.tHouseApproveNatureOptions.theGeom)
  2162. data = this.applicationDetail.tHouseApproveNatureOptions.theGeom;
  2163. else {
  2164. if(this.applicationDetail.theGeom)
  2165. data = this.applicationDetail.theGeom;
  2166. }
  2167. }
  2168. this.setMapData(map, data);
  2169. });
  2170. },
  2171. // 通用设置地图数据函数
  2172. setMapData(map, data) {
  2173. //console.log(map, data ? true : false);
  2174. if(!map) return;
  2175. if(data)
  2176. {
  2177. map.setLayer('pointDarwLayer', data);
  2178. }
  2179. else {
  2180. this.getLandCoord((lng, lat) => {
  2181. map.setCoord(this.tGeoOrganizationLng, this.tGeoOrganizationLat);
  2182. });
  2183. }
  2184. },
  2185. // 点击流程步骤条, 切换流程表单页
  2186. onStepClicked(index) {
  2187. this.selectTab(index);
  2188. },
  2189. // 全局初始化
  2190. init(value) {
  2191. console.log(value);
  2192. const role = this.$store.getters.roles;
  2193. this.currentUserRole = role[0];
  2194. console.log("当前用户角色: " + role);
  2195. console.info(this.proposerStatus);
  2196. // 局部变量
  2197. let homeApplyStatus = value ? value.homeApplyStatus : -1;
  2198. let proposerId = value ? value.id : null;
  2199. let hasGroupLevel = false; //value.tHouseApplyProposer.hasOwnProperty('hasGroupLevel') ? value.tHouseApplyProposer.hasGroupLevel : this.isGroupLevel;
  2200. console.log("当前申请状态: " + homeApplyStatus);
  2201. this.formVisible.editVisible = false;
  2202. this.formVisible.baseApplyForm.groupFormVisible = false;
  2203. this.formVisible.baseApplyForm.villageFormVisible = false;
  2204. this.formVisible.baseApplyForm.townFormVisible = false;
  2205. this.formVisible.baseApplyForm.agricultureFormVisible = false;
  2206. this.formVisible.baseApplyForm.buildingFormVisible = false;
  2207. this.formVisible.baseApplyForm.nature_resourceFormVisible = false;
  2208. this.formVisible.landscopeVisible = false;
  2209. this.formVisible.landscopeForm.baseFormVisible = false;
  2210. this.formVisible.acceptingVisible = false;
  2211. this.formVisible.acceptingForm.baseFormVisible = false;
  2212. this.formVisible.acceptingForm.townFormVisible = false
  2213. this.formVisible.acceptingForm.agricultureFormVisible = false;
  2214. this.formVisible.acceptingForm.nature_resourceFormVisible = false;
  2215. this.formVisible.auditVisible = false;
  2216. this.formEnabled.baseApplyEnabled = false;
  2217. this.formEnabled.submitEnabled = false;
  2218. this.formEnabled.baseApplyForm.baseFormEnabled = false;
  2219. this.formEnabled.baseApplyForm.homesteadFormEnabled = false;
  2220. this.formEnabled.baseApplyForm.groupFormEnabled = false;
  2221. this.formEnabled.baseApplyForm.villageFormEnabled = false;
  2222. this.formEnabled.baseApplyForm.townFormEnabled = false;
  2223. this.formEnabled.baseApplyForm.agricultureFormEnabled = false;
  2224. this.formEnabled.baseApplyForm.buildingFormEnabled = false;
  2225. this.formEnabled.baseApplyForm.nature_resourceFormEnabled = false;
  2226. this.formEnabled.landscopeEnabled = false;
  2227. this.formEnabled.landscopeForm.baseFormEnabled = false;
  2228. this.formEnabled.acceptingEnabled = false;
  2229. this.formEnabled.acceptingForm.baseFormEnabled = false;
  2230. this.formEnabled.acceptingForm.townFormEnabled = false;
  2231. this.formEnabled.acceptingForm.agricultureFormEnabled = false;
  2232. this.formEnabled.acceptingForm.nature_resourceFormEnabled = false;
  2233. switch (this.proposerStatus) {
  2234. // 查看
  2235. case PROPOSER_VIEW:
  2236. this.formVisible.baseApplyForm.groupFormVisible = hasGroupLevel && this.isNotProposeStatus(homeApplyStatus, ["12", '13']);
  2237. this.formVisible.baseApplyForm.villageFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "14"]);
  2238. this.formVisible.baseApplyForm.townFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", "19", this.isInRoles(role, 'town_leader') ? -99 : '7', this.isInRoles(role, 'town_leader') ? -99 : '8']);
  2239. this.formVisible.baseApplyForm.agricultureFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", this.isInRoles(role, ['town_leader', 'agriculture']) ? -99 : '7', this.isInRoles(role, ['town_leader', 'agriculture']) ? -99 : '8']);
  2240. this.formVisible.baseApplyForm.buildingFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", this.isInRoles(role, ['town_leader', 'building']) ? -99 : '7', this.isInRoles(role, ['town_leader', 'building']) ? -99 : '8']);
  2241. this.formVisible.baseApplyForm.nature_resourceFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", this.isInRoles(role, ['town_leader', 'nature_resource']) ? -99 : '7', this.isInRoles(role, ['town_leader', 'nature_resource']) ? -99 : '8']);
  2242. this.formVisible.landscopeVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", "19", "1C", "1D", "1F"]);
  2243. this.formVisible.landscopeForm.baseFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", "19", "1C", "1D", "1F"]);
  2244. this.formVisible.acceptingVisible = this.isProposeStatus(homeApplyStatus, ["71", "72", "74", "77", "79", "7C", "7F"]);
  2245. this.formVisible.acceptingForm.baseFormVisible = this.isProposeStatus(homeApplyStatus, ["71", "72", "74", "77", "79", "7C", "7F"]);
  2246. this.formVisible.acceptingForm.townFormVisible = this.isProposeStatus(homeApplyStatus, ["7C", "7F"]);
  2247. ;
  2248. this.formVisible.acceptingForm.agricultureFormVisible = this.isProposeStatus(homeApplyStatus, ["79", "7C", "7F"]);
  2249. this.formVisible.acceptingForm.nature_resourceFormVisible = this.isProposeStatus(homeApplyStatus, ["79", "7C", "7F"]);
  2250. if (this.type == 'done') {
  2251. this.formVisible.editVisible = false;
  2252. }
  2253. console.info(value);
  2254. this.houseApplyUploadComp.full = true;
  2255. this.houseApplyUploadComp.readonly = true;
  2256. this.$set(this.houseApplyUploadComp, "proposerId", proposerId);
  2257. this.houseApplyUploadComp.homeApplyStatus = homeApplyStatus;
  2258. this.houseApplyUploadCompStart.full = true;
  2259. this.houseApplyUploadCompStart.readonly = true;
  2260. this.houseApplyUploadCompStart.proposerId = proposerId;
  2261. this.houseApplyUploadCompStart.houseApplyStatus = homeApplyStatus; // == '10' ? '12' : houseApplyStatus;
  2262. this.houseApplyUploadCompEnd.full = true;
  2263. this.houseApplyUploadCompEnd.readonly = true;
  2264. this.houseApplyUploadCompEnd.proposerId = proposerId;
  2265. this.houseApplyUploadCompEnd.houseApplyStatus = homeApplyStatus;
  2266. console.info(this.houseApplyUploadComp);
  2267. // // 初始化自然资源审批现场图
  2268. // this.uploadImgNature.fileList = value.tHouseApproveNatureOptions ? value.tHouseApproveNatureOptions.naturePlan : '';
  2269. // this.uploadImgNature.proposerId = value.tHouseApplyProposer.id;
  2270. // // 初始化农村农业部审批现场图
  2271. // this.uploadImgAgriculture.fileList = value.tHouseApproveAgricultureOptions ? value.tHouseApproveAgricultureOptions.agriculturePlan : '';
  2272. // this.uploadImgAgriculture.proposerId = value.tHouseApplyProposer.id;
  2273. // // 初始化其他部审批现场图
  2274. // this.uploadImgOther.fileList = value.tHouseApproveOtherOptions ? value.tHouseApproveOtherOptions.otherPlan : '';
  2275. // this.uploadImgOther.proposerId = value.tHouseApplyProposer.id;
  2276. // 初始化镇级审批现场图
  2277. // this.uploadImgTown.fileList = value.tHouseApproveTownOptions ? value.tHouseApproveTownOptions.townPlan : '';
  2278. // this.uploadImgTown.proposerId = value.tHouseApplyProposer.id;
  2279. // 初始化验收农村农业部审批现场图
  2280. // this.uploadImgEndNongyePlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.nongyePlan : '';
  2281. // this.uploadImgEndNongyePlan.proposerId = value.tHouseApplyProposer.id;
  2282. // // 初始化验收自然资源部审批现场图
  2283. // this.uploadImgEndNaturePlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.naturePlan : '';
  2284. // this.uploadImgEndNaturePlan.proposerId = value.tHouseApplyProposer.id;
  2285. // // 初始化验收其他部门审批现场图
  2286. // this.uploadImgEndBuildingPlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.buildingPlan : '';
  2287. // this.uploadImgEndBuildingPlan.proposerId = value.tHouseApplyProposer.id;
  2288. // // 初始化验收镇级审批现场图
  2289. // this.uploadImgEndZhenPlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.zhenPlan : '';
  2290. // this.uploadImgEndZhenPlan.proposerId = value.tHouseApplyProposer.id;
  2291. // 初始化申请平面图
  2292. this.uploadImg.fileList = value.ydjfsp ? value.ydjfsp.zjdzlpmwzt : '';
  2293. this.uploadImg.proposerId = this.applicationDetail.id;
  2294. // 初始化验收平面图
  2295. this.uploadImgAccepting.fileList = value.ydjfys ? value.ydjfys.jgpmjt : '';
  2296. this.uploadImgAccepting.proposerId = this.applicationDetail.id;
  2297. console.info(this.uploadImgAccepting);
  2298. //地图查看
  2299. this.applicationDetail = value;
  2300. this.pointDarw(null);
  2301. // this.pointDarwNature(null);
  2302. // this.pointWrapAcceptance(null);
  2303. // this.paintStartNatureMap(null);
  2304. // if(value.homeApplyStage == "1" ){
  2305. // if(this.applicationDetail.cjxzscyj !=null && this.applicationDetail.cjxzscyj !=''){
  2306. // this.formVisible.baseApplyForm.villageFormVisible = true;
  2307. // }
  2308. // console.info( this.formVisible.baseApplyForm.villageFormVisible);
  2309. // if(this.applicationDetail.ydjfsp != null && this.applicationDetail.ydjfsp.zfcxjsbmscyj !=null && this.applicationDetail.ydjfsp.zfcxjsbmscyj !=''){
  2310. // this.formVisible.baseApplyForm.buildingFormVisible = true;
  2311. // }
  2312. // if(this.applicationDetail.ydjfsp != null && this.applicationDetail.ydjfsp.nyncbmscyj !=null && this.applicationDetail.ydjfsp.nyncbmscyj !=''){
  2313. // this.formVisible.baseApplyForm.agricultureFormVisible = true;
  2314. // }
  2315. // if(this.applicationDetail.ydjfsp != null && this.applicationDetail.ydjfsp.zrzybmscyj !=null && this.applicationDetail.ydjfsp.zrzybmscyj !=''){
  2316. // this.formVisible.baseApplyForm.nature_resourceFormVisible = true;
  2317. // }
  2318. // if(this.applicationDetail.ydjfsp != null && this.applicationDetail.ydjfsp.xzzfshpzyj !=null && this.applicationDetail.ydjfsp.xzzfshpzyj !=''){
  2319. // this.formVisible.baseApplyForm.townFormVisible = true;
  2320. // }
  2321. // }
  2322. // if(value.homeApplyStage == "3" ){
  2323. // // if(this.applicationDetail.ydjfys.villageOption !=null && this.applicationDetail.ydjfys.villageOption !=''){
  2324. // // this.formVisible.baseApplyForm.villageFormVisible = true;
  2325. // // }
  2326. // // if(this.applicationDetail.tHouseApproveOtherOptions.approveOption !=null && this.applicationDetail.tHouseApproveOtherOptions.approveOption !=''){
  2327. // // this.formVisible.acceptingForm.baseFormVisible = false;
  2328. // // }
  2329. // if(this.applicationDetail.ydjfys.nyncbmysyj !=null && this.applicationDetail.ydjfys.nyncbmysyj !=''){
  2330. // this.formVisible.acceptingForm.agricultureFormVisible = true;
  2331. // }
  2332. // if(this.applicationDetail.ydjfys.zrzybmysyj !=null && this.applicationDetail.ydjfys.zrzybmysyj !=''){
  2333. // this.formVisible.acceptingForm.nature_resourceFormVisible = true;
  2334. // }
  2335. // if(this.applicationDetail.ydjfys.zfcxjsbmysyj !=null && this.applicationDetail.ydjfys.zfcxjsbmysyj !=''){
  2336. // this.formVisible.acceptingForm.buildingFormVisible = true;
  2337. // }
  2338. // if(this.applicationDetail.ydjfys.xzzfysyj !=null && this.applicationDetail.ydjfys.xzzfysyj !=''){
  2339. // this.formVisible.acceptingForm.townFormVisible = true
  2340. // }
  2341. // }
  2342. break;
  2343. // 编辑/审批
  2344. case PROPOSER_EDIT:
  2345. let handlerName = this.$store.getters.nickName;
  2346. let handlerTime = this.getDate();
  2347. this.applicationDetail = value;
  2348. if (this.type === "todo") {
  2349. if (this.isProposeStatus(homeApplyStatus, ["14"])) {
  2350. if (this.$route.query.electronicSignature != null) {
  2351. this.$set(this.applicationDetail, "cjxzscr", this.$route.query.electronicSignature);
  2352. } else {
  2353. this.$set(this.applicationDetail, "cjxzscr", this.$route.query.nickName);
  2354. }
  2355. } else if (this.isProposeStatus(homeApplyStatus, ["19"]) && this.isInRoles(role, ['nature_resource'])) {
  2356. if (this.$route.query.electronicSignature != null) {
  2357. this.$set(this.applicationDetail.ydjfsp, "zrzybmscrxm", this.$route.query.electronicSignature);
  2358. } else {
  2359. this.$set(this.applicationDetail.ydjfsp, "zrzybmscrxm", this.$route.query.nickName);
  2360. }
  2361. } else if (this.isProposeStatus(homeApplyStatus, ["19"]) && this.isInRoles(role, ['agriculture'])) {
  2362. if (this.$route.query.electronicSignature != null) {
  2363. this.$set(this.applicationDetail.ydjfsp, "nyncbmscrxm", this.$route.query.electronicSignature);
  2364. } else {
  2365. this.$set(this.applicationDetail.ydjfsp, "nyncbmscrxm", this.$route.query.nickName);
  2366. }
  2367. } else if (this.isProposeStatus(homeApplyStatus, ["19"]) && this.isInRoles(role, ['building'])) {
  2368. if (this.$route.query.electronicSignature != null) {
  2369. this.$set(this.applicationDetail.ydjfsp, "zfcxjsbmscrxm", this.$route.query.electronicSignature);
  2370. } else {
  2371. this.$set(this.applicationDetail.ydjfsp, "zfcxjsbmscrxm", this.$route.query.nickName);
  2372. }
  2373. } else if (this.isProposeStatus(homeApplyStatus, ["1C"]) && this.isInRoles(role, ['town_leader'])) {
  2374. if (this.$route.query.electronicSignature != null) {
  2375. this.$set(this.applicationDetail.ydjfsp, "xzzfshpzrxm", this.$route.query.electronicSignature);
  2376. } else {
  2377. this.$set(this.applicationDetail.ydjfsp, "xzzfshpzrxm", this.$route.query.nickName);
  2378. }
  2379. } else if (this.isProposeStatus(homeApplyStatus, ["79"]) && this.isInRoles(role, ['nature_resource'])) {
  2380. if (this.$route.query.electronicSignature != null) {
  2381. this.$set(this.applicationDetail.ydjfys, "zrzybmysjbrxm", this.$route.query.electronicSignature);
  2382. } else {
  2383. this.$set(this.applicationDetail.ydjfys, "zrzybmysjbrxm", this.$route.query.nickName);
  2384. }
  2385. } else if (this.isProposeStatus(homeApplyStatus, ["79"]) && this.isInRoles(role, ['agriculture'])) {
  2386. if (this.$route.query.electronicSignature != null) {
  2387. this.$set(this.applicationDetail.ydjfys, "nyncbmysjbrxm", this.$route.query.electronicSignature);
  2388. } else {
  2389. this.$set(this.applicationDetail.ydjfys, "nyncbmysjbrxm", this.$route.query.nickName);
  2390. }
  2391. } else if (this.isProposeStatus(homeApplyStatus, ["79"]) && this.isInRoles(role, ['building'])) {
  2392. if (this.$route.query.electronicSignature != null) {
  2393. this.$set(this.applicationDetail.ydjfys, "zfcxjsbmysjbrxm", this.$route.query.electronicSignature);
  2394. } else {
  2395. this.$set(this.applicationDetail.ydjfys, "zfcxjsbmysjbrxm", this.$route.query.nickName);
  2396. }
  2397. } else if (this.isProposeStatus(homeApplyStatus, ["7C"]) && this.isInRoles(role, ['town_leader'])) {
  2398. if (this.$route.query.electronicSignature != null) {
  2399. this.$set(this.applicationDetail.ydjfys, "xzzfysjbrxm", this.$route.query.electronicSignature);
  2400. } else {
  2401. this.$set(this.applicationDetail.ydjfys, "xzzfysjbrxm", this.$route.query.nickName);
  2402. }
  2403. }
  2404. }
  2405. if (this.isProposeStatus(homeApplyStatus, ["71", "72", "74", '77', "79", "7C"])) {
  2406. this.formEnabled.ysnrEnable = true;
  2407. }
  2408. this.formVisible.auditVisible = this.type === 'done' || this.type === 'todo';
  2409. // 申请-组级审批 初始化表单
  2410. if (hasGroupLevel) {
  2411. if (this.isProposeStatus(homeApplyStatus, ["32"])) {
  2412. let defaultGroupOption = this.form.groupOption
  2413. .replaceAll('{memberName}', this.applicationDetail.sqhhzxm)
  2414. ;
  2415. if (!value.tHouseApproveVillageOptions) {
  2416. this.$set(this.applicationDetail, 'tHouseApproveVillageOptions', {
  2417. groupLeader: handlerName,
  2418. groupTime: handlerTime,
  2419. groupOption: defaultGroupOption
  2420. });
  2421. } else {
  2422. if (!this.applicationDetail.tHouseApproveVillageOptions.groupLeader)
  2423. this.$set(this.applicationDetail.tHouseApproveVillageOptions, 'groupLeader', handlerName);
  2424. if (!this.applicationDetail.tHouseApproveVillageOptions.groupTime)
  2425. this.$set(this.applicationDetail.tHouseApproveVillageOptions, 'groupTime', handlerTime);
  2426. if (!this.applicationDetail.tHouseApproveVillageOptions.groupOption)
  2427. this.$set(this.applicationDetail.tHouseApproveVillageOptions, 'groupOption', defaultGroupOption);
  2428. }
  2429. }
  2430. }
  2431. // 申请-草稿
  2432. if (this.isProposeStatus(homeApplyStatus, ["11"])) {
  2433. this.formEnabled.baseApplyForm.baseFormEnabled = true;
  2434. this.formEnabled.baseApplyEnabled = true;
  2435. this.formEnabled.submitEnabled = true;
  2436. this.formVisible.editVisible = true;
  2437. }
  2438. // 申请-村级审核
  2439. else if (this.isProposeStatus(homeApplyStatus, ["14", "15", "17", "19"])) {
  2440. let neighbor = [];
  2441. if (this.applicationDetail.nsqzjdszd) neighbor.push(this.applicationDetail.nsqzjdszd);
  2442. if (this.applicationDetail.nsqzjdszx) neighbor.push(this.applicationDetail.nsqzjdszx);
  2443. if (this.applicationDetail.nsqzjdszn) neighbor.push(this.applicationDetail.nsqzjdszn);
  2444. if (this.applicationDetail.nsqzjdszb) neighbor.push(this.applicationDetail.nsqzjdszb);
  2445. neighbor = neighbor.join('、');
  2446. if(this.applicationDetail.cjxzscyj != null && this.applicationDetail.cjxzscyj !== "" ){
  2447. this.$set(this.applicationDetail, 'cjxzscyj', this.applicationDetail.cjxzscyj);
  2448. this.$set(this.applicationDetail, 'cjxzscsj', this.applicationDetail.cjxzscsj);
  2449. }else{
  2450. let defaultVillageOption = this.form.villageOption
  2451. .replaceAll('{sqhhzxm}', this.applicationDetail.sqhhzxm)
  2452. .replaceAll('{nsqzjddz}', this.applicationDetail.nsqzjddz)
  2453. .replaceAll('{isAdvice}', neighbor);
  2454. this.$set(this.applicationDetail, 'cjxzscyj', defaultVillageOption);
  2455. this.$set(this.applicationDetail, 'cjxzscsj', handlerTime);
  2456. }
  2457. }
  2458. // 申请-镇级审批
  2459. // else if(this.isProposeStatus(homeApplyStatus, ["19"]))
  2460. // {
  2461. // // 自然资源部门
  2462. // if(!value.tHouseApproveNatureOptions)
  2463. // {
  2464. // this.$set(this.applicationDetail, "tHouseApproveNatureOptions", {
  2465. // landArea: null,
  2466. // rightsType: null,
  2467. // east: null, // 东至
  2468. // west: null, // 西至
  2469. // south: null, // 南至
  2470. // north: null, // 北至
  2471. // //approveLeader: handlerName,
  2472. // approveLeader: null,
  2473. // approveOption: null,
  2474. // approveTime: handlerTime,
  2475. // theGeom: value.tHouseApplyProposedSituation.theGeom,
  2476. // naturePlan: null, //现场拍照
  2477. // theGeomPoint: null, //现场坐标点
  2478. // });
  2479. // }
  2480. // else {
  2481. // if(!this.applicationDetail.tHouseApproveNatureOptions.approveLeader)
  2482. // // this.$set(this.applicationDetail.tHouseApproveNatureOptions, 'approveLeader', handlerName);
  2483. // if(!this.applicationDetail.tHouseApproveNatureOptions.approveTime)
  2484. // this.$set(this.applicationDetail.tHouseApproveNatureOptions, 'approveTime', handlerTime);
  2485. // }
  2486. // // 农村农业部门
  2487. // if(!value.tHouseApproveAgricultureOptions)
  2488. // {
  2489. // this.$set(this.applicationDetail, "tHouseApproveAgricultureOptions", {
  2490. // isMembership: null,
  2491. // isOnehouse: null,
  2492. // isReviewmaterials: null,
  2493. // //approveLeader: handlerName,
  2494. // approveLeader: null,
  2495. // approveOption: null,
  2496. // approveTime: handlerTime,
  2497. // agriculturePlan: null, //现场拍照
  2498. // theGeomPoint: null, //现场坐标点
  2499. // });
  2500. // }
  2501. // else {
  2502. // if(!this.applicationDetail.tHouseApproveAgricultureOptions.approveLeader)
  2503. // //this.$set(this.applicationDetail.tHouseApproveAgricultureOptions, 'approveLeader', handlerName);
  2504. // if(!this.applicationDetail.tHouseApproveAgricultureOptions.approveTime)
  2505. // this.$set(this.applicationDetail.tHouseApproveAgricultureOptions, 'approveTime', handlerTime);
  2506. // }
  2507. // // 住建部
  2508. // if(!value.tHouseApproveOtherOptions)
  2509. // {
  2510. // this.$set(this.applicationDetail, "tHouseApproveOtherOptions", {
  2511. // buildingType: null,
  2512. // buildingArea: null,
  2513. // buildingFloors: null,
  2514. // buildingHight: null,
  2515. // buildingLandArea: null,
  2516. // designPaper: "1",
  2517. // east: null, // 东至
  2518. // west: null, // 西至
  2519. // south: null, // 南至
  2520. // north: null, // 北至
  2521. // //approveLeader: handlerName,
  2522. // approveLeader: null,
  2523. // approveOption: null,
  2524. // approveTime: handlerTime,
  2525. // otherPlan: null, //现场拍照
  2526. // theGeomPoint: null, //现场坐标点
  2527. // });
  2528. // }
  2529. // else {
  2530. // if(!this.applicationDetail.tHouseApproveOtherOptions.approveLeader)
  2531. // // this.$set(this.applicationDetail.tHouseApproveOtherOptions, 'approveLeader', handlerName);
  2532. // if(!this.applicationDetail.tHouseApproveOtherOptions.approveTime)
  2533. // this.$set(this.applicationDetail.tHouseApproveOtherOptions, 'approveTime', handlerTime);
  2534. // }
  2535. // // 镇政府
  2536. // if(!value.tHouseApproveTownOptions)
  2537. // {
  2538. // this.$set(this.applicationDetail, 'tHouseApproveTownOptions', {
  2539. // //approveLeader: handlerName,
  2540. // approveLeader: null,
  2541. // approveTime: handlerTime,
  2542. // townPlan: null, //现场拍照
  2543. // theGeomPoint: null, //现场坐标点
  2544. // });
  2545. // }
  2546. // else {
  2547. // if(!this.applicationDetail.tHouseApproveTownOptions.approveLeader)
  2548. // // this.$set(this.applicationDetail.tHouseApproveTownOptions, 'approveLeader', handlerName);
  2549. // if(!this.applicationDetail.tHouseApproveTownOptions.approveTime)
  2550. // this.$set(this.applicationDetail.tHouseApproveTownOptions, 'approveTime', handlerTime);
  2551. // }
  2552. // // 勘察
  2553. // if(!value.tHouseApproveLocationplanOptions)
  2554. // {
  2555. // this.$set(this.applicationDetail, 'tHouseApproveLocationplanOptions', {
  2556. // locationPlan: null,
  2557. // cartographicUnit: null,
  2558. // surveyPersonnel: handlerName,
  2559. // suveyTime: handlerTime,
  2560. // cartographer: handlerName,
  2561. // cartographicTime: handlerTime,
  2562. // });
  2563. // }
  2564. // else {
  2565. // if(!this.applicationDetail.tHouseApproveLocationplanOptions.surveyPersonnel)
  2566. // this.$set(this.applicationDetail.tHouseApproveLocationplanOptions, 'surveyPersonnel', handlerName);
  2567. // if(!this.applicationDetail.tHouseApproveLocationplanOptions.suveyTime)
  2568. // this.$set(this.applicationDetail.tHouseApproveLocationplanOptions, 'suveyTime', handlerTime);
  2569. // if(!this.applicationDetail.tHouseApproveLocationplanOptions.cartographer)
  2570. // this.$set(this.applicationDetail.tHouseApproveLocationplanOptions, 'cartographer', handlerName);
  2571. // if(!this.applicationDetail.tHouseApproveLocationplanOptions.cartographicTime)
  2572. // this.$set(this.applicationDetail.tHouseApproveLocationplanOptions, 'cartographicTime', handlerTime);
  2573. // }
  2574. // console.info(this.formVisible.auditVisible);
  2575. // }
  2576. // 开工申请
  2577. else if (this.isProposeStatus(homeApplyStatus, ["10"])) {
  2578. if (!this.applicationDetail.tHouseApplyStart) {
  2579. this.$set(this.applicationDetail, 'tHouseApplyStart', {
  2580. startDate: null,
  2581. endDate: null,
  2582. });
  2583. }
  2584. }
  2585. // 验收
  2586. // else if(this.isProposeStatus(homeApplyStatus, ["71"]))
  2587. // {
  2588. // if(!this.applicationDetail.tHouseApplyEnd)
  2589. // {
  2590. // this.$set(this.applicationDetail, 'tHouseApplyEnd', {
  2591. // //TODO: 开工结束时后台必定生成
  2592. // });
  2593. // }
  2594. // if(this.applicationDetail.tHouseApplyEnd.oldHouseStatus == '0')
  2595. // this.applicationDetail.tHouseApplyEnd.oldHouseStatus = null;
  2596. // }
  2597. // 开工二道场审批
  2598. else if (this.isProposeStatus(homeApplyStatus, ["39"])){
  2599. if(this.isInRoles(role, ['nature_resource']))
  2600. {
  2601. this.formVisible.landscopeForm.nature_resourceFormEnabled = true;
  2602. console.info(this.formVisible.landscopeForm.nature_resourceFormEnabled);
  2603. }
  2604. }
  2605. // 验收镇级审批
  2606. else if(this.isProposeStatus(homeApplyStatus, ["79","7C","7F"]))
  2607. {
  2608. if(this.isInRoles(role, ['town_leader']))
  2609. {
  2610. if(!this.applicationDetail.ydjfys.jgpmjtjbr) this.applicationDetail.ydjfys.jgpmjtjbr = handlerName;
  2611. if(!this.applicationDetail.ydjfys.xzzfysjbrxm) //this.applicationDetail.tHouseApplyEnd.zhenName = handlerName;
  2612. if(!this.applicationDetail.ydjfys.xzzfyssj) this.applicationDetail.ydjfys.xzzfyssj = handlerTime;
  2613. }
  2614. if(this.isInRoles(role, ['agriculture']))
  2615. {
  2616. if(!this.applicationDetail.ydjfys.nyncbmysjbrxm) //this.applicationDetail.tHouseApplyEnd.nongyeName = handlerName;
  2617. if(!this.applicationDetail.ydjfys.nyncbmyssj) this.applicationDetail.ydjfys.nyncbmyssj = handlerTime;
  2618. }
  2619. if(this.isInRoles(role, ['nature_resource']))
  2620. {
  2621. if(!this.applicationDetail.ydjfys.zrzybmysjbrxm) //this.applicationDetail.tHouseApplyEnd.natureName = handlerName;
  2622. if(!this.applicationDetail.ydjfys.zrzybmyssj) this.applicationDetail.ydjfys.zrzybmyssj = handlerTime;
  2623. }
  2624. if(this.isInRoles(role, ['building']))
  2625. {
  2626. if(!this.applicationDetail.ydjfys.zfcxjsbmysjbrxm) //this.applicationDetail.tHouseApplyEnd.natureName = handlerName;
  2627. if(!this.applicationDetail.ydjfys.zfcxjsbmyssj) this.applicationDetail.ydjfys.zfcxjsbmyssj = handlerTime;
  2628. }
  2629. if(0)
  2630. {
  2631. if(!this.applicationDetail.ydjfys.buildingName) //this.applicationDetail.tHouseApplyEnd.buildingName = handlerName;
  2632. if(!this.applicationDetail.ydjfys.buildingTime) this.applicationDetail.tHouseApplyEnd.buildingTime = handlerTime;
  2633. }
  2634. // if(0) {
  2635. // if (!this.applicationDetail.ydjfys.isProjectFinished) this.applicationDetail.tHouseApplyEnd.isProjectFinished = 'Y';
  2636. // if (!this.applicationDetail.ydjfys.isQualifiedQuality) this.applicationDetail.tHouseApplyEnd.isQualifiedQuality = 'Y';
  2637. // if (!this.applicationDetail.ydjfys.hasBuildingRecord) this.applicationDetail.tHouseApplyEnd.hasBuildingRecord = 'Y';
  2638. // if (!this.applicationDetail.ydjfys.isSignWarranty) this.applicationDetail.tHouseApplyEnd.isSignWarranty = 'Y';
  2639. // if (!this.applicationDetail.ydjfys.isHandleProblem) this.applicationDetail.tHouseApplyEnd.isHandleProblem = 'Y';
  2640. // if (!this.applicationDetail.ydjfys.isDesignPaperSame) this.applicationDetail.tHouseApplyEnd.isDesignPaperSame = 'Y';
  2641. // if (!this.applicationDetail.ydjfys.isOtherAcceptanceFinished) this.applicationDetail.tHouseApplyEnd.isOtherAcceptanceFinished = 'Y';
  2642. // }
  2643. }
  2644. // 可见/隐藏
  2645. this.formVisible.baseApplyForm.groupFormVisible = hasGroupLevel && this.isNotProposeStatus(homeApplyStatus, ["1","25"]);
  2646. this.formVisible.baseApplyForm.villageFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "31", "71"]);
  2647. if(this.isNotProposeStatus(homeApplyStatus, ["11", "14", "15","17", "31", "34", '71', '74']))
  2648. {
  2649. if(this.isInRoles(role, ['town_leader', 'agriculture']))
  2650. {
  2651. this.formVisible.baseApplyForm.agricultureFormVisible = true;
  2652. // this.applicationDetail.tHouseApproveAgricultureOptions.approveOption = null;
  2653. // this.applicationDetail.tHouseApproveAgricultureOptions.approveLeader = null;
  2654. this.applicationDetail.ydjfsp.nyncbmscsj = handlerTime;
  2655. }
  2656. if(this.isInRoles(role, ['town_leader', 'building']))
  2657. {
  2658. this.formVisible.baseApplyForm.buildingFormVisible = true;
  2659. // this.applicationDetail.tHouseApproveOtherOptions.approveOption = null;
  2660. // this.applicationDetail.tHouseApproveOtherOptions.approveLeader = null;
  2661. this.applicationDetail.ydjfsp.zfcxjsbmscsj = handlerTime;
  2662. }
  2663. if(this.isInRoles(role, ['town_leader', 'nature_resource']))
  2664. {
  2665. this.formVisible.baseApplyForm.nature_resourceFormVisible = true;
  2666. // this.applicationDetail.tHouseApproveNatureOptions.approveOption = null;
  2667. // this.applicationDetail.tHouseApproveNatureOptions.approveLeader = null;
  2668. this.applicationDetail.ydjfsp.zrzybmscsj = handlerTime;
  2669. }
  2670. if(this.isInRoles(role, ['town_leader']))
  2671. {
  2672. this.formVisible.baseApplyForm.townFormVisible = true;
  2673. // this.applicationDetail.tHouseApproveTownOptions.approveOption = null;
  2674. // this.applicationDetail.tHouseApproveTownOptions.approveLeader = null;
  2675. this.applicationDetail.ydjfsp.xzzfshpzsj = handlerTime;
  2676. this.applicationDetail.ydjfsp.zjdzlpmwzxctksj = handlerTime;
  2677. this.applicationDetail.ydjfsp.zckcsj = handlerTime;
  2678. this.wztUpdate = true;
  2679. }
  2680. }
  2681. this.formVisible.landscopeVisible = this.isNotProposeStatus(homeApplyStatus, ["12", "14", "15","19", "1C", "1D", '1F',]);
  2682. this.formVisible.landscopeForm.baseFormVisible = this.isNotProposeStatus(homeApplyStatus, ["1", "32", "2", "3", "31", '4', '5', '6', '7', '8', '9',"25"]);
  2683. //this.formVisible.baseApplyForm.townFormVisible = this.landscopeVisible
  2684. this.formVisible.acceptingVisible = this.isProposeStatus(homeApplyStatus, ["71", "72", "74","77", "79", "7C", "7F"]);
  2685. this.formVisible.acceptingForm.baseFormVisible = this.isProposeStatus(homeApplyStatus, ["71", "72", "74", "77","79", "7C", "7F"]);
  2686. // selectProposerNh({hzzjhm:this.applicationDetail.sqhhzsfzh,deptId:value.deptId}).then(res => {
  2687. // if(res.rows.length > 0){
  2688. // this.getMemberCurrentSituation(res.rows[0].id);
  2689. // }
  2690. // });
  2691. (this.isProposeStatus(homeApplyStatus, ["79", "7C","7F"]))
  2692. {
  2693. if(this.isInRoles(role, ['town_leader', 'agriculture']))
  2694. {
  2695. this.formVisible.acceptingForm.agricultureFormVisible = true;
  2696. }
  2697. if(this.isInRoles(role, ['town_leader', 'nature_resource']))
  2698. {
  2699. this.formVisible.acceptingForm.nature_resourceFormVisible = true;
  2700. }
  2701. if(this.isInRoles(role, ['town_leader', 'building']))
  2702. {
  2703. this.formVisible.acceptingForm.buildingFormVisible = true;
  2704. }
  2705. if(this.isInRoles(role, ['town_leader']))
  2706. {
  2707. this.formVisible.acceptingForm.townFormVisible = true;
  2708. }
  2709. }
  2710. // 禁用/启用
  2711. this.formEnabled.baseApplyForm.groupFormEnabled = hasGroupLevel && this.isProposeStatus(homeApplyStatus, ["12",'32',"72"]) && this.isInRoles(role, 'village_group_leader');
  2712. this.formEnabled.baseApplyForm.villageFormEnabled = this.isProposeStatus(homeApplyStatus, ["14","34","74"]) && this.isInRoles(role, 'village_leader');
  2713. // //驳回时审批意见及签名清空
  2714. // if(this.formEnabled.baseApplyForm.villageFormEnabled){
  2715. // this.applicationDetail.tHouseApproveVillageOptions.villageLeader = null;
  2716. // //this.applicationDetail.tHouseApproveVillageOptions.
  2717. // }
  2718. if(this.isProposeStatus(homeApplyStatus, ['19',"1C"]))
  2719. {
  2720. if(this.isInRoles(role, ['agriculture']))
  2721. {
  2722. this.formEnabled.baseApplyForm.agricultureFormEnabled = true;
  2723. }
  2724. if(this.isInRoles(role, ['building']))
  2725. {
  2726. this.formEnabled.baseApplyForm.buildingFormEnabled = true;
  2727. }
  2728. if(this.isInRoles(role, ['nature_resource']))
  2729. {
  2730. this.formEnabled.baseApplyForm.nature_resourceFormEnabled = true;
  2731. }
  2732. if(this.isInRoles(role, ['town_leader']))
  2733. {
  2734. this.formEnabled.baseApplyForm.townFormEnabled = true;
  2735. }
  2736. }
  2737. this.formEnabled.landscopeEnabled = this.isProposeStatus(homeApplyStatus, ['31']);
  2738. this.formEnabled.landscopeForm.baseFormEnabled = this.isProposeStatus(homeApplyStatus, ['31']);
  2739. this.formEnabled.acceptingEnabled = this.isProposeStatus(homeApplyStatus, ['71']);
  2740. this.formEnabled.acceptingForm.baseFormEnabled = this.isProposeStatus(homeApplyStatus, ['71']);
  2741. if(this.isProposeStatus(homeApplyStatus, ['79',"7C"]))
  2742. {
  2743. if(this.isInRoles(role, ['agriculture']))
  2744. {
  2745. this.formEnabled.acceptingForm.agricultureFormEnabled = true;
  2746. }
  2747. if(this.isInRoles(role, ['nature_resource']))
  2748. {
  2749. this.formEnabled.acceptingForm.nature_resourceFormEnabled = true;
  2750. }
  2751. if(this.isInRoles(role, ['building']))
  2752. {
  2753. this.formEnabled.acceptingForm.buildingFormEnabled = true;
  2754. }
  2755. if(this.isInRoles(role, ['town_leader']))
  2756. {
  2757. this.formEnabled.acceptingForm.townFormEnabled = true;
  2758. }
  2759. }
  2760. // this.applicationDetail.tHouseApplyProposer = value.tHouseApplyProposer;
  2761. // this.applicationDetail.tHouseApplyCurrentSituation = value.tHouseApplyCurrentSituation;
  2762. // this.applicationDetail.tHouseApplyProposedSituation = value.tHouseApplyProposedSituation;
  2763. //this.formEnabled.landscopeEnabled = value.startDraft;
  2764. //this.formVisible.baseApplyForm.townFormVisible = this.isLandscope(homeApplyStatus, ["12", "13", "14", "15", "16", "17", "28", "19", "18"]);
  2765. //this.formVisible.baseApplyForm.townFormVisible = this.isProposeStatus(houseApplyStatus, ["18", "20", "21", "22", "23", "24", "25", "30", "29", "26"]);
  2766. //this.applicationDetail.tHouseApplyProposer = this.isProposeStatus(houseApplyStatus, ["18", "20", "21", "22", "23", "24", "25", "30", "29", "26"]);
  2767. //this.formVisible.baseApplyForm.villageFormVisible = this.isProposeStatus(houseApplyStatus, ["18", "20", "21", "22", "23", "24", "25", "30", "29", "26"]);
  2768. //this.formVisible.acceptingVisible = this.isProposeStatus(houseApplyStatus, ["18", "20", "21", "22", "23", "24", "25", "30", "29", "26"]);
  2769. if (this.isLandscope()) {
  2770. this.houseApplyUploadComp.full = true;
  2771. this.houseApplyUploadCompStart.full = false;
  2772. this.houseApplyUploadCompEnd.full = false;
  2773. this.houseApplyUploadComp.readonly = homeApplyStatus != '11';
  2774. this.houseApplyUploadCompStart.readonly = false;
  2775. this.houseApplyUploadCompEnd.readonly = true;
  2776. } else if (this.isAccepting()) {
  2777. this.houseApplyUploadComp.full = true;
  2778. this.houseApplyUploadCompStart.full = true;
  2779. this.houseApplyUploadCompEnd.full = false;
  2780. this.houseApplyUploadComp.readonly = true;
  2781. this.houseApplyUploadCompStart.readonly = true;
  2782. this.houseApplyUploadCompEnd.readonly = false;
  2783. }
  2784. else { // this.isBaseApply()
  2785. this.houseApplyUploadComp.full = false;
  2786. this.houseApplyUploadCompStart.full = false;
  2787. this.houseApplyUploadCompEnd.full = false;
  2788. this.houseApplyUploadComp.readonly = false;
  2789. this.houseApplyUploadCompStart.readonly = homeApplyStatus == '11' ? false : true;
  2790. this.houseApplyUploadCompEnd.readonly = true;
  2791. }
  2792. this.houseApplyUploadComp.proposerId = proposerId;
  2793. this.houseApplyUploadComp.homeApplyStatus = homeApplyStatus == '12' ? '10' : homeApplyStatus; // 申请通过是10 被驳回是12;
  2794. this.houseApplyUploadCompStart.proposerId = proposerId;
  2795. this.houseApplyUploadCompStart.homeApplyStatus = homeApplyStatus == '10' ? '12' : homeApplyStatus; // 申请通过是10 被驳回是12
  2796. this.houseApplyUploadCompEnd.proposerId = proposerId;
  2797. this.houseApplyUploadCompEnd.homeApplyStatus = homeApplyStatus;
  2798. // 初始化村级审核现场图
  2799. this.uploadImgVillage.fileList = value.tHouseApproveVillageOptions ? value.tHouseApproveVillageOptions.villagePlan : '';
  2800. this.uploadImgVillage.proposerId = value.id;
  2801. // 初始化自然资源审批现场图
  2802. this.uploadImgNature.fileList = value.tHouseApproveNatureOptions ? value.tHouseApproveNatureOptions.naturePlan : '';
  2803. this.uploadImgNature.proposerId = value.id;
  2804. // 初始化其他部审批现场图
  2805. this.uploadImgOther.fileList = value.tHouseApproveOtherOptions ? value.tHouseApproveOtherOptions.otherPlan : '';
  2806. this.uploadImgOther.proposerId = value.id;
  2807. // 初始化农村农业部审批现场图
  2808. this.uploadImgAgriculture.fileList = value.tHouseApproveAgricultureOptions ? value.tHouseApproveAgricultureOptions.agriculturePlan : '';
  2809. this.uploadImgAgriculture.proposerId = value.id;
  2810. // 初始化镇级审批现场图
  2811. this.uploadImgTown.fileList = value.tHouseApproveTownOptions ? value.tHouseApproveTownOptions.townPlan : '';
  2812. this.uploadImgTown.proposerId = value.id;
  2813. // 初始化验收农村农业部审批现场图
  2814. this.uploadImgEndNongyePlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.nongyePlan : '';
  2815. this.uploadImgEndNongyePlan.proposerId = value.id;
  2816. // 初始化验收自然资源部审批现场图
  2817. this.uploadImgEndNaturePlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.naturePlan : '';
  2818. this.uploadImgEndNaturePlan.proposerId = value.id;
  2819. // 初始化验收其他部门审批现场图
  2820. this.uploadImgEndBuildingPlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.buildingPlan : '';
  2821. this.uploadImgEndBuildingPlan.proposerId = value.id;
  2822. // 初始化验收镇级审批现场图
  2823. this.uploadImgEndZhenPlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.zhenPlan : '';
  2824. this.uploadImgEndZhenPlan.proposerId = value.id;
  2825. // 初始化申请平面图
  2826. this.applicationDetail.tHouseApproveLocationplanOptions = value.tHouseApproveLocationplanOptions;
  2827. this.uploadImg.fileList = value.ydjfsp ? value.ydjfsp.zjdzlpmwzt : '';
  2828. this.uploadImg.proposerId = this.applicationDetail.id;
  2829. this.uploadImgAccepting.fileList = value.ydjfys ? value.ydjfys.jgpmjt : '';
  2830. this.uploadImgAccepting.proposerId = this.applicationDetail.id;
  2831. //地图编辑
  2832. this.pointDarw(null);
  2833. // this.pointDarwNature(null);
  2834. // this.pointWrapAcceptance(null);
  2835. // this.paintStartNatureMap(null);
  2836. break;
  2837. // 新建
  2838. case PROPOSER_ADD:
  2839. this.formEnabled.baseApplyEnabled = true;
  2840. this.formEnabled.baseApplyForm.baseFormEnabled = true;
  2841. this.formEnabled.submitEnabled = true;
  2842. this.formVisible.editVisible = true;
  2843. this.houseApplyUploadComp.full = false;
  2844. this.houseApplyUploadComp.readonly = false;
  2845. this.houseApplyUploadComp.homeApplyStatus = '11';
  2846. this.houseApplyUploadComp.proposerId = -1;
  2847. this.$nextTick(()=>{
  2848. getWorkflow(this.sysFarmer.deptId).then((resp) => {
  2849. this.$set(this.applicationDetail, 'proposerActiveIndex', 0);
  2850. this.$set(this.applicationDetail, 'startActiveIndex', -1);
  2851. this.$set(this.applicationDetail, 'endActiveIndex', -1);
  2852. this.$set(this.applicationDetail, 'applyStepList', resp.data.applyStepList.name);
  2853. this.$set(this.applicationDetail, 'startStepList', resp.data.startStepList.name);
  2854. this.$set(this.applicationDetail, 'endStepList', resp.data.endStepList.name);
  2855. });
  2856. })
  2857. this.pointDarw();
  2858. //this.initData();
  2859. break;
  2860. }
  2861. // 通用设置
  2862. // if(this.type =='done' && this.applicationDetail.tHouseApplyEnd == null && this.applicationDetail.tHouseApplyEnd.taskId ==null){
  2863. if(this.type =='done' && this.applicationDetail.ydjfys == null){
  2864. if (this.isAccepting()) {
  2865. this.active = PROPOSER_STAGE_START;
  2866. this.selectedTabName = PROPOSER_STAGE_START;
  2867. this.processKeyField = PROPOSER_STAGE_START_ACTIVITY;
  2868. this.attachmentActive = PROPOSER_STAGE_START;
  2869. }else if(this.isLandscope()){
  2870. this.active = PROPOSER_STAGE_START;
  2871. this.selectedTabName = PROPOSER_STAGE_START;
  2872. this.processKeyField = PROPOSER_STAGE_START_ACTIVITY;
  2873. this.attachmentActive = PROPOSER_STAGE_START;
  2874. }else
  2875. { // this.isBaseApply()
  2876. this.active = PROPOSER_STAGE_BASE_APPLY;
  2877. this.selectedTabName = PROPOSER_STAGE_BASE_APPLY;
  2878. this.attachmentActive = PROPOSER_STAGE_BASE_APPLY;
  2879. // 编辑时且为申请通过状态 -> 填写开工
  2880. if(this.proposerStatus == PROPOSER_EDIT && homeApplyStatus == '10')
  2881. {
  2882. this.active = PROPOSER_STAGE_START;
  2883. this.selectedTabName = PROPOSER_STAGE_START;
  2884. this.attachmentActive = PROPOSER_STAGE_START;
  2885. }
  2886. this.processKeyField = PROPOSER_STAGE_BASE_APPLY_ACTIVITY;
  2887. }
  2888. } else {
  2889. console.info(this.applicationDetail);
  2890. if (this.isLandscope()) {
  2891. this.active = PROPOSER_STAGE_START;
  2892. this.selectedTabName = PROPOSER_STAGE_START;
  2893. this.processKeyField = PROPOSER_STAGE_START_ACTIVITY;
  2894. this.attachmentActive = PROPOSER_STAGE_START;
  2895. } else if (this.isAccepting()) {
  2896. this.active = PROPOSER_STAGE_END;
  2897. this.selectedTabName = PROPOSER_STAGE_END;
  2898. // 编辑时且为申请通过状态 -> 查看验收草稿
  2899. if(this.proposerStatus == PROPOSER_VIEW && this.isProposeStatus(homeApplyStatus, ["3F"])){
  2900. this.selectedTabName = PROPOSER_STAGE_START;
  2901. }
  2902. this.processKeyField = PROPOSER_STAGE_END_ACTIVITY;
  2903. this.attachmentActive = PROPOSER_STAGE_END;
  2904. }
  2905. else { // this.isBaseApply()
  2906. this.active = PROPOSER_STAGE_BASE_APPLY;
  2907. this.selectedTabName = PROPOSER_STAGE_BASE_APPLY;
  2908. this.attachmentActive = PROPOSER_STAGE_BASE_APPLY;
  2909. // 编辑时且为申请通过状态 -> 填写开工
  2910. if(this.proposerStatus == PROPOSER_EDIT && homeApplyStatus == '1F')
  2911. {
  2912. this.active = PROPOSER_STAGE_START;
  2913. this.selectedTabName = PROPOSER_STAGE_START;
  2914. this.attachmentActive = PROPOSER_STAGE_START;
  2915. }
  2916. this.processKeyField = PROPOSER_STAGE_BASE_APPLY_ACTIVITY;
  2917. }
  2918. }
  2919. },
  2920. onJflxChanged(val){
  2921. let _this = this;
  2922. this.jflxColumns.map(function(item){
  2923. if(item.dictValue === val){
  2924. _this.$set(_this.applicationDetail, 'projectName', item.dictLabel);
  2925. _this.$set(_this.applicationDetail, 'jflx', item.dictValue);
  2926. }
  2927. });
  2928. },
  2929. // 获取query的意图
  2930. getFormIntent() {
  2931. console.log(this.type);
  2932. switch (this.type) {
  2933. case 'done':
  2934. case 'view':
  2935. this.proposerStatus = PROPOSER_VIEW;
  2936. break;
  2937. case 'add':
  2938. this.proposerStatus = PROPOSER_ADD;
  2939. break;
  2940. case 'modify':
  2941. case 'audit':
  2942. case 'todo':
  2943. this.proposerStatus = PROPOSER_EDIT;
  2944. break;
  2945. default:
  2946. this.proposerStatus = PROPOSER_VIEW;
  2947. break;
  2948. }
  2949. return this.proposerStatus;
  2950. },
  2951. // 获取日期, yyyy-MM-dd
  2952. getDate(d) {
  2953. return formatDate(d ? d : new Date(), 'yyyy-MM-dd');
  2954. },
  2955. // 初始化基础表单
  2956. reset() {
  2957. this.applicationDetail = {
  2958. sqhhzxm: "",
  2959. sqhhzxb: "",
  2960. sqhhznl: "" /* 年龄*/,
  2961. sqhhzlxdh: "",
  2962. sqhhzsfzh: "",
  2963. sqhhzhkszd: "",
  2964. sqhjtzz: "",
  2965. members: 0, // 家庭人口数
  2966. applyTime: this.getDate(),
  2967. sqly: "",
  2968. houseSource: "建房申请来源{农户自制,协管代办}", // 字典
  2969. homeApplyStatus: "", // 字典
  2970. auditStatus: "", // 字典
  2971. taskId: "",
  2972. taskName: "",
  2973. instanceId: "",
  2974. processKey: "",
  2975. existHomestead: "N",
  2976. xzjdmj: null, //现宅基地面积
  2977. qszsh: null,//权属证书号
  2978. xjzmj: null,//现建筑面积
  2979. xzjdczqk: null,// 现宅基地处置情况
  2980. xzjdblmj: null, //现宅基地保留面积m²
  2981. xzjdqtqk: null,// 现宅基地其他情况
  2982. nsqzjddz: null, // 拟申请宅基地地址
  2983. nsqzjdmj: null, // 拟申请宅基地面积
  2984. nsqzjdszd: null, // 东至
  2985. nsqzjdszx: null, // 西至
  2986. nsqzjdszn: null, // 南至
  2987. nsqzjdszb: null, // 北至
  2988. nsqzjddldm: "10", // 地类
  2989. zfjzmj: null, // 建筑面积
  2990. jzcs: null, // 建筑层数
  2991. jzgd: null, // 建筑高度
  2992. sjtz: "1", // 设计图纸
  2993. sfzqxlqlryj: "1", // 是否征求相邻权利人意见
  2994. jflx: "4",
  2995. nsqfjzdmj: null, //房基占地面积
  2996. sqrjtcyList: [],
  2997. fileList: []
  2998. }
  2999. },
  3000. //是否有宅基地选项改变
  3001. existHomesteadChange(name){
  3002. console.log(name);
  3003. this.applicationDetail.sfzqxlqlryj =name;
  3004. // if (name == 'Y'){
  3005. // if (!this.applicationDetail.tHouseApplyCurrentSituation){
  3006. // //现宅基地情况
  3007. // this.$set(this.applicationDetail, 'tHouseApplyCurrentSituation', {
  3008. // //宅基地面积
  3009. // landArea: null,
  3010. // //人均宅基地面积
  3011. // landPerArea: null,
  3012. // //不动产单元号
  3013. // landCertificateNo: null,
  3014. // //农民房屋幢号
  3015. // houseCertificateNo: null,
  3016. // //建筑面积
  3017. // buildingArea: null,
  3018. // //人均建筑面积
  3019. // buildingPerArea: null,
  3020. // //现宅基地处置情况 字典 land_isposal
  3021. // landIsposal: null
  3022. // });
  3023. // }
  3024. // }
  3025. // else
  3026. // this.$set(this.applicationDetail, 'tHouseApplyCurrentSituation', null);
  3027. },
  3028. //添加家庭成员
  3029. addFamily(){
  3030. this.applicationDetail.tHouseApplyProposer.members++;
  3031. this.applicationDetail.tHomeapplySqrjtcys.push({
  3032. //applyProposerId: this.applicationDetail.tHouseApplyFamilyMembers[0].applyProposerId,
  3033. memberName:null,
  3034. age:null,
  3035. familyStatusName:null,
  3036. idcard :null,
  3037. householdRegister:null,
  3038. });
  3039. this.$nextTick(() => {
  3040. this.$refs.memberTabs.scrollTo(this.applicationDetail.tHomeapplySqrjtcys.length - 1);
  3041. });
  3042. },
  3043. //删除家庭成员
  3044. deleteFamily(index){
  3045. this.applicationDetail.tHouseApplyProposer.members--;
  3046. this.applicationDetail.tHomeapplySqrjtcys.splice(index,1)
  3047. this.$nextTick(() => {
  3048. this.$refs.memberTabs.scrollTo(Math.max(index - 1, 0));
  3049. });
  3050. },
  3051. remoteTransfereeMethod(val){
  3052. selectProposerNh({hzxm:val,deptId:this.sysFarmer.deptId}).then(res => {
  3053. this.nhxxList = res.rows;
  3054. this.showNhxx = true;
  3055. });
  3056. },
  3057. //返回上一步操作
  3058. goBack(){
  3059. // this.$router.push({path: '/sunVillage_info/homeApplication/applicationList'});
  3060. // this.$router.back(-1);
  3061. this.$router.push({name: this.$router.back(-1)});
  3062. },
  3063. // 当地图绘制完成时
  3064. onMapDrawFinished(data) {
  3065. console.info(data);
  3066. this.drawInsert = data;
  3067. },
  3068. // 当申请地图被重置时
  3069. onMapDrawReseted() {
  3070. this.drawInsert = null;
  3071. if(this.applicationDetail.ydjfkg.theGeomJson)
  3072. {
  3073. let lastData = JSON.parse(this.applicationDetail.ydjfkg.theGeomJson);
  3074. if(lastData.hasOwnProperty('coordinates')) // 从后台获取的
  3075. this.drawInsert = lastData.coordinates;
  3076. }
  3077. },
  3078. // 全局提交
  3079. onSubmit(intent){
  3080. console.log(this.applicationDetail, intent);
  3081. let chars = window.location.href.split("lat=")[1] || "";
  3082. if(chars !="" && chars != null && chars !=undefined){
  3083. this.mapBcZb =[window.location.href.split("lng=")[1] || "",(window.location.href.split("lat=")[1] || "").split("&lng=")[0] || ""];
  3084. this.mapZbQd();
  3085. }
  3086. switch (intent) {
  3087. case 'add':
  3088. case 'modify':
  3089. this.saveProposerApply();
  3090. break;
  3091. case 'submit':
  3092. this.submitApplyProposer();
  3093. break;
  3094. case 'save_and_submit':
  3095. this.saveProposerApply(true);
  3096. break;
  3097. case 'agree':
  3098. this.auditProposer(true);
  3099. break;
  3100. case 'reject':
  3101. this.$dialog.confirm({
  3102. message: '是否确认驳回此条申请',
  3103. }).then(() => {
  3104. this.auditProposer(false);
  3105. });
  3106. break;
  3107. case 'start':
  3108. this.startProposerApply();
  3109. break;
  3110. case 'start_and_submit':
  3111. this.startProposerApply(true);
  3112. break;
  3113. case 'end':
  3114. this.endProposerApply(true);
  3115. break;
  3116. default:
  3117. console.error('Unknown intent! ', intent);
  3118. break;
  3119. }
  3120. },
  3121. // 初次申请草稿的附件上传
  3122. onUploadFinished(fileIdList) {
  3123. console.info(fileIdList);
  3124. this.$set(this.applicationDetail, "fileList", fileIdList);
  3125. },
  3126. // 获取申请人信息
  3127. getApplyerDetail(val){
  3128. console.info(val)
  3129. getHomeMembers({idcard:val.idcard}).then(res => {
  3130. if(res.data)
  3131. {
  3132. this.applicationDetail = res.data;
  3133. this.$set(this.applicationDetail, 'jflx', "4");
  3134. this.$set(this.applicationDetail, 'projectName', "分户新建");
  3135. this.$set(this.applicationDetail, 'nsqzjddldm', "10");
  3136. this.$set(this.applicationDetail, 'sfzqxlqlryj', "1");
  3137. this.$set(this.applicationDetail, 'xzjdczqk', "1");
  3138. this.$set(this.applicationDetail, 'suyqrdm', val.suyqrdm);
  3139. this.$set(this.applicationDetail, 'deptName', val.deptName);
  3140. this.$set(this.applicationDetail, 'createBy', val.memberName);
  3141. if(!this.applicationDetail.sfyyzjd)
  3142. this.applicationDetail.sfyyzjd = 'N';
  3143. this.applicationDetail.applyTime = this.getDate();
  3144. this.getMemberCurrentSituation(val.idcard);
  3145. console.info(this.applicationDetail.sqrjtcyList);
  3146. if(this.applicationDetail.sqrjtcyList.length > 0)
  3147. {
  3148. for(let i = 0; i < this.applicationDetail.sqrjtcyList.length; i++)
  3149. {
  3150. this.updateMemberInfo(i);
  3151. }
  3152. }
  3153. }
  3154. });
  3155. this.showNhxx = false;
  3156. },
  3157. // 检查字符串, 不符合返回true
  3158. checkString(value, regexp) {
  3159. let res = value === undefined || value === null || value === '' || value.toString().trim().length === 0;
  3160. if(res)
  3161. return true;
  3162. if(regexp)
  3163. res = !value.match(regexp);
  3164. return res;
  3165. },
  3166. // 保存申请(是否提交)
  3167. saveProposerApply(submit) {
  3168. this.$refs.form.validate().then(() => {
  3169. let msg = this.validateBaseApplyFormBase();
  3170. console.info(msg)
  3171. if(msg)
  3172. {
  3173. this.notify(msg, 'danger');
  3174. return;
  3175. }
  3176. // //地图判断
  3177. // if (this.drawInsert != null) {
  3178. // this.applicationDetail.theGeom = JSON.stringify(this.drawInsert);
  3179. // }
  3180. // else
  3181. // {
  3182. // if(this.applicationDetail.sfyyzjd === 'Y' && this.applicationDetail.theGeom) // 新增时 && 已有宅基地时 && 重新画过图且被清理掉
  3183. // {
  3184. // this.applicationDetail.theGeom = this.convertGeom(this.applicationDetail.theGeom);
  3185. // }
  3186. // }
  3187. console.log("进行保存", this.applicationDetail);
  3188. this.$set(this.applicationDetail, 'applyUserId', this.sysFarmer.id);
  3189. this.$set(this.applicationDetail, 'auditStatus', "0");
  3190. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3191. if(submit)
  3192. {
  3193. this.id = response.data;
  3194. this.submitApplyProposer();
  3195. }
  3196. else
  3197. {
  3198. this.notify("保存成功", 'success');
  3199. this.goBack();
  3200. }
  3201. }).catch((e) => {
  3202. this.notify("保存失败!", 'danger');
  3203. }).finally(() => {
  3204. });
  3205. }).catch(e => {
  3206. let msg = this.validateBaseApplyFormBase();
  3207. if(msg)
  3208. {
  3209. this.notify(msg, 'danger');
  3210. return;
  3211. }
  3212. });
  3213. },
  3214. // 判断状态是否符合
  3215. isProposeStatus(target, arr) {
  3216. if(!Array.isArray(arr))
  3217. arr = arr.split(',');
  3218. return arr.indexOf(target) !== -1;
  3219. },
  3220. // 判断状态是否不符合
  3221. isNotProposeStatus(target, arr) {
  3222. return !this.isProposeStatus(target, arr);
  3223. },
  3224. // 是否当前是申请流程
  3225. isBaseApply() {
  3226. return ["11","12","13","14", "15","17", "19", "1C", "1D", "1F"].indexOf(this.applicationDetail.homeApplyStatus) !== -1;
  3227. },
  3228. // 是否当前是开工流程
  3229. isLandscope() {
  3230. return ["31", "32", "34", "3C", "3F","37", "39"].indexOf(this.applicationDetail.homeApplyStatus) !== -1;
  3231. },
  3232. // 是否当前是验收流程
  3233. isAccepting() {
  3234. return ["71", "72", "74","77", "79", "7C", "7F"].indexOf(this.applicationDetail.homeApplyStatus) !== -1;
  3235. },
  3236. // 获取当前申请人的宅基地信息
  3237. getMemberCurrentSituation(item) {
  3238. let _this = this;
  3239. let farmerCode = this.applicationDetail.nhdm;
  3240. checkDuplicateBuilding({farmerCode: farmerCode}).then(resp => {
  3241. if (resp.data) {
  3242. this.notify(resp.msg, 'danger');
  3243. } else {
  3244. checkDuplicateBuildingQuery(item).then(resp => {
  3245. if(resp.data !=null && resp.data !=""){
  3246. this.applicationDetail.sfyyzjd ="Y";
  3247. // 现宅基地及农房情况对象
  3248. if(resp.data.zjdzdxxList.length > 0){
  3249. this.zjdzdxxList = resp.data.zjdzdxxList;
  3250. this.applicationDetail.xzjdmj = resp.data.zjdzdxxList[0].zdmj; //宅基地面积
  3251. this.applicationDetail.xjzmj = resp.data.zjdzdxxList[0].scjzmj;
  3252. this.applicationDetail.qszsh = resp.data.zjdzdxxList[0].zsh;
  3253. this.showZjddm = resp.data.zjdzdxxList[0].zjddm;
  3254. this.$set(this.zjdzdxxDetailed, 'zdszd', resp.data.zjdzdxxList[0].zdszd);
  3255. this.$set(this.zjdzdxxDetailed, 'zdszn', resp.data.zjdzdxxList[0].zdszn);
  3256. this.$set(this.zjdzdxxDetailed, 'zdszx', resp.data.zjdzdxxList[0].zdszx);
  3257. this.$set(this.zjdzdxxDetailed, 'zdszb', resp.data.zjdzdxxList[0].zdszb);
  3258. this.$set(this.applicationDetail, 'sfyyzjd', "Y");
  3259. resp.data.zjdzdxxList.forEach(function(item){
  3260. _this.zjddmColumns.push({text:item.zjddm,value:item.zjddm});
  3261. })
  3262. }else{
  3263. this.$set(this.applicationDetail, 'sfyyzjd', "N");
  3264. }
  3265. // this.applicationDetail.tHouseApplyCurrentSituation.landPerArea= (resp.data.zdmj/(this.applicationDetail.tHouseApplyProposer.members +1)); //人均宅基地面积
  3266. // this.applicationDetail.tHouseApplyCurrentSituation.landCertificateNo= resp.data.bdcdyh; //不动产单元号
  3267. // this.applicationDetail.tHouseApplyCurrentSituation.buildingArea= resp.data.scjzmj; //建筑面积
  3268. // this.applicationDetail.tHouseApplyCurrentSituation.buildingPerArea= (resp.data.scjzmj/(this.applicationDetail.tHouseApplyProposer.members +1)); //人均建筑面积
  3269. // this.applicationDetail.tHouseApplyCurrentSituation.houseCertificateNo= resp.data.zrzh; //自然幢号
  3270. // this.applicationDetail.tHouseApplyCurrentSituation.landIsposal= null; // 现宅基地处置情况
  3271. // this.applicationDetail.tHouseApplyCurrentSituation.reservedArea= null; // 保留m²
  3272. // this.applicationDetail.tHouseApplyCurrentSituation.otherRemark= null; // 其他
  3273. // this.renderMapRegion(resp.data.theGeom);
  3274. } else {
  3275. // this.applicationDetail.sfyyzjd ="N";
  3276. // // 现宅基地及农房情况对象
  3277. // this.applicationDetail.tHouseApplyCurrentSituation.landArea = null; //宅基地面积
  3278. // this.applicationDetail.tHouseApplyCurrentSituation.landPerArea= null; //人均宅基地面积
  3279. // this.applicationDetail.tHouseApplyCurrentSituation.landCertificateNo= null; //权属证书号
  3280. // this.applicationDetail.tHouseApplyCurrentSituation.buildingPerArea= null; //人均建筑面积
  3281. // this.applicationDetail.tHouseApplyCurrentSituation.houseCertificateNo= null; //权属证书号
  3282. // this.applicationDetail.tHouseApplyCurrentSituation.landIsposal= null; // 现宅基地处置情况
  3283. // this.applicationDetail.tHouseApplyCurrentSituation.reservedArea= null; // 保留m²
  3284. // this.applicationDetail.tHouseApplyCurrentSituation.otherRemark= null; // 其他
  3285. // this.renderMapRegion(null);
  3286. }
  3287. });
  3288. }
  3289. });
  3290. },
  3291. // 绘制现有宅基地地图
  3292. renderMapRegion(json = null) { // json = theGeom
  3293. this.applicationDetail.tHouseApplyProposedSituation.theGeom = json;
  3294. if(json)
  3295. {
  3296. let obj = JSON.parse(json);
  3297. this.drawInsert = obj.coordinates;
  3298. }
  3299. else
  3300. this.drawInsert = null;
  3301. this.pointDarw(null);
  3302. },
  3303. // 提交申请
  3304. submitApplyProposer() {
  3305. if(this.applicationDetail.auditStatus == '2' && this.selectedTabName == 0){
  3306. updateOpretion(this.id).then();
  3307. }
  3308. customSubmitWLHT(this.id).then((resp) => {
  3309. this.notify("提交成功", 'success');
  3310. this.goBack();
  3311. }).catch((e) => {
  3312. this.notify("提交失败!", 'danger');
  3313. }).finally(() => {
  3314. });
  3315. },
  3316. // 判断角色是否符合
  3317. isInRoles(myRoles, requireRoles) {
  3318. if(!Array.isArray(myRoles))
  3319. myRoles = myRoles.split(',');
  3320. if(!Array.isArray(requireRoles))
  3321. requireRoles = requireRoles.split(',');
  3322. for(let r of requireRoles)
  3323. {
  3324. if(myRoles.indexOf(r) !== -1)
  3325. return true;
  3326. }
  3327. return false;
  3328. },
  3329. // 转换地图数据用于提交后台
  3330. convertGeom(json) {
  3331. let data = JSON.parse(json);
  3332. if(data.hasOwnProperty('coordinates'))
  3333. return JSON.stringify(data.coordinates);
  3334. return null;
  3335. },
  3336. zkshClick(){
  3337. if(this.zjdzdxxDetailedShow){
  3338. this.zjdzdxxDetailedShow = false;
  3339. }else{
  3340. this.zjdzdxxDetailedShow = true;
  3341. }
  3342. },
  3343. // 审批(同意/驳回)
  3344. auditProposer(pass) {
  3345. let _this = this;
  3346. switch (this.processKeyField) {
  3347. case PROPOSER_STAGE_BASE_APPLY_ACTIVITY: {
  3348. let comment;
  3349. const role = this.$store.getters.roles[0];
  3350. let msg = "";
  3351. switch (role) {
  3352. case "agriculture":
  3353. msg = this.validateAgricultureForm(pass);
  3354. if (msg) {
  3355. break;
  3356. }
  3357. comment = this.applicationDetail.ydjfsp.nyncbmscyj;
  3358. // if(this.$refs.pictureUploadApplyingTHouseApproveAgriculture && this.$refs.pictureUploadApplyingTHouseApproveAgriculture.isValid()) {
  3359. // this.submitHouseApproveAgricultureOptions().then(item=>{
  3360. if (msg) {
  3361. return;
  3362. }
  3363. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3364. this.complete(pass, comment);
  3365. }).catch(resp => {
  3366. this.notify(msg, 'danger');
  3367. this.notify("保存失败!", 'danger');
  3368. });
  3369. // });
  3370. // } else {
  3371. // if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.agriculturePlan)) {
  3372. // msg = "农村农业部门现场拍照不能为空";
  3373. // break;
  3374. // }
  3375. // }
  3376. break;
  3377. case "building":
  3378. msg = this.validateBuildingForm(pass);
  3379. comment = this.applicationDetail.ydjfsp.zfcxjsbmscyj;
  3380. // if(this.$refs.pictureUploadApplyingTHouseApproveOther && this.$refs.pictureUploadApplyingTHouseApproveOther.isValid()) {
  3381. // this.submitHouseApproveOtherOptions().then(item=>{
  3382. // setTimeout(() => {
  3383. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3384. this.complete(pass, comment);
  3385. }).catch(resp => {
  3386. this.notify(msg, 'danger');
  3387. this.notify("保存失败!", 'danger');
  3388. });
  3389. // }, 500);
  3390. // });
  3391. // } else {
  3392. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.otherPlan)) {
  3393. // msg = "住建部门现场拍照不能为空";
  3394. // break;
  3395. // }
  3396. // }
  3397. break;
  3398. case "nature_resource":
  3399. msg = this.validateNatureForm(pass);
  3400. if (msg) {
  3401. break;
  3402. }
  3403. this.$set(this.applicationDetail, 'tHouseApproveTownOptions', null);
  3404. this.$set(this.applicationDetail, 'tHouseApproveOtherOptions', null);
  3405. this.$set(this.applicationDetail, 'tHouseApproveAgricultureOptions', null);
  3406. comment = this.applicationDetail.ydjfsp.zrzybmscyj;
  3407. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3408. this.complete(pass, comment);
  3409. }).catch(resp => {
  3410. this.notify(msg, 'danger');
  3411. this.notify("保存失败!", 'danger');
  3412. });
  3413. break;
  3414. case "town_leader":
  3415. // msg = this.validateAgricultureForm(pass);
  3416. // if (msg) {
  3417. // break;
  3418. // }
  3419. // msg = this.validateNatureForm();
  3420. // if (msg) {
  3421. // break;
  3422. // }
  3423. //
  3424. // msg = this.validateBuildingForm();
  3425. // if (msg) {
  3426. // break;
  3427. // }
  3428. msg = this.validateTownForm();
  3429. if (msg) {
  3430. break;
  3431. }
  3432. comment = this.applicationDetail.ydjfsp.zfcxjsbmscyj;
  3433. // this.submitHouseApproveAgricultureOptions().then(item=>{
  3434. // _this.submitHouseApproveNatureplanOptions().then(item2=>{
  3435. // _this.submitHouseApproveOtherOptions().then(item3=>{
  3436. // if(_this.$refs.pictureUploadApplyingTHouseApproveTown && _this.$refs.pictureUploadApplyingTHouseApproveTown.isValid()) {
  3437. // _this.submitHouseApproveTownOptions().then(item4=>{
  3438. // //地图判断
  3439. // if (_this.drawInsert != null) {
  3440. // _this.applicationDetail.tHouseApproveNatureOptions.theGeom = JSON.stringify(_this.drawInsert);
  3441. // }
  3442. // else {
  3443. // if(_this.applicationDetail.tHouseApproveNatureOptions && _this.applicationDetail.tHouseApproveNatureOptions.theGeom == null){
  3444. // _this.applicationDetail.tHouseApproveNatureOptions.theGeom = _this.convertGeom(_this.applicationDetail.tHouseApplyProposedSituation.theGeom);
  3445. // }
  3446. // }
  3447. if(!pass){
  3448. comment = "驳回";
  3449. }
  3450. if(this.applicationDetail.ydjfsp.zjdzlpmwzt != null && this.applicationDetail.ydjfsp.zjdzlpmwzt !== "") {
  3451. // _this.submitHouseApproveLocationplanOptions(pass, comment).then(item5=>{
  3452. // _this.submitHouseApproveNatureplanOptions().then(item6=>{
  3453. // setTimeout(() => {
  3454. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3455. this.complete(pass, comment);
  3456. }).catch(resp => {
  3457. this.notify(msg, 'danger');
  3458. this.notify("保存失败!", 'danger');
  3459. });
  3460. // }, 500);
  3461. // });
  3462. // });
  3463. }else{
  3464. this.notify("宅基地坐落平面位置图不能为空", 'danger');
  3465. this.$refs.form.validate().then(() => {}).catch((e)=>{})
  3466. }
  3467. // });
  3468. // } else {
  3469. // if(!pass){
  3470. // comment = "驳回";
  3471. // }
  3472. // setTimeout(() => {
  3473. // saveHouseBaseInfo(_this.applicationDetail).then((response) => {
  3474. // _this.complete(pass, comment);
  3475. // }).catch(resp => {
  3476. // _this.notify(msg, 'danger');
  3477. // _this.notify("保存失败!", 'danger');
  3478. // });
  3479. // }, 500);
  3480. // }
  3481. // }
  3482. // });
  3483. // });
  3484. // });
  3485. break;
  3486. default:
  3487. if(this.checkString(this.applicationDetail.cjxzscyj))
  3488. msg = '村领导意见不能为空';
  3489. else
  3490. comment = this.applicationDetail.cjxzscyj;
  3491. if (this.checkString(this.applicationDetail.cjxzscr)) {
  3492. msg = "村级领导签名不能为空";
  3493. } else
  3494. if(this.$refs.pictureUploadApplyingTHouseApproveVillage && this.$refs.pictureUploadApplyingTHouseApproveVillage.isValid()) {
  3495. this.submitHouseApproveVillageplanOptions(pass, comment);
  3496. return;
  3497. } else {
  3498. setTimeout(() => {
  3499. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3500. this.complete(pass, comment);
  3501. }).catch(resp => {
  3502. this.notify(msg, 'danger');
  3503. this.notify("保存失败!", 'danger');
  3504. });
  3505. }, 500);
  3506. }
  3507. //}
  3508. // if(this.selectedTabName ==0){
  3509. // if(this.currentUserRole == 'village_leader'){
  3510. // //村级审核人员签字
  3511. // //if(this.checkString(this.applicationDetail.tHouseApproveVillageOptions.villageLeader))
  3512. // this.applicationDetail.tHouseApproveVillageOptions.villageLeader = res.fileName;
  3513. // } else if(this.currentUserRole == 'task_executor'){
  3514. // //自然资源部门签字
  3515. // if(this.checkString(this.applicationDetail.tHouseApproveNatureOptions.approveLeader))
  3516. // return '自然资源部门签字不能为空';
  3517. // this.applicationDetail.tHouseApproveNatureOptions.approveLeader = res.fileName;
  3518. // } else if (this.currentUserRole == ''){
  3519. // //其他部门签字
  3520. // if(this.checkString(this.applicationDetail.tHouseApproveOtherOptions.approveLeader))
  3521. // return '其他部门签字不能为空';
  3522. // this.applicationDetail.tHouseApproveOtherOptions.approveLeader = res.fileName;
  3523. // } else if (this.currentUserRole == ''){
  3524. // //农村农业部门签字
  3525. // if(this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.approveLeader))
  3526. // return '农村农业部门签字不能为空';
  3527. // this.applicationDetail.tHouseApproveAgricultureOptions.approveLeader = res.fileName;
  3528. // } else if (this.currentUserRole == ''){
  3529. // //镇级领导签字 tHouseApproveTownOptions
  3530. // if(this.checkString(this.applicationDetail.tHouseApproveTownOptions.approveLeader))
  3531. // return '镇级领导签字不能为空';
  3532. // this.applicationDetail.tHouseApproveTownOptions.approveLeader = res.fileName;
  3533. // }
  3534. // this.showesign =false;
  3535. // } else if(this.selectedTabName ==1){
  3536. //
  3537. // } else if (this.selectedTabName ==2){
  3538. //
  3539. // }
  3540. break;
  3541. }
  3542. if (msg) {
  3543. this.notify(msg, 'danger');
  3544. this.$refs.form.validate().then(() => {}).catch((e)=>{})
  3545. return;
  3546. }
  3547. }
  3548. break;
  3549. case PROPOSER_STAGE_START_ACTIVITY:
  3550. let _this = this;
  3551. const role = this.$store.getters.roles[0];
  3552. if(role === "nature_resource"){
  3553. if (this.drawInsert != null) {
  3554. this.applicationDetail.ydjfkg.theGeomJson = JSON.stringify(this.drawInsert);
  3555. }
  3556. else {
  3557. if(this.applicationDetail.ydjfkg.theGeomJson == null){
  3558. this.applicationDetail.ydjfkg.theGeomJson = this.convertGeom(this.applicationDetail.ydjfkg.theGeom);
  3559. }
  3560. }
  3561. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3562. this.complete(pass);
  3563. }).catch(resp => {
  3564. this.notify(msg, 'danger');
  3565. this.notify("保存失败!", 'danger');
  3566. });
  3567. }else{
  3568. this.complete(pass);
  3569. }
  3570. break;
  3571. case PROPOSER_STAGE_END_ACTIVITY : {
  3572. let comment;
  3573. let msg = "";
  3574. const role = this.$store.getters.roles[0];
  3575. switch (role) {
  3576. case "agriculture":
  3577. msg = this.validateAcceptingFormTown(undefined, role);
  3578. if (msg) {
  3579. break;
  3580. }
  3581. comment = this.applicationDetail.ydjfys.nyncbmysyj;
  3582. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3583. this.complete(pass, comment);
  3584. }).catch(err => {
  3585. this.notify('保存失败', 'danger');
  3586. });
  3587. break;
  3588. case "nature_resource":
  3589. msg = this.validateAcceptingFormTown(undefined, role);
  3590. if (msg) {
  3591. break;
  3592. }
  3593. comment = this.applicationDetail.ydjfys.zrzybmysyj;
  3594. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3595. this.complete(pass, comment);
  3596. }).catch(err => {
  3597. this.notify('保存失败', 'danger');
  3598. });
  3599. break;
  3600. case "town_leader":
  3601. msg = this.validateAcceptingFormTown();
  3602. if (msg) {
  3603. break;
  3604. }
  3605. comment = this.applicationDetail.ydjfys.xzzfysyj;
  3606. if (this.$refs.pictureUploadAccepting && _this.$refs.pictureUploadAccepting.isValid()) {
  3607. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3608. this.complete(pass, comment);
  3609. }).catch(err => {
  3610. this.notify('保存失败', 'danger');
  3611. });
  3612. }else{
  3613. if (this.checkString(this.applicationDetail.tHouseApplyEnd.locationPlan)) {
  3614. msg = "竣工平面简图不能为空";
  3615. }
  3616. }
  3617. break;
  3618. default:
  3619. comment = '同意';
  3620. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3621. this.complete(pass, comment);
  3622. }).catch(err => {
  3623. this.notify('保存失败', 'danger');
  3624. });
  3625. break;
  3626. }
  3627. if (msg) {
  3628. this.notify(msg, 'danger');
  3629. this.$refs.form.validate().then(() => {}).catch(e=>{});
  3630. return;
  3631. }
  3632. // //农村农业部
  3633. // if (this.$refs.tHouseApplyEndNongye && this.$refs.tHouseApplyEndNongye.isValid()) {
  3634. // this.submitHouseApproveEndNongyeOptions();
  3635. // return;
  3636. // }
  3637. // //自然资源部
  3638. // if (this.$refs.pictureUploadAccepting && this.$refs.pictureUploadAccepting.isValid()) {
  3639. // this.submitHouseApproveEndNatureOptions();
  3640. // return;
  3641. // }
  3642. // //乡镇领导部
  3643. // if (this.$refs.pictureUploadAccepting && this.$refs.pictureUploadAccepting.isValid()) {
  3644. // this.submitHouseApproveEndBZhenOptions();
  3645. // return;
  3646. // }
  3647. console.log(this.applicationDetail.tHouseApplyEnd);
  3648. }
  3649. break;
  3650. default:
  3651. break;
  3652. }
  3653. },
  3654. //村级领导审批现场图片
  3655. submitHouseApproveVillageplanOptions(pass, commentText) {
  3656. this.applicationDetail.tHouseApproveVillageOptions.villagePlan = null;
  3657. return this.$refs.pictureUploadApplyingTHouseApproveVillage.updatePlanFiles().then((x) => {
  3658. let list = [];
  3659. x.data.forEach((f) => {
  3660. let item = {
  3661. id: f.id,
  3662. fileName: f.fileName,
  3663. fileUrl: f.fileUrl,
  3664. fileType: f.fileType,
  3665. tableId: f.tableId,
  3666. tableName: f.tableName,
  3667. };
  3668. list.push(item);
  3669. });
  3670. this.applicationDetail.tHouseApproveVillageOptions.villagePlan = JSON.stringify(list);
  3671. if (this.checkString(this.applicationDetail.tHouseApproveVillageOptions.villagePlan)) {
  3672. return "村级现场拍照不能为空";
  3673. } else {
  3674. saveHouseBaseInfo(this.applicationDetail).then((response) => {
  3675. this.complete(pass, commentText);
  3676. }).catch(resp => {
  3677. this.notify("保存失败!", 'danger');
  3678. });
  3679. }
  3680. }).catch((x) => {
  3681. this.notify("村级上传现场照片失败!", 'danger');
  3682. });
  3683. },
  3684. //自然资源部门审批现场图片
  3685. submitHouseApproveNatureplanOptions() {
  3686. this.applicationDetail.tHouseApproveNatureOptions.naturePlan = null;
  3687. return this.$refs.pictureUploadApplyingTHouseApproveNature.updatePlanFiles().then((x) => {
  3688. let list = [];
  3689. x.data.forEach((f) => {
  3690. let item = {
  3691. id: f.id,
  3692. fileName: f.fileName,
  3693. fileUrl: f.fileUrl,
  3694. fileType: f.fileType,
  3695. tableId: f.tableId,
  3696. tableName: f.tableName,
  3697. };
  3698. list.push(item);
  3699. });
  3700. this.applicationDetail.tHouseApproveNatureOptions.naturePlan = JSON.stringify(list);
  3701. if(this.checkString(this.applicationDetail.tHouseApproveNatureOptions.naturePlan)){
  3702. return "自然资源部门现场拍照不能为空";
  3703. }
  3704. }).catch((x) => {
  3705. this.notify("自然资源部门上传现场照片失败!", 'danger');
  3706. });
  3707. },
  3708. //农村农业部门审批现场图片
  3709. submitHouseApproveAgricultureOptions() {
  3710. this.applicationDetail.tHouseApproveAgricultureOptions.agriculturePlan = null;
  3711. return this.$refs.pictureUploadApplyingTHouseApproveAgriculture.updatePlanFiles().then((x) => {
  3712. let list = [];
  3713. x.data.forEach((f) => {
  3714. let item = {
  3715. id: f.id,
  3716. fileName: f.fileName,
  3717. fileUrl: f.fileUrl,
  3718. fileType: f.fileType,
  3719. tableId: f.tableId,
  3720. tableName: f.tableName,
  3721. };
  3722. list.push(item);
  3723. });
  3724. this.applicationDetail.tHouseApproveAgricultureOptions.agriculturePlan = JSON.stringify(list);
  3725. if(this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.agriculturePlan)){
  3726. return "农村农业部现场拍照不能为空";
  3727. }
  3728. }).catch((x) => {
  3729. this.notify("农村农业部上传现场照片失败!", 'danger');
  3730. });
  3731. },
  3732. //其他部门审批现场图片
  3733. submitHouseApproveOtherOptions() {
  3734. this.applicationDetail.tHouseApproveOtherOptions.otherPlan = null;
  3735. return this.$refs.pictureUploadApplyingTHouseApproveOther.updatePlanFiles().then((x) => {
  3736. let list = [];
  3737. x.data.forEach((f) => {
  3738. let item = {
  3739. id: f.id,
  3740. fileName: f.fileName,
  3741. fileUrl: f.fileUrl,
  3742. fileType: f.fileType,
  3743. tableId: f.tableId,
  3744. tableName: f.tableName,
  3745. };
  3746. list.push(item);
  3747. });
  3748. this.applicationDetail.tHouseApproveOtherOptions.otherPlan = JSON.stringify(list);
  3749. if(this.checkString(this.applicationDetail.tHouseApproveOtherOptions.otherPlan)){
  3750. return "其他部门现场拍照不能为空";
  3751. }
  3752. }).catch((x) => {
  3753. this.notify("其他部门上传现场照片失败!", 'danger');
  3754. });
  3755. },
  3756. //镇级领导审批现场图片
  3757. submitHouseApproveTownOptions() {
  3758. this.applicationDetail.tHouseApproveTownOptions.townPlan = null;
  3759. return this.$refs.pictureUploadApplyingTHouseApproveTown.updatePlanFiles().then((x) => {
  3760. let list = [];
  3761. x.data.forEach((f) => {
  3762. let item = {
  3763. id: f.id,
  3764. fileName: f.fileName,
  3765. fileUrl: f.fileUrl,
  3766. fileType: f.fileType,
  3767. tableId: f.tableId,
  3768. tableName: f.tableName,
  3769. };
  3770. list.push(item);
  3771. });
  3772. this.applicationDetail.tHouseApproveTownOptions.townPlan = JSON.stringify(list);
  3773. if(this.checkString(this.applicationDetail.tHouseApproveTownOptions.townPlan)){
  3774. return "镇级领导现场拍照不能为空";
  3775. }
  3776. }).catch((x) => {
  3777. this.notify("镇级领导上传现场照片失败!", 'danger');
  3778. });
  3779. },
  3780. //验收农业部门审批现场图片
  3781. submitHouseApproveEndNongyeOptions() {
  3782. this.applicationDetail.tHouseApplyEnd.nongyePlan = null;
  3783. return this.$refs.tHouseApplyEndNongye.updatePlanFiles().then((x) => {
  3784. let list = [];
  3785. x.data.forEach((f) => {
  3786. let item = {
  3787. id: f.id,
  3788. fileName: f.fileName,
  3789. fileUrl: f.fileUrl,
  3790. fileType: f.fileType,
  3791. tableId: f.tableId,
  3792. tableName: f.tableName,
  3793. };
  3794. list.push(item);
  3795. });
  3796. this.applicationDetail.tHouseApplyEnd.nongyePlan = JSON.stringify(list);
  3797. if(this.checkString(this.applicationDetail.tHouseApplyEnd.nongyePlan)){
  3798. return "农业部门现场拍照不能为空";
  3799. }
  3800. }).catch((x) => {
  3801. this.notify("农业部门上传现场照片失败!", 'danger');
  3802. });
  3803. },
  3804. //验收自然资源部门审批现场图片
  3805. submitHouseApproveEndNatureOptions() {
  3806. this.applicationDetail.tHouseApplyEnd.naturePlan = null;
  3807. return this.$refs.tHouseApplyEndNature.updatePlanFiles().then((x) => {
  3808. let list = [];
  3809. x.data.forEach((f) => {
  3810. let item = {
  3811. id: f.id,
  3812. fileName: f.fileName,
  3813. fileUrl: f.fileUrl,
  3814. fileType: f.fileType,
  3815. tableId: f.tableId,
  3816. tableName: f.tableName,
  3817. };
  3818. list.push(item);
  3819. });
  3820. this.applicationDetail.tHouseApplyEnd.naturePlan = JSON.stringify(list);
  3821. // if(this.checkString(this.applicationDetail.tHouseApplyEnd.naturePlan)){
  3822. // return "自然资源部门现场拍照不能为空";
  3823. // }
  3824. }).catch((x) => {
  3825. this.notify("自然资源部门上传现场照片失败!", 'danger');
  3826. });
  3827. },
  3828. //验收住建部门审批现场图片
  3829. submitHouseApproveEndBuildingOptions() {
  3830. this.applicationDetail.tHouseApplyEnd.buildingPlan = null;
  3831. this.$refs.tHouseApplyEndBuilding.updatePlanFiles().then((x) => {
  3832. let list = [];
  3833. x.data.forEach((f) => {
  3834. let item = {
  3835. id: f.id,
  3836. fileName: f.fileName,
  3837. fileUrl: f.fileUrl,
  3838. fileType: f.fileType,
  3839. tableId: f.tableId,
  3840. tableName: f.tableName,
  3841. };
  3842. list.push(item);
  3843. });
  3844. this.applicationDetail.tHouseApplyEnd.buildingPlan = JSON.stringify(list);
  3845. if(this.checkString(this.applicationDetail.tHouseApplyEnd.buildingPlan)){
  3846. return "住建部门现场拍照不能为空";
  3847. }
  3848. }).catch((x) => {
  3849. this.notify("住建部门上传现场照片失败!", 'danger');
  3850. });
  3851. },
  3852. //验收镇政府审批现场图片
  3853. submitHouseApproveEndBZhenOptions() {
  3854. this.applicationDetail.tHouseApplyEnd.zhenPlan = null;
  3855. return this.$refs.tHouseApplyEndZhen.updatePlanFiles().then((x) => {
  3856. let list = [];
  3857. x.data.forEach((f) => {
  3858. let item = {
  3859. id: f.id,
  3860. fileName: f.fileName,
  3861. fileUrl: f.fileUrl,
  3862. fileType: f.fileType,
  3863. tableId: f.tableId,
  3864. tableName: f.tableName,
  3865. };
  3866. list.push(item);
  3867. });
  3868. this.applicationDetail.tHouseApplyEnd.zhenPlan = JSON.stringify(list);
  3869. if(this.checkString(this.applicationDetail.tHouseApplyEnd.zhenPlan)){
  3870. return "镇政府现场拍照不能为空";
  3871. }
  3872. }).catch((x) => {
  3873. this.notify("镇政府上传现场照片失败!", 'danger');
  3874. });
  3875. },
  3876. // 带平面图附件上传的镇级申请审批
  3877. submitHouseApproveLocationplanOptions(pass, commentText) {
  3878. this.applicationDetail.ydjfsp.zjdzlpmwzt = null;
  3879. return this.$refs.pictureUploadApplying.updatePlanFiles().then((x) => {
  3880. let list = [];
  3881. x.data.forEach((f) => {
  3882. let item = {
  3883. id: f.id,
  3884. fileName: f.fileName,
  3885. fileUrl: f.fileUrl,
  3886. fileType: f.fileType,
  3887. tableId: f.tableId,
  3888. tableName: f.tableName,
  3889. };
  3890. list.push(item);
  3891. });
  3892. this.applicationDetail.ydjfsp.zjdzlpmwzt = list[0].fileUrl;
  3893. }).catch((x) => {
  3894. this.notify("上传宅基地坐落平面位置图失败!", 'danger');
  3895. });
  3896. },
  3897. fileUpdate(val){
  3898. console.info(val)
  3899. const params = new FormData();
  3900. params.append("tableId", this.applicationDetail.ydjfsp.id);
  3901. params.append("tableName", "t_homeapply_ydjfsp");
  3902. params.append("bizPath", "upload");
  3903. params.append("fileType", "0");
  3904. params.append('file', val.file);
  3905. attach(params).then((resp) => {
  3906. this.$set(this.applicationDetail.ydjfsp, 'zjdzlpmwzt',resp.fileUrl);
  3907. });
  3908. },
  3909. fileUpdatePmt(val){
  3910. console.info(val)
  3911. const params = new FormData();
  3912. params.append("tableId", this.applicationDetail.ydjfys.id);
  3913. params.append("tableName", "t_homeapply_ydjfsq");
  3914. params.append("bizPath", "upload");
  3915. params.append("fileType", "0");
  3916. params.append('file', val.file);
  3917. attach(params).then((resp) => {
  3918. this.$set(this.applicationDetail.ydjfys, 'jgpmjt',resp.fileUrl);
  3919. });
  3920. },
  3921. // 带平面图附件上传的镇级验收审批
  3922. submitHouseApplyEndLocationplanOptions(pass, commentText) {
  3923. return this.$refs.pictureUploadAccepting.updatePlanFiles()
  3924. .then((x) => {
  3925. let list = [];
  3926. x.data.forEach((f) => {
  3927. let item = {
  3928. id: f.id,
  3929. fileName: f.fileName,
  3930. fileUrl: f.fileUrl,
  3931. fileType: f.fileType,
  3932. tableId: f.tableId,
  3933. tableName: f.tableName,
  3934. };
  3935. list.push(item);
  3936. });
  3937. this.applicationDetail.tHouseApplyEnd.locationPlan = JSON.stringify(list);
  3938. }).catch((x) => {
  3939. this.notify("上传宅基地坐落平面位置图失败!", 'danger');
  3940. });
  3941. },
  3942. // 审批工具函数(同意/驳回, 意见)
  3943. complete(pass, comment) {
  3944. if(!this.taskId || !this.instanceId)
  3945. {
  3946. console.error(this.taskId, this.instanceId);
  3947. return false;
  3948. }
  3949. let data = {
  3950. taskId: this.taskId,
  3951. instanceId: this.instanceId,
  3952. variables: JSON.stringify({
  3953. pass: pass ? "true" : "false",
  3954. comment: comment ? comment : (pass ? '同意' : '驳回'),
  3955. }),
  3956. };
  3957. request({
  3958. url: "/activiti/process/complete",
  3959. method: "post",
  3960. params: data,
  3961. }).then((response) => {
  3962. this.notify("操作成功", 'success');
  3963. this.$router.go(0);
  3964. this.goBack();
  3965. }).catch(e => {
  3966. this.notify("操作失败!", 'danger');
  3967. });
  3968. return true;
  3969. },
  3970. // 请求结果提示工具函数
  3971. notify(message, type) {
  3972. Notify.clear();
  3973. Notify({ type: type || 'primary', message: message });
  3974. },
  3975. // 当自然资源部门地图绘制被重置时
  3976. onNatureMapDrawReseted() {
  3977. this.drawInsert = null;
  3978. if(this.applicationDetail.tHouseApproveNatureOptions.theGeom)
  3979. {
  3980. let lastData = JSON.parse(this.applicationDetail.tHouseApproveNatureOptions.theGeom);
  3981. if(lastData.hasOwnProperty('coordinates')) // 从后台获取的
  3982. this.drawInsert = lastData.coordinates;
  3983. }
  3984. },
  3985. // 当验收地图绘制被重置时
  3986. onAcceptanceMapDrawReseted() {
  3987. this.drawInsert = null;
  3988. if(this.applicationDetail.tHouseApplyEnd.theGeom)
  3989. {
  3990. let lastData = JSON.parse(this.applicationDetail.tHouseApplyEnd.theGeom);
  3991. if(lastData.hasOwnProperty('coordinates')) // 从后台获取的
  3992. this.drawInsert = lastData.coordinates;
  3993. }
  3994. },
  3995. // 打开附件树
  3996. openAttachment() {
  3997. this.attachmentVisible = true;
  3998. if(this.attachmentActive == this.active)
  3999. this.$nextTick(() => {
  4000. this.$refs.attachmentDialog.scrollTo(this.active);
  4001. });
  4002. },
  4003. // 选择步骤页面
  4004. selectTab(index) {
  4005. if(index <= this.active)
  4006. {
  4007. this.selectedTabName = index;
  4008. }
  4009. //console.log(index, this.active,this.selectedTabName);
  4010. },
  4011. // 保存开工(是否提交)
  4012. startProposerApply(submit) {
  4013. console.info(submit);
  4014. let msg = this.validateStartFormBase();
  4015. if (msg) {
  4016. this.notify(msg, 'danger');
  4017. return;
  4018. }
  4019. this.$set(this.applicationDetail, 'applyUserId', this.sysFarmer.id);
  4020. saveHomeBaseInfo(this.applicationDetail).then((resp) => {
  4021. if(submit)
  4022. {
  4023. submitStartWLHT(this.applicationDetail.id).then(resp => {
  4024. this.notify("操作成功", 'success');
  4025. this.goBack();
  4026. }).catch((e) => {
  4027. this.notify("操作失败!", 'danger');
  4028. });
  4029. }
  4030. else
  4031. {
  4032. this.notify("保存成功", 'success');
  4033. this.goBack();
  4034. }
  4035. }).catch((e) => {
  4036. this.notify('保存失败', 'danger');
  4037. });
  4038. },
  4039. // 保存验收(是否提交)
  4040. endProposerApply(submit) {
  4041. // this.$refs.form.validate().then(() => {
  4042. let msg = this.validateAcceptingFormBase();
  4043. if (msg) {
  4044. this.notify(msg, 'danger');
  4045. return;
  4046. }
  4047. // if (this.drawInsert != null) {
  4048. // this.applicationDetail.tHouseApplyEnd.theGeom = JSON.stringify(this.drawInsert);
  4049. // }
  4050. // else {
  4051. // if(this.applicationDetail.tHouseApplyEnd.theGeom == null){
  4052. // this.applicationDetail.tHouseApplyEnd.theGeom = this.convertGeom(this.applicationDetail.tHouseApproveNatureOptions.theGeom);
  4053. // }
  4054. // }
  4055. console.info(this.applicationDetail);
  4056. saveHomeBaseInfo(this.applicationDetail).then(resp => {
  4057. if(submit)
  4058. {
  4059. submitEndWLHT(this.applicationDetail.id).then(resp => {
  4060. this.notify("操作成功", 'success');
  4061. this.goBack();
  4062. }).catch(err => {
  4063. this.notify("操作失败!", 'danger');
  4064. });
  4065. }
  4066. else
  4067. {
  4068. this.notify("保存成功", 'success');
  4069. this.goBack();
  4070. }
  4071. }).catch(err => {
  4072. this.notify('保存失败', 'danger');
  4073. });
  4074. // }).catch(e => {
  4075. // let msg = this.validateAcceptingFormBase();
  4076. // if (msg) {
  4077. // this.notify(msg, 'danger');
  4078. // return;
  4079. // }
  4080. // });
  4081. },
  4082. // 获取登录人位置坐标
  4083. getLandCoord(func) {
  4084. if (func
  4085. && this.tGeoOrganizationLng !== null && this.tGeoOrganizationLng !== ''
  4086. && this.tGeoOrganizationLat !== null && this.tGeoOrganizationLat !== '') {
  4087. this.$nextTick(() => {
  4088. func(this.tGeoOrganizationLng, this.tGeoOrganizationLat);
  4089. })
  4090. }
  4091. else {
  4092. console.info(this.deptId);
  4093. getQueryLand(this.deptId).then((response) => {
  4094. if (response.code == 200) {
  4095. let InsertCode = response.data;
  4096. this.form.orgCode = InsertCode.orgCode;
  4097. this.tGeoOrganizationLat = InsertCode.lat;
  4098. this.tGeoOrganizationLng = InsertCode.lng;
  4099. if(func)
  4100. {
  4101. func(this.tGeoOrganizationLng, this.tGeoOrganizationLat);
  4102. }
  4103. }
  4104. });
  4105. }
  4106. },
  4107. validateBaseApplyFormBase() {
  4108. if (this.checkString(this.applicationDetail.sqhhzxm)) {
  4109. return "申请户主姓名不能为空";
  4110. }
  4111. if (this.checkString(this.applicationDetail.sqhhzxb)) {
  4112. return "户主性别不能为空";
  4113. }
  4114. if (this.checkString(this.applicationDetail.sqhhznl)) {
  4115. return "户主年龄不能为空";
  4116. }
  4117. if (this.checkString(this.applicationDetail.sqhhzlxdh, /(^\d{7}(\d{4})?$)/)) {
  4118. return "请填写有效的联系电话";
  4119. }
  4120. if (this.checkString(this.applicationDetail.sqhhzsfzh, /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/)) {
  4121. return "请填写有效的身份证号";
  4122. }
  4123. if (this.checkString(this.applicationDetail.sqhhzhkszd)) {
  4124. return "户口所在地不能为空";
  4125. }
  4126. // if (this.checkString(this.applicationDetail.tHouseApplyProposer.familyAddress)) {
  4127. // return "家庭住址不能为空";
  4128. // }
  4129. // if (this.checkString(this.applicationDetail.tHouseApplyProposer.members)) {
  4130. // return "家庭人口数不能为空";
  4131. // }
  4132. // if (this.checkString(this.applicationDetail.tHouseApplyProposer.existHomestead)) {
  4133. // return "是否已有宅基地不能为空";
  4134. // }
  4135. for(let i in this.applicationDetail.sqrjtcyList)
  4136. {
  4137. let v = this.applicationDetail.sqrjtcyList[i];
  4138. if (this.checkString(v.xm)) {
  4139. return "成员姓名不能为空";
  4140. }
  4141. if (this.checkString(v.nl)) {
  4142. return "年龄不能为空";
  4143. }
  4144. if (this.checkString(v.yhzgx)) {
  4145. return "与户主关系不能为空";
  4146. }
  4147. if (this.checkString(v.sfzh, /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/)) {
  4148. return "请填写有效的家庭成员身份证";
  4149. }
  4150. if (this.checkString(v.hkszd)) {
  4151. return "户口所在地不能为空";
  4152. }
  4153. }
  4154. if(this.applicationDetail.sfyyzjd === 'Y')
  4155. {
  4156. if (this.checkString(this.applicationDetail.xzjdmj)) {
  4157. return "宅基地面积不能为空";
  4158. }
  4159. // if (this.checkString(this.applicationDetail.tHouseApplyCurrentSituation.landPerArea)) {
  4160. // return "人均宅基地面积不能为空";
  4161. // }
  4162. if (this.checkString(this.applicationDetail.xjzmj)) {
  4163. return "建筑面积不能为空";
  4164. }
  4165. // if (this.checkString(this.applicationDetail.tHouseApplyCurrentSituation.buildingPerArea)) {
  4166. // return "人均建筑面积不能为空";
  4167. // }
  4168. // if (this.checkString(this.applicationDetail.tHouseApplyCurrentSituation.landCertificateNo)) {
  4169. // return "不动产单元号不能为空";
  4170. // }
  4171. if (this.checkString(this.applicationDetail.xzjdczqk)) {
  4172. return "处置情况不能为空";
  4173. }
  4174. if(this.applicationDetail.xzjdczqk == '1')
  4175. {
  4176. if (this.checkString(this.applicationDetail.xzjdblmj)) {
  4177. return "保留面积不能为空";
  4178. }
  4179. }
  4180. else if(this.applicationDetail.xzjdczqk == '3')
  4181. {
  4182. if (this.checkString(this.applicationDetail.xzjdzqtqk)) {
  4183. return "处置情况不能为空";
  4184. }
  4185. }
  4186. if (this.checkString(this.applicationDetail.qszsh)) {
  4187. return "权属证书号不能为空";
  4188. }
  4189. }
  4190. if (this.checkString(this.applicationDetail.nsqzjdmj)) {
  4191. return "宅基地面积不能为空";
  4192. }
  4193. if (this.checkString(this.applicationDetail.nsqfjzdmj)) {
  4194. return "房基占地面积不能为空";
  4195. }
  4196. if (this.checkString(this.applicationDetail.nsqzjddz)) {
  4197. return "地址不能为空";
  4198. }
  4199. if (this.checkString(this.applicationDetail.nsqzjdszd)) {
  4200. return "东至不能为空";
  4201. }
  4202. if (this.checkString(this.applicationDetail.nsqzjdszx)) {
  4203. return "西至不能为空";
  4204. }
  4205. if (this.checkString(this.applicationDetail.nsqzjdszn)) {
  4206. return "南至不能为空";
  4207. }
  4208. if (this.checkString(this.applicationDetail.nsqzjdszb)) {
  4209. return "北至不能为空";
  4210. }
  4211. if (this.checkString(this.applicationDetail.zfjzmj)) {
  4212. return "住房建筑面积不能为空";
  4213. }
  4214. if (this.checkString(this.applicationDetail.jzcs)) {
  4215. return "建筑层数不能为空";
  4216. }
  4217. if (this.checkString(this.applicationDetail.jzgd)) {
  4218. return "建筑高度不能为空";
  4219. }
  4220. if (this.checkString(this.applicationDetail.sfzqxlqlryj)) {
  4221. return "征求相邻权利人意见不能为空";
  4222. }
  4223. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.housingStructure)) {
  4224. // return "房屋构造不能为空";
  4225. // }
  4226. if (this.checkString(this.applicationDetail.jflx)) {
  4227. return "建房类型不能为空";
  4228. }
  4229. if (this.checkString(this.applicationDetail.nsqzjddldm)) {
  4230. return "土地类型不能为空";
  4231. }
  4232. // if(this.applicationDetail.tHouseApplyProposedSituation.geographicType == '10')
  4233. // {
  4234. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.constructionLandArea)) {
  4235. // return "建设用地面积不能为空";
  4236. // }
  4237. // }
  4238. // else if(this.applicationDetail.tHouseApplyProposedSituation.geographicType == '20')
  4239. // {
  4240. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.unusedLandArea)) {
  4241. // return "未利用地不能为空";
  4242. // }
  4243. // }
  4244. // else
  4245. // {
  4246. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.agriculturalLandArea)) {
  4247. // return "农用地不能为空";
  4248. // }
  4249. // }
  4250. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.designPaper)) {
  4251. // return "设计图纸不能为空";
  4252. // }
  4253. // if(this.applicationDetail.tHouseApplyProposedSituation.designPaper == '2')
  4254. // {
  4255. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.houseTypeId)) {
  4256. // return "房屋户型不能为空";
  4257. // }
  4258. // }
  4259. if (this.checkString(this.applicationDetail.sqly)) {
  4260. return "申请理由不能为空";
  4261. }
  4262. return false;
  4263. },
  4264. onConfirmZjdxx(val){
  4265. let _this = this;
  4266. this.zjdzdxxList.map(function(item){
  4267. if(item.zjddm === val){
  4268. _this.applicationDetail.xzjdmj = item.zdmj; //宅基地面积
  4269. _this.applicationDetail.xjzmj = item.scjzmj;
  4270. _this.applicationDetail.qszsh = item.zsh;
  4271. _this.$set(_this.zjdzdxxDetailed, 'zdszd', item.zdszd);
  4272. _this.$set(_this.zjdzdxxDetailed, 'zdszn', item.zdszn);
  4273. _this.$set(_this.zjdzdxxDetailed, 'zdszx', item.zdszx);
  4274. _this.$set(_this.zjdzdxxDetailed, 'zdszb', item.zdszb);
  4275. }
  4276. });
  4277. this.showZjdzk = false;
  4278. },
  4279. validateNatureForm() {
  4280. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.landArea)) {
  4281. // return "用地面积不能为空";
  4282. // }
  4283. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.rightsType)) {
  4284. // return "土地权属不能为空";
  4285. // }
  4286. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.east)) {
  4287. // return "北至不能为空";
  4288. // }
  4289. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.west)) {
  4290. // return "西至不能为空";
  4291. // }
  4292. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.south)) {
  4293. // return "南至不能为空";
  4294. // }
  4295. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.north)) {
  4296. // return "北至不能为空";
  4297. // }
  4298. if (this.checkString(this.applicationDetail.ydjfsp.zrzybmscyj)) {
  4299. return "说明不能为空";
  4300. }
  4301. else if (this.checkString(this.applicationDetail.ydjfsp.zrzybmscrxm)) {
  4302. return "自然资源签名不能为空";
  4303. }
  4304. return false;
  4305. },
  4306. validateAgricultureForm(pass) {
  4307. // if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.isMembership)) {
  4308. // return "成员资格审查不能为空";
  4309. // }
  4310. //
  4311. // if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.isOnehouse)) {
  4312. // return "一户一宅情况不能为空";
  4313. // }
  4314. //
  4315. // if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.isReviewmaterials)) {
  4316. // return "村委会审查材料不能为空";
  4317. // }
  4318. if (this.checkString(this.applicationDetail.ydjfsp.nyncbmscyj)) {
  4319. return "说明不能为空";
  4320. }
  4321. if (this.checkString(this.applicationDetail.ydjfsp.nyncbmscrxm)) {
  4322. return "农村农业部门签名不能为空";
  4323. }
  4324. // if (this.checkString(this.applicationDetail.ydjfsp.theGeomPoint)) {
  4325. // return "农村农业部门现场定位不能为空";
  4326. // }
  4327. // 通过时检查打勾, 农业部门
  4328. if(pass)
  4329. {
  4330. // if(this.applicationDetail.tHouseApproveAgricultureOptions.isMembership != '1')
  4331. // {
  4332. // return "同意申请时需通过成员资格审查";
  4333. // }
  4334. // if(this.applicationDetail.tHouseApproveAgricultureOptions.isOnehouse != '1')
  4335. // {
  4336. // return "同意申请时需符合一户一宅情况";
  4337. // }
  4338. // if(this.applicationDetail.tHouseApproveAgricultureOptions.isReviewmaterials != '1')
  4339. // {
  4340. // return "同意申请时需齐全村委会审查材料";
  4341. // }
  4342. }
  4343. return false;
  4344. },
  4345. validateBuildingForm() {
  4346. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingType)) {
  4347. // return "建筑类型不能为空";
  4348. // }
  4349. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingArea)) {
  4350. // return "建筑面积不能为空";
  4351. // }
  4352. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingFloors)) {
  4353. // return "建筑层数不能为空";
  4354. // }
  4355. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingHight)) {
  4356. // return "建筑高度不能为空";
  4357. // }
  4358. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingLandArea)) {
  4359. // return "建筑占地面积不能为空";
  4360. // }
  4361. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions)) {
  4362. // return "图纸类型不能为空";
  4363. // }
  4364. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.east)) {
  4365. // return "东至不能为空";
  4366. // }
  4367. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.west)) {
  4368. // return "西至不能为空";
  4369. // }
  4370. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.south)) {
  4371. // return "南至不能为空";
  4372. // }
  4373. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.north)) {
  4374. // return "北至不能为空";
  4375. // }
  4376. if (this.checkString(this.applicationDetail.ydjfsp.zfcxjsbmscyj)) {
  4377. return "说明不能为空";
  4378. }
  4379. if (this.checkString(this.applicationDetail.ydjfsp.zfcxjsbmscrxm)) {
  4380. return "住建部门签名不能为空";
  4381. }
  4382. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.theGeomPoint)) {
  4383. // return "住建部门现场定位不能为空";
  4384. // }
  4385. return false;
  4386. },
  4387. validateTownForm() {
  4388. if (this.checkString(this.applicationDetail.ydjfsp.zfcxjsbmscyj)) {
  4389. return "镇政府审批意见不能为空";
  4390. }
  4391. if (this.checkString(this.applicationDetail.ydjfsp.xzzfshpzrxm)) {
  4392. return "镇政府审批签字不能为空";
  4393. }
  4394. // if (this.checkString(this.applicationDetail.tHouseApproveTownOptions.theGeomPoint)) {
  4395. // return "镇政府审批现场定位不能为空";
  4396. // }
  4397. return false;
  4398. },
  4399. validateAcceptingFormBase() {
  4400. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.houseCertificateNo)) {
  4401. // return "权属证书号(不动产)不能为空";
  4402. // }
  4403. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.landCertificateNo)) {
  4404. // return "权属证书号(宅基地)不能为空";
  4405. // }
  4406. if (this.checkString(this.applicationDetail.ydjfys.pjcg)) {
  4407. return "批建高度不能为空";
  4408. }
  4409. if (this.checkString(this.applicationDetail.ydjfys.pjcs)) {
  4410. return "批建层数不能为空";
  4411. }
  4412. if (this.checkString(this.applicationDetail.ydjfys.jggd)) {
  4413. return "竣工高度不能为空";
  4414. }
  4415. if (this.checkString(this.applicationDetail.ydjfys.jgcs)) {
  4416. return "竣工层数不能为空";
  4417. }
  4418. if (this.checkString(this.applicationDetail.ydjfys.pzzjdmj)) {
  4419. return "批准宅基地面积不能为空";
  4420. }
  4421. if (this.checkString(this.applicationDetail.ydjfys.syzjdmj)) {
  4422. return "实用宅基地面积不能为空";
  4423. }
  4424. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.buildingOtherArea)) {
  4425. // return "配套附属设施建筑面积不能为空";
  4426. // }
  4427. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.designPaper)) {
  4428. // return "建筑风貌不能为空";
  4429. // }
  4430. if (this.checkString(this.applicationDetail.ydjfys.cjhtzjdqk)) {
  4431. return "旧宅基地退还情况不能为空";
  4432. }
  4433. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.houseCost)) {
  4434. // return "住房造价不能为空";
  4435. // }
  4436. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.facadeColor)) {
  4437. // return "外立面颜色不能为空";
  4438. // }
  4439. if (this.checkString(this.applicationDetail.ydjfys.pzfjzdmj)) {
  4440. return "批准房基占地面积不能为空";
  4441. }
  4442. if (this.checkString(this.applicationDetail.ydjfys.sjfjzdmj)) {
  4443. return "实际房基占地面积不能为空";
  4444. }
  4445. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isEnjoySubsidy)) {
  4446. // return "是否享受住房建设补助政策不能为空";
  4447. // }
  4448. // if (this.applicationDetail.tHouseApplyEnd.isEnjoySubsidy === 'Y' && this.checkString(this.applicationDetail.tHouseApplyEnd.enjoySubsidyContent)) {
  4449. // return "享受住房建设补助政策不能为空";
  4450. // }
  4451. return false;
  4452. },
  4453. validateAcceptingFormTown(pass, role) {
  4454. //
  4455. // if(0)
  4456. // {
  4457. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isProjectFinished)) {
  4458. // return "是否已完成工程设计和合同约定的各项内容不能为空";
  4459. // }
  4460. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isQualifiedQuality)) {
  4461. // return "承揽人对完工住房质量自查是否合格不能为空";
  4462. // }
  4463. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.hasBuildingRecord)) {
  4464. // return "是否有施工记录资料不能为空";
  4465. // }
  4466. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isSignWarranty)) {
  4467. // return "建房村民和承揽人是否已经共同签署农村住房质量保修书不能为空";
  4468. // }
  4469. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isHandleProblem)) {
  4470. // return "住房城乡建设行政主管部门或乡(镇)人民政府责令整改的问题是否全部整改完毕不能为空";
  4471. // }
  4472. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isDesignPaperSame)) {
  4473. // return "建筑风貌是否与设计图基本一致不能为空";
  4474. // }
  4475. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isOtherAcceptanceFinished)) {
  4476. // return "法律、法规规定的其他验收条件完成情况不能为空";
  4477. // }
  4478. // }
  4479. if(!role || role === 'agriculture')
  4480. {
  4481. if (this.checkString(this.applicationDetail.ydjfys.nyncbmysyj)) {
  4482. return "乡镇农业农村部门意见不能为空";
  4483. }
  4484. if (this.checkString(this.applicationDetail.ydjfys.nyncbmysjbrxm)) {
  4485. return "乡镇农业农村部门经办人不能为空";
  4486. }
  4487. if (this.checkString(this.applicationDetail.ydjfys.nyncbmyssj)) {
  4488. return "乡镇农业农村部门经办时间不能为空";
  4489. }
  4490. }
  4491. if(!role || role === 'nature_resource')
  4492. {
  4493. if (this.checkString(this.applicationDetail.ydjfys.zrzybmysyj)) {
  4494. return "乡镇自然资源部门意见不能为空";
  4495. }
  4496. if (this.checkString(this.applicationDetail.ydjfys.zrzybmysjbrxm)) {
  4497. return "乡镇自然资源部门经办人不能为空";
  4498. }
  4499. if (this.checkString(this.applicationDetail.ydjfys.zrzybmyssj)) {
  4500. return "乡镇自然资源部门经办时间不能为空";
  4501. }
  4502. }
  4503. if(0)
  4504. {
  4505. if (this.checkString(this.applicationDetail.ydjfys.zfcxjsbmysyj)) {
  4506. return "乡镇住建部门意见不能为空";
  4507. }
  4508. if (this.checkString(this.applicationDetail.ydjfys.zfcxjsbmysjbrxm)) {
  4509. return "乡镇住建部门验收负责人不能为空";
  4510. }
  4511. if (this.checkString(this.applicationDetail.ydjfys.zfcxjsbmyssj)) {
  4512. return "乡镇住建部门验收时间不能为空";
  4513. }
  4514. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.buildingGeom)) {
  4515. // return "住建部门现场定位不能为空";
  4516. // }
  4517. // if(this.$refs.tHouseApplyEndBuilding && this.$refs.tHouseApplyEndBuilding.isValid()) {
  4518. // this.submitHouseApproveEndBuildingOptions();
  4519. // } else {
  4520. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.buildingPlan)) {
  4521. // return "住建部门现场拍照不能为空";
  4522. // }
  4523. // }
  4524. }
  4525. if(!role)
  4526. {
  4527. if (this.checkString(this.applicationDetail.ydjfys.jgpmjtjbr)) {
  4528. return "竣工平面简图经办人不能为空";
  4529. }
  4530. if (this.checkString(this.applicationDetail.ydjfys.xzzfysyj)) {
  4531. return "乡镇政府验收意见不能为空";
  4532. }
  4533. if (this.checkString(this.applicationDetail.ydjfys.xzzfysjbrxm)) {
  4534. return "乡镇政府验收负责人不能为空";
  4535. }
  4536. if (this.checkString(this.applicationDetail.ydjfys.xzzfyssj)) {
  4537. return "乡镇政府验收时间不能为空";
  4538. }
  4539. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.zhenGeom)) {
  4540. // return "乡镇政府现场定位不能为空";
  4541. // }
  4542. }
  4543. // 通过时检查打勾, 农业部门
  4544. if(pass)
  4545. {
  4546. // if(this.applicationDetail.tHouseApplyEnd.isProjectFinished != 'Y')
  4547. // {
  4548. // return "同意验收时需已完成工程设计和合同约定的各项内容";
  4549. // }
  4550. // if(this.applicationDetail.tHouseApplyEnd.isQualifiedQuality != 'Y')
  4551. // {
  4552. // return "同意验收时需承揽人对完工住房质量自查合格";
  4553. // }
  4554. // if(this.applicationDetail.tHouseApplyEnd.hasBuildingRecord != 'Y')
  4555. // {
  4556. // return "同意验收时需有施工记录资料";
  4557. // }
  4558. // if(this.applicationDetail.tHouseApplyEnd.isSignWarranty != 'Y')
  4559. // {
  4560. // return "同意验收时需建房村民和承揽人已经共同签署农村住房质量保修书";
  4561. // }
  4562. // if(this.applicationDetail.tHouseApplyEnd.isHandleProblem != 'Y')
  4563. // {
  4564. // return "同意验收时需住房城乡建设行政主管部门或乡(镇)人民政府责令整改的问题全部整改完毕";
  4565. // }
  4566. // if(this.applicationDetail.tHouseApplyEnd.isDesignPaperSame != 'Y')
  4567. // {
  4568. // return "同意验收时需建筑风貌是否与设计图基本一致";
  4569. // }
  4570. // if(this.applicationDetail.tHouseApplyEnd.isOtherAcceptanceFinished != 'Y')
  4571. // {
  4572. // return "同意验收时需法律、法规规定的其他验收条件完成情况";
  4573. // }
  4574. }
  4575. return false;
  4576. },
  4577. onConfirmTytz(val){
  4578. this.$set(this.applicationDetail, 'tyhxt', val.id);
  4579. this.tytzName = val.name;
  4580. this.showTyt = false;
  4581. },
  4582. validateStartFormBase() {
  4583. if (this.checkString(this.applicationDetail.ydjfkg.kgrq)) {
  4584. return "计划开工时间不能为空";
  4585. }
  4586. if (this.checkString(this.applicationDetail.ydjfkg.jgrq)) {
  4587. return "计划竣工时间不能为空";
  4588. }
  4589. return false;
  4590. },
  4591. parseIDCard(idcard) {
  4592. if(!idcard)
  4593. return false;
  4594. if(idcard.length !== 18)
  4595. return false;
  4596. if(!/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(idcard))
  4597. return false;
  4598. let sex = (parseInt(idcard.substr(16, 1)) % 2) ^ 1;
  4599. let now = new Date().getFullYear();
  4600. let y = parseInt(idcard.substr(6, 4));
  4601. let age = Math.max(now - y, 0);
  4602. return [sex, age];
  4603. },
  4604. updateUserInfo() {
  4605. let res = this.parseIDCard(this.applicationDetail.tHouseApplyProposer.idcard);
  4606. if(res)
  4607. {
  4608. this.applicationDetail.tHouseApplyProposer.sex = res[0];
  4609. this.applicationDetail.tHouseApplyProposer.age = res[1];
  4610. }
  4611. },
  4612. updateMemberInfo(index) {
  4613. let res = this.parseIDCard(this.applicationDetail.sqrjtcyList[index].sfzh);
  4614. if(res)
  4615. {
  4616. this.$set(this.applicationDetail.sqrjtcyList[index], 'nl', res[1]);
  4617. }
  4618. },
  4619. searchCommit(data){
  4620. this.showesign = true;
  4621. this.onCliceQz = data;
  4622. console.info(this.$store.getters.baseRoutingUrl);
  4623. console.log(this.currentUserRole);
  4624. console.log(this.$store.getters.baseRoutingUrl);
  4625. console.info(this.applicationDetail.ydjfys.zrzybmysjbrxm);
  4626. if(this.selectedTabName ==0){
  4627. if(this.currentUserRole == 'village_leader' && this.onCliceQz =='cjxzscr' && this.applicationDetail.cjxzscr !='' && this.applicationDetail.cjxzscr !=null){
  4628. //村级审核人员签字
  4629. //if(this.checkString(this.applicationDetail.tHouseApproveVillageOptions.villageLeader))
  4630. this.resultImg = this.$store.getters.baseRoutingUrl+this.applicationDetail.cjxzscr;
  4631. } else if((this.currentUserRole == 'nature_resource') && this.onCliceQz =='ydjfsp.zrzybmscrxm' && this.applicationDetail.ydjfsp.zrzybmscrxm !='' && this.applicationDetail.ydjfsp.zrzybmscrxm !=null){
  4632. //自然资源部门签字
  4633. this.resultImg = this.$store.getters.baseRoutingUrl+this.applicationDetail.ydjfsp.zrzybmscrxm;
  4634. } else if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'building') && this.onCliceQz =='ydjfsp.zfcxjsbmscrxm' && this.applicationDetail.ydjfsp.zfcxjsbmscrxm !='' && this.applicationDetail.ydjfsp.zfcxjsbmscrxm !=null){
  4635. //住建部门签字
  4636. this.resultImg = this.$store.getters.baseRoutingUrl+this.applicationDetail.ydjfsp.zfcxjsbmscrxm;
  4637. } else if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'agriculture') && this.onCliceQz =='ydjfsp.nyncbmscrxm' && this.applicationDetail.ydjfsp.nyncbmscrxm !='' && this.applicationDetail.ydjfsp.nyncbmscrxm !=null){
  4638. //农村农业部门签字
  4639. this.resultImg = this.$store.getters.baseRoutingUrl+this.applicationDetail.ydjfsp.nyncbmscrxm;
  4640. } else if (this.currentUserRole == 'town_leader' && this.onCliceQz =='ydjfsp.xzzfshpzrxm' && this.applicationDetail.ydjfsp.xzzfshpzrxm !='' && this.applicationDetail.ydjfsp.xzzfshpzrxm !=null){
  4641. //镇级领导签字 tHouseApproveTownOptions
  4642. this.resultImg = this.$store.getters.baseRoutingUrl+this.applicationDetail.ydjfsp.xzzfshpzrxm;
  4643. } else {
  4644. this.resultImg = null
  4645. if(this.$refs.esign){
  4646. this.$refs.esign.reset();
  4647. }
  4648. }
  4649. } else if(this.selectedTabName ==1){
  4650. } else if (this.selectedTabName ==2) {
  4651. if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'agriculture') && this.onCliceQz =='ydjfys.nyncbmysjbrxm' && this.applicationDetail.ydjfys.nyncbmysjbrxm !='' && this.applicationDetail.ydjfys.nyncbmysjbrxm !=null){
  4652. //农村农业部门签字
  4653. this.resultImg = this.$store.getters.baseRoutingUrl+this.applicationDetail.ydjfys.nyncbmysjbrxm;
  4654. } else if ((this.currentUserRole == 'nature_resource' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.zrzybmysjbrxm' && this.applicationDetail.ydjfys.zrzybmysjbrxm != '' && this.applicationDetail.ydjfys.zrzybmysjbrxm != null) {
  4655. //自然资源部门签字
  4656. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfys.zrzybmysjbrxm;
  4657. } else if ((this.currentUserRole == 'building' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.zfcxjsbmysjbrxm' && this.applicationDetail.ydjfys.zfcxjsbmysjbrxm != '' && this.applicationDetail.ydjfys.zfcxjsbmysjbrxm != null) {
  4658. //镇级领导部门签字
  4659. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfys.zfcxjsbmysjbrxm;
  4660. } else if ((this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.xzzfysjbrxm' && this.applicationDetail.ydjfys.xzzfysjbrxm != '' && this.applicationDetail.ydjfys.xzzfysjbrxm != null) {
  4661. //镇级领导部门签字
  4662. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfys.xzzfysjbrxm;
  4663. } else {
  4664. this.resultImg = null
  4665. if (this.$refs.esign) {
  4666. this.$refs.esign.reset();
  4667. }
  4668. }
  4669. }
  4670. },
  4671. // 清空画板
  4672. handleReset() {
  4673. this.resultImg = null
  4674. if(this.$refs.esign){
  4675. this.$refs.esign.reset();
  4676. }
  4677. },
  4678. // 生成签字图
  4679. handleGenerate() {
  4680. this.$refs.esign
  4681. .generate() // 使用生成器调用把签字的图片转换成为base64图片格式
  4682. .then((res) => {
  4683. this.resultImg = res;
  4684. })
  4685. .catch((err) => {
  4686. // 画布没有签字时会执行这里提示一下
  4687. this.$message({
  4688. type: "warning",
  4689. message: "请签名后再生成签字图片",
  4690. });
  4691. });
  4692. // 在这里向后端发请求把转换后的base64文件传给后端,后端接收以后再转换成图片做静态图片存储
  4693. // 当然也可以把base64转成流文件blob格式的,类似上传给后端这样,具体哪种方式看后端要求
  4694. setTimeout(() => {
  4695. // 这里要使用定时器稍微延后以后就能取到base64数据了,当然也可以再加一个确认按钮,如:确认使用这张base64签名图片
  4696. // 点击确认以后,在其回调函数中,再把base64的签名图片传给后端用于存储
  4697. const blobBin = atob(this.resultImg.split(',')[1])
  4698. let d = []
  4699. for (let i=0;i<blobBin.length;i++){
  4700. d.push(blobBin.charCodeAt(i))
  4701. }
  4702. const data2 = new FormData();
  4703. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  4704. uploadFile(data2).then(res => {
  4705. console.log(res);
  4706. console.log(this.selectedTabName);
  4707. console.log(this.currentUserRole);
  4708. if(this.selectedTabName ==0){
  4709. if(this.currentUserRole == 'village_leader' && this.onCliceQz =='cjxzscr'){
  4710. //村级审核人员签字
  4711. //if(this.checkString(this.applicationDetail.tHouseApproveVillageOptions.villageLeader))
  4712. this.applicationDetail.cjxzscr = res.fileName;
  4713. } else if((this.currentUserRole == 'nature_resource' || this.currentUserRole == 'town_leader') && this.onCliceQz =='ydjfsp.zrzybmscrxm'){
  4714. //自然资源部门签字
  4715. this.applicationDetail.ydjfsp.zrzybmscrxm = res.fileName;
  4716. } else if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'building') && this.onCliceQz =='ydjfsp.zfcxjsbmscrxm'){
  4717. //其他部门签字
  4718. this.applicationDetail.ydjfsp.zfcxjsbmscrxm = res.fileName;
  4719. } else if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'agriculture') && this.onCliceQz =='ydjfsp.nyncbmscrxm'){
  4720. //农村农业部门签字
  4721. this.applicationDetail.ydjfsp.nyncbmscrxm = res.fileName;
  4722. } else if (this.currentUserRole == 'town_leader' && this.onCliceQz =='ydjfsp.xzzfshpzrxm'){
  4723. //镇级领导签字 tHouseApproveTownOptions
  4724. this.applicationDetail.ydjfsp.xzzfshpzrxm = res.fileName;
  4725. }
  4726. this.showesign =false;
  4727. } else if(this.selectedTabName ==1){
  4728. } else if (this.selectedTabName ==2){
  4729. if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'agriculture') && this.onCliceQz =='ydjfys.nyncbmysjbrxm'){
  4730. //农村农业部门签字
  4731. this.applicationDetail.ydjfys.nyncbmysjbrxm =res.fileName;
  4732. } else if ((this.currentUserRole == 'nature_resource' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.zrzybmysjbrxm') {
  4733. //自然资源部门签字
  4734. this.applicationDetail.ydjfys.zrzybmysjbrxm =res.fileName;
  4735. } else if ((this.currentUserRole == 'building' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.zfcxjsbmysjbrxm') {
  4736. //自然资源部门签字
  4737. this.applicationDetail.ydjfys.zfcxjsbmysjbrxm =res.fileName;
  4738. } else if ((this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.xzzfysjbrxm') {
  4739. //镇级领导部门签字
  4740. this.applicationDetail.ydjfys.xzzfysjbrxm =res.fileName;
  4741. }
  4742. this.showesign =false;
  4743. }
  4744. })
  4745. }, 200);
  4746. },
  4747. //定位当前位置
  4748. dingweiCommit(data){
  4749. //this.mapShow =true;
  4750. this.mapZbNow = data;
  4751. // saveHouseBaseInfo(this.applicationDetail).then((response) => {
  4752. // }).catch(resp => {
  4753. // this.notify("保存失败!", 'danger');
  4754. // });
  4755. console.log(document.cookie);
  4756. console.log(window.location.href);
  4757. let chars = window.location.href.split("lat=")[1] || "";
  4758. if(chars !="" && chars != null && chars !=undefined){
  4759. var urlZb = window.location.href.split("&lat=")[0];
  4760. window.location = `https://www.nongshen.net/static/tdtLocation/location.html?exiturl=${urlZb}`;
  4761. } else {
  4762. window.location = `https://www.nongshen.net/static/tdtLocation/location.html?exiturl=${window.location.href}`;
  4763. }
  4764. },
  4765. dingweiCommitLook(data){
  4766. this.mapShow =true;
  4767. var zb;
  4768. //定位坐标点查看
  4769. if(data == 'tHomeapplyYdjfkg'){
  4770. zb = this.applicationDetail.ydjfkg.theGeomJson;
  4771. }
  4772. setTimeout(() => {
  4773. var zbCl = zb.replace("POINT(","").replace(")","").replace(" ",",");
  4774. zbCl = JSON.stringify([zbCl]).replaceAll("\"","");
  4775. var vector_drawing;
  4776. let projection = new ol.proj.Projection({
  4777. //地图投影类型
  4778. code: "EPSG:3857",
  4779. units: "degrees",
  4780. //extent:extent
  4781. });
  4782. let aerial = new ol.layer.Tile({
  4783. source: new ol.source.XYZ({
  4784. url: "http://t0.tianditu.gov.cn/img_w/wmts?" +
  4785. "SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles" +
  4786. "&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=cc4aba6e967096098249efa069733067",
  4787. }),
  4788. isGroup: true,
  4789. name: "卫星影像图",
  4790. });
  4791. let yingxzi = new ol.layer.Tile({
  4792. source: new ol.source.XYZ({
  4793. url: "https://t0.tianditu.gov.cn/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=cc4aba6e967096098249efa069733067",
  4794. }),
  4795. isGroup: true,
  4796. name: "天地图文字标注--卫星影像图",
  4797. });
  4798. //加载地图
  4799. let map = new ol.Map({
  4800. controls: ol.control.defaults({attribution: false, zoom: false, rotate: false}).extend([]), //隐藏放大缩小按钮
  4801. layers: [aerial, yingxzi],
  4802. projection: projection,
  4803. target: 'uuidMap',
  4804. logo: 'false',
  4805. view: new ol.View({
  4806. center: ol.proj.fromLonLat(JSON.parse(zbCl)),
  4807. //zoom: false,
  4808. zoom: 17.9,
  4809. minZoom: 0, //地图缩小限制
  4810. maxZoom: 18.3, //地图放大限制
  4811. }),
  4812. });
  4813. var newcenterFeature = new ol.Feature({
  4814. geometry: new ol.geom.Point(ol.proj.fromLonLat(JSON.parse(zbCl))), //几何信息
  4815. name: "到场点",
  4816. });
  4817. var sourceMapLook = new ol.source.Vector({wrapX: false});
  4818. vector_drawing = new ol.layer.Vector({
  4819. source: sourceMapLook,
  4820. });
  4821. map.addLayer(vector_drawing);
  4822. newcenterFeature.setStyle(createLabelStyle()); //设置要素样式
  4823. sourceMapLook.addFeature(newcenterFeature);
  4824. //矢量标注样式设置函数,设置image为图标ol.style.Icon
  4825. function createLabelStyle() {
  4826. return new ol.style.Style({
  4827. image: new ol.style.Icon({
  4828. //设置图标偏移
  4829. anchor: [0.5, 1],
  4830. //标注样式的起点位置
  4831. anchorOrigin: "top-right",
  4832. //X方向单位:分数
  4833. anchorXUnits: "fraction",
  4834. //Y方向单位:像素
  4835. anchorYUnits: "pixels",
  4836. //偏移起点位置的方向
  4837. offsetOrigin: "top-right",
  4838. //透明度
  4839. opacity: 0.9,
  4840. //图片路径
  4841. src: require("../../../assets/images/housesteadSurvey/mark.png"),
  4842. }),
  4843. zIndex: 9999,
  4844. });
  4845. }
  4846. },1000);
  4847. },
  4848. mapZbQx(){
  4849. },
  4850. mapZbQd(){
  4851. // //申请审批定位
  4852. // if(this.mapZbNow == 'tHouseApproveVillage' && this.formEnabled.baseApplyForm.villageFormEnabled){
  4853. // this.applicationDetail.tHouseApproveVillageOptions.theGeom = JSON.stringify(this.mapBcZb);
  4854. // }
  4855. // if (this.mapZbNow == 'tHouseApproveNature' && this.formEnabled.baseApplyForm.nature_resourceFormEnabled){
  4856. // this.applicationDetail.tHouseApproveNatureOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4857. // }
  4858. // if(this.mapZbNow == 'tHouseApproveAgriculture' && this.formEnabled.baseApplyForm.agricultureFormEnabled){
  4859. // this.applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4860. // }
  4861. // if(this.mapZbNow == 'tHouseApproveOther' && this.formEnabled.baseApplyForm.buildingFormEnabled){
  4862. // this.applicationDetail.tHouseApproveOtherOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4863. // }
  4864. // if(this.mapZbNow == 'tHouseApproveTown' && this.formEnabled.baseApplyForm.townFormEnabled){
  4865. // this.applicationDetail.tHouseApproveTownOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4866. // }
  4867. // //验收申请定位
  4868. // if(this.mapZbNow == 'tHouseApplyEndNongye' && this.formEnabled.acceptingForm.agricultureFormEnabled){
  4869. // this.applicationDetail.tHouseApplyEnd.nongyeGeom = JSON.stringify(this.mapBcZb);
  4870. // }
  4871. // if(this.mapZbNow == 'tHouseApplyEndNature' && this.formEnabled.acceptingForm.nature_resourceFormEnabled){
  4872. // this.applicationDetail.tHouseApplyEnd.natureGeom = JSON.stringify(this.mapBcZb);
  4873. // }
  4874. // if(this.mapZbNow == 'tHouseApplyEndZhen' && this.formEnabled.acceptingForm.townFormEnabled){
  4875. // this.applicationDetail.tHouseApplyEnd.zhenGeom = JSON.stringify(this.mapBcZb);
  4876. // }
  4877. //申请审批定位
  4878. if(this.formEnabled.baseApplyForm.villageFormEnabled){
  4879. this.applicationDetail.tHouseApproveVillageOptions.theGeom = JSON.stringify(this.mapBcZb);
  4880. }
  4881. if (this.formEnabled.baseApplyForm.nature_resourceFormEnabled){
  4882. this.applicationDetail.tHouseApproveNatureOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4883. }
  4884. if(this.formEnabled.baseApplyForm.agricultureFormEnabled){
  4885. this.applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4886. }
  4887. if(this.formEnabled.baseApplyForm.buildingFormEnabled){
  4888. this.applicationDetail.tHouseApproveOtherOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4889. }
  4890. if(this.formEnabled.baseApplyForm.townFormEnabled){
  4891. this.applicationDetail.tHouseApproveTownOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4892. }
  4893. //验收申请定位
  4894. if(this.formEnabled.acceptingForm.agricultureFormEnabled){
  4895. this.applicationDetail.tHouseApplyEnd.nongyeGeom = JSON.stringify(this.mapBcZb);
  4896. }
  4897. if(this.formEnabled.acceptingForm.nature_resourceFormEnabled){
  4898. this.applicationDetail.tHouseApplyEnd.natureGeom = JSON.stringify(this.mapBcZb);
  4899. }
  4900. if(this.formEnabled.acceptingForm.townFormEnabled){
  4901. this.applicationDetail.tHouseApplyEnd.zhenGeom = JSON.stringify(this.mapBcZb);
  4902. }
  4903. },
  4904. },
  4905. watch: {
  4906. selectedTabName: function (newVal, oldVal) {
  4907. this.$nextTick(() => {
  4908. if(newVal == PROPOSER_STAGE_BASE_APPLY)
  4909. {
  4910. this.pointDarw(null);
  4911. // this.pointDarwNature(null);
  4912. this.$refs.pointDarwMap && this.$refs.pointDarwMap.update();
  4913. this.$refs.pointDarwNatureMap && this.$refs.pointDarwNatureMap.update();
  4914. }
  4915. else if(newVal == PROPOSER_STAGE_START) {
  4916. // this.paintStartNatureMap(null);
  4917. this.$refs.startNatureMap && this.$refs.startNatureMap.update();
  4918. }
  4919. else if(newVal == PROPOSER_STAGE_END) {
  4920. // this.pointWrapAcceptance(null);
  4921. this.$refs.pointDarwAcceptanceMap && this.$refs.pointDarwAcceptanceMap.update();
  4922. }
  4923. })
  4924. },
  4925. }
  4926. }
  4927. </script>
  4928. <style scoped lang="scss">
  4929. .app-container {
  4930. padding-bottom: 5%;
  4931. .header_main{
  4932. height: 116px;
  4933. background: url('../../../assets/images/sunVillage_info/list_head_green.png') no-repeat;
  4934. background-size: 100% 100%;
  4935. position: fixed;
  4936. top: 0;
  4937. left: 0;
  4938. width: 100%;
  4939. font-size: 36px;
  4940. line-height: 116px;
  4941. text-align: center;
  4942. color: #fff;
  4943. position: relative;
  4944. .return_btn{
  4945. width: 24px;
  4946. height: 43.2px;
  4947. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  4948. background-size: 20px 36px;
  4949. position: absolute;
  4950. left: 38px;
  4951. top: 36px;
  4952. }
  4953. .add_btn{
  4954. width: 20PX;
  4955. height: 20PX;
  4956. background: url('../../../../static/images/icon/icon_flow.png') center center no-repeat;
  4957. background-size: 20PX 20PX;
  4958. position: absolute;
  4959. right: 38px;
  4960. top: 36px;
  4961. }
  4962. }
  4963. }
  4964. .examine_box{
  4965. background-color: #1D6FE9!important;
  4966. padding: 0.18rem!important;
  4967. padding-left: 0!important;
  4968. border-radius: 0.15rem!important;
  4969. margin-top: 0.3rem!important;
  4970. }
  4971. .examine_box .van-col:first-child{
  4972. color: #FFF!important;
  4973. font-size: 0.45rem!important;
  4974. text-align: center!important;
  4975. }
  4976. .examine_box .van-col:last-child{
  4977. background-color: #FFF!important;
  4978. border-radius: 0.15rem!important;
  4979. overflow: hidden!important;
  4980. .van-radio-group--horizontal{
  4981. padding: 0.2rem 0;
  4982. border-bottom: 1px solid #eee;
  4983. }
  4984. }
  4985. #mapWrap{
  4986. width: 96%;
  4987. margin: 0 auto;
  4988. border-bottom-left-radius: 12px;
  4989. border-bottom-right-radius: 12px;
  4990. overflow: hidden;
  4991. }
  4992. .mapBox{
  4993. position: relative;
  4994. .mapBox_button{
  4995. position: absolute;
  4996. top: 0.2rem;
  4997. right: 2%;
  4998. }
  4999. }
  5000. .van-steps{
  5001. padding: 2% 6% 0;
  5002. }
  5003. .topTit{
  5004. margin-top: 0.4rem;
  5005. font-size: 0.45rem;
  5006. background-color: #1D6FE9;
  5007. color: #FFFFFF;
  5008. line-height: 58px;
  5009. text-align: center;
  5010. padding: 15px 0;
  5011. box-shadow: 0px 3px 6px 0px rgba(15,67,145,0.40);
  5012. }
  5013. .main_title{
  5014. font-size: 0.4rem;
  5015. color: #1D6FE9;
  5016. margin: 0.2rem 6%;
  5017. position: relative;
  5018. }
  5019. .main_box{
  5020. width: 96%;
  5021. margin: 0 auto;
  5022. border-radius: 6px;
  5023. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  5024. overflow: hidden;
  5025. background-color: #FFF;
  5026. }
  5027. .collapse{
  5028. width: 96%;
  5029. margin: 0 auto;
  5030. border-radius: 6px;
  5031. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  5032. overflow: hidden;
  5033. margin-bottom: 15px;
  5034. }
  5035. /deep/.van-radio--horizontal{
  5036. margin-left: 20px;
  5037. margin-right: 0;
  5038. }
  5039. .file-box{
  5040. padding: 2% 5% 0;
  5041. }
  5042. .submitButton{
  5043. width: 80%;
  5044. margin: 0 auto;
  5045. border-radius: 14px;
  5046. }
  5047. .timeTit{
  5048. text-align: center;
  5049. font-size: 16px;
  5050. line-height: 27px;
  5051. }
  5052. .action-box{
  5053. padding: 15px 0!important;
  5054. margin-top: 0.4rem;
  5055. }
  5056. .check-box{
  5057. margin-top: 0.4rem;
  5058. }
  5059. .addFamily{
  5060. position: absolute;
  5061. top: -2px;
  5062. right: 0;
  5063. border-radius: 50%;
  5064. display: inline-block;
  5065. width: 0.7rem;
  5066. height: 0.7rem;
  5067. }
  5068. .deleteFamily{
  5069. position: absolute;
  5070. top: -0.35rem;
  5071. right: 6%;
  5072. z-index: 9;
  5073. border-radius: 50%;
  5074. display: inline-block;
  5075. width: 0.7rem;
  5076. height: 0.7rem;
  5077. }
  5078. .familyList{
  5079. margin-top: 0.4rem;
  5080. position: relative;
  5081. }
  5082. .noModify{
  5083. .topTit{
  5084. background-color:#ABABAB ;
  5085. box-shadow: 0px 3px 6px 0px rgba(171,171,171,0.40);
  5086. }
  5087. .van-cell__title{
  5088. color: #B4B0B0;
  5089. }
  5090. }
  5091. .flow_main_box{
  5092. width: 96%;
  5093. margin: 0 auto;
  5094. border-radius: 6px;
  5095. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  5096. overflow: hidden;
  5097. background-color: #FFF;
  5098. margin-top: 2%;
  5099. padding: 5% 1%;
  5100. .van-col{
  5101. text-align: center;
  5102. }
  5103. .tit{
  5104. background: #1d6fe9;
  5105. border-radius: 12px;
  5106. font-size: 0.4rem;
  5107. font-family: Source Han Sans CN, Source Han Sans CN-Regular;
  5108. font-weight: 400;
  5109. color: #ffffff;
  5110. line-height: 0.65rem;
  5111. letter-spacing: 0px;
  5112. width: 70%;
  5113. margin: 0 auto;
  5114. }
  5115. .van-step--vertical{
  5116. padding-right: 0;
  5117. text-align: left;
  5118. }
  5119. .van-step--vertical:not(:last-child)::after{
  5120. border: none;
  5121. }
  5122. .van-step--finish{
  5123. color: #1d6fe9;
  5124. }
  5125. }
  5126. .van-goods-action {
  5127. justify-content: center;
  5128. }
  5129. .van-goods-action-button--first {
  5130. border-radius: 0.053333rem;
  5131. }
  5132. .van-goods-action-button--last {
  5133. border-radius: 0.053333rem;
  5134. }
  5135. .van-goods-action-button {
  5136. margin-left: 0.1rem;
  5137. }
  5138. .fuTitle {
  5139. border-top: 1px solid #e9e9e9;
  5140. text-align: center;
  5141. padding: 10px 0px 0px 0px;
  5142. font-size: 18px;
  5143. color: #999;
  5144. }
  5145. .zkshStyle{
  5146. margin: 0 50%;
  5147. }
  5148. #mapDiv {
  5149. width: 100%;
  5150. height: 400px
  5151. }
  5152. input,
  5153. b,
  5154. p {
  5155. margin-left: 5px;
  5156. font-size: 14px
  5157. }
  5158. </style>