移动端
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

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