移动端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

5288 行
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 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 axios from "axios";
  1763. // 意图
  1764. const PROPOSER_VIEW = 1;
  1765. const PROPOSER_EDIT = 2;
  1766. const PROPOSER_ADD = 3;
  1767. // 阶段
  1768. const PROPOSER_STAGE_BASE_APPLY = 0;
  1769. const PROPOSER_STAGE_START = 1;
  1770. const PROPOSER_STAGE_END = 2;
  1771. // 工作流名称
  1772. const PROPOSER_STAGE_BASE_APPLY_ACTIVITY = 'home_apply';
  1773. const PROPOSER_STAGE_START_ACTIVITY = 'home_start';
  1774. const PROPOSER_STAGE_END_ACTIVITY = 'home_check';
  1775. // 附件表名
  1776. const PROPOSER_STAGE_BASE_APPLY_TABLE = 't_homeapply_ydjfsq';
  1777. const PROPOSER_STAGE_START_TABLE = 't_homeapply_ydjfkg';
  1778. const PROPOSER_STAGE_END_TABLE = 't_homeapply_ydjfys';
  1779. // 其他
  1780. const PROPOSER_MODULE = 'home';
  1781. export default {
  1782. name: "homeApplication",
  1783. components: {
  1784. FieldCheckbox,
  1785. FieldRadio, HomeApplyUploadComp, FieldDatePicker, CommonMap, FieldSelect, HouseLocationPlanComp,MultiImageUploadComp},
  1786. data() {
  1787. return {
  1788. // 当前流程步骤
  1789. active: 0,
  1790. // 申请ID
  1791. id: '',
  1792. // 表单数据
  1793. applicationDetail: {},
  1794. // 当前家庭成员展开
  1795. activeNames:['1'],
  1796. showNhxx:false,
  1797. showTyt:false,
  1798. wztUpdate:false,
  1799. tytzName:null,
  1800. //农户信息集合
  1801. nhxxList:[],
  1802. zjddmColumns:[],
  1803. zjdzdxxList:[],
  1804. zjdzdxxDetailed:{
  1805. zdszd:null,
  1806. zdszn:null,
  1807. zdszx:null,
  1808. zdszb:null
  1809. },
  1810. tytzList: [],
  1811. jflxColumns:[],
  1812. zjdzdxxDetailedShow:false,
  1813. deptId:null,
  1814. sysFarmer:{memberName:"",dept:null},
  1815. showZjddm:null,
  1816. region:null,
  1817. showZjdzk:false,
  1818. // 当前显示流程
  1819. selectedTabName: 0,
  1820. processKeyField: null,
  1821. // 表单意图
  1822. proposerStatus: PROPOSER_VIEW,
  1823. // 显示控制
  1824. formVisible: {
  1825. baseApplyFormVisible: true,
  1826. editVisible: false,
  1827. baseApplyForm: {
  1828. baseFormVisible: true,
  1829. homesteadFormVisible: false,
  1830. groupFormVisible: false,
  1831. villageFormVisible: false,
  1832. townFormVisible: false,
  1833. agricultureFormVisible: false,
  1834. buildingFormVisible: false,
  1835. nature_resourceFormVisible: false,
  1836. homesteadForm: {
  1837. keepVisible: false, // 是否显示宅基地保留输入
  1838. otherVisible: false, // 是否显示宅基地其他输入
  1839. }
  1840. },
  1841. landscopeVisible: false,
  1842. landscopeForm: {
  1843. baseFormVisible: false,
  1844. nature_resourceFormVisible: false,
  1845. },
  1846. acceptingVisible: false,
  1847. acceptingForm: {
  1848. baseFormVisible: false,
  1849. townFormVisible: false,
  1850. agricultureFormVisible: false,
  1851. nature_resourceFormVisible: false,
  1852. buildingFormVisible: false,
  1853. },
  1854. auditVisible: false,
  1855. },
  1856. // 表单启用控制
  1857. formEnabled: {
  1858. baseApplyEnabled: false,
  1859. submitEnabled: false,
  1860. ysnrEnable:false,
  1861. baseApplyForm: {
  1862. baseFormEnabled: false,
  1863. homesteadFormEnabled: false,
  1864. groupFormEnabled: false,
  1865. villageFormEnabled: false,
  1866. townFormEnabled: false,
  1867. agricultureFormEnabled: false,
  1868. buildingFormEnabled: false,
  1869. nature_resourceFormEnabled: false,
  1870. },
  1871. landscopeEnabled: false,
  1872. landscopeForm: {
  1873. baseFormEnabled: false,
  1874. nature_resourceFormEnabled: false,
  1875. },
  1876. acceptingEnabled: false,
  1877. acceptingForm: {
  1878. baseFormEnabled: false,
  1879. townFormEnabled: false,
  1880. agricultureFormEnabled: false,
  1881. nature_resourceFormEnabled: false,
  1882. },
  1883. },
  1884. // 申请附件树
  1885. houseApplyUploadComp: {
  1886. businessType: PROPOSER_MODULE,
  1887. proposerId: null,
  1888. houseApplyStatus: null,
  1889. processKey: PROPOSER_STAGE_BASE_APPLY_ACTIVITY,
  1890. tableName: PROPOSER_STAGE_BASE_APPLY_TABLE,
  1891. attachmentList: [],
  1892. readonly: false,
  1893. full: false,
  1894. },
  1895. // 开工附件树
  1896. houseApplyUploadCompStart: {
  1897. businessType: PROPOSER_MODULE,
  1898. proposerId: null,
  1899. houseApplyStatus: null,
  1900. processKey: PROPOSER_STAGE_START_ACTIVITY,
  1901. tableName: PROPOSER_STAGE_START_TABLE,
  1902. attachmentList: [],
  1903. readonly: false,
  1904. full: false,
  1905. },
  1906. // 验收附件树
  1907. houseApplyUploadCompEnd: {
  1908. businessType: PROPOSER_MODULE,
  1909. proposerId: null,
  1910. houseApplyStatus: null,
  1911. processKey: PROPOSER_STAGE_END_ACTIVITY,
  1912. tableName: PROPOSER_STAGE_END_TABLE,
  1913. attachmentList: [],
  1914. readonly: false,
  1915. full: false,
  1916. },
  1917. currentUserRole: null,
  1918. // 当前位置信息
  1919. tGeoOrganizationLat: null,
  1920. tGeoOrganizationLng: null,
  1921. // 表单默认值
  1922. form: {
  1923. villagerOpinion: "经审查,材料真实有效,符合建房安全、无纠纷,同意申报。",
  1924. villageOption: "经审查,{sqhhzxm}宅基地和建房申请材料真实有效,拟用地{nsqzjddz}符合村庄规划,相邻人{isAdvice}无异议,同意其宅基地和建房申请。",
  1925. // applicationDetail.tHouseApplyProposer.memberName, applicationDetail.tHouseApplyProposedSituation.location, null
  1926. groupOption: "经讨论和公示无异议,{sqhhzxm}符合农村宅基地申请资格,同意{sqhhzxm}的农村宅基地和建房申请。",
  1927. // applicationDetail.tHouseApplyProposer.memberName, applicationDetail.tHouseApplyProposer.memberName
  1928. },
  1929. // 工作流
  1930. taskId: null,
  1931. instanceId: null,
  1932. // 村级领导审核
  1933. uploadImgVillage: {
  1934. proposerId: null,
  1935. fileList: '',
  1936. uploadFileList: [],
  1937. removeFileList: [],
  1938. },
  1939. // 自然资源领导审批
  1940. uploadImgNature: {
  1941. proposerId: null,
  1942. fileList: '',
  1943. uploadFileList: [],
  1944. removeFileList: [],
  1945. },
  1946. // 农村农业部领导审批
  1947. uploadImgAgriculture: {
  1948. proposerId: null,
  1949. fileList: '',
  1950. uploadFileList: [],
  1951. removeFileList: [],
  1952. },
  1953. // 其他部门领导审批
  1954. uploadImgOther: {
  1955. proposerId: null,
  1956. fileList: '',
  1957. uploadFileList: [],
  1958. removeFileList: [],
  1959. },
  1960. // 镇级领导审批
  1961. uploadImgTown: {
  1962. proposerId: null,
  1963. fileList: '',
  1964. uploadFileList: [],
  1965. removeFileList: [],
  1966. },
  1967. // 验收自然资源领导审批
  1968. uploadImgEndNaturePlan: {
  1969. proposerId: null,
  1970. fileList: '',
  1971. uploadFileList: [],
  1972. removeFileList: [],
  1973. },
  1974. // 验收农村农业部领导审批
  1975. uploadImgEndNongyePlan: {
  1976. proposerId: null,
  1977. fileList: '',
  1978. uploadFileList: [],
  1979. removeFileList: [],
  1980. },
  1981. // 验收其他部门领导审批
  1982. uploadImgEndBuildingPlan: {
  1983. proposerId: null,
  1984. fileList: '',
  1985. uploadFileList: [],
  1986. removeFileList: [],
  1987. },
  1988. // 验收镇级领导审批
  1989. uploadImgEndZhenPlan: {
  1990. proposerId: null,
  1991. fileList: '',
  1992. uploadFileList: [],
  1993. removeFileList: [],
  1994. },
  1995. // 申请镇政府审批平面图
  1996. uploadImg: {
  1997. proposerId: null,
  1998. fileList: '',
  1999. uploadFileList: [],
  2000. removeFileList: [],
  2001. },
  2002. // 验收镇政府审批平面图
  2003. uploadImgAccepting: {
  2004. proposerId: null,
  2005. fileList: '',
  2006. uploadFileList: [],
  2007. removeFileList: [],
  2008. },
  2009. // 地图绘制
  2010. drawInsert: null,
  2011. // 附件弹出框显示
  2012. attachmentVisible: false,
  2013. // 工作流弹出框显示
  2014. flowVisible: false,
  2015. // 是/否字典
  2016. yesNoOptions: [
  2017. {dictLabel: '是', dictValue: 'Y'},
  2018. {dictLabel: '否', dictValue: 'N'},
  2019. ],
  2020. yhzgxOptions:[],
  2021. // 当前附件tab
  2022. attachmentActive: 0,
  2023. // 家庭成员tab
  2024. familyMembersActive: 0,
  2025. //电子签名
  2026. showesign: false,
  2027. //部门签字判断
  2028. onCliceQz:"",
  2029. lineWidth: 6, // 画笔的线条粗细
  2030. lineColor: "#000000", // 画笔的颜色
  2031. bgColor: "", // 画布的背景颜色
  2032. resultImg: "", // 最终画布生成的base64图片
  2033. isCrop: false, // 是否裁剪,在画布设定尺寸基础上裁掉四周空白部分
  2034. mapShow:false,
  2035. mapZbDw:"",
  2036. mapBcZb:"", //定位坐标
  2037. mapZbNow:"", //当前查看坐标
  2038. };
  2039. },
  2040. created() { this.id = this.$route.query.id;
  2041. this.type = this.$route.query.type;
  2042. this.taskId = this.$route.query.taskId;
  2043. this.instanceId = this.$route.query.instanceId;
  2044. this.getDicts("family_status").then(response => {
  2045. let arr = [];
  2046. response.data.forEach(function (item) {
  2047. if (item.dictLabel !== '户主') {
  2048. arr.push(item)
  2049. }
  2050. })
  2051. this.yhzgxOptions = arr;
  2052. });
  2053. this.getDicts("building_type").then(response => {
  2054. this.jflxColumns = response.data;
  2055. });
  2056. if(this.type !== "add"){
  2057. getHomeapplyydjfsqStatus(this.id).then(response => {
  2058. this.region = response.data.region;
  2059. this.deptId = response.data.deptId;
  2060. console.info(response.data.deptId);
  2061. });
  2062. }else{
  2063. this.deptId = this.sysFarmer.deptId;
  2064. }
  2065. if(this.type === "todo" || this.type === "done"){
  2066. this.$set(this.sysFarmer, 'memberName', this.$store.getters.nickName);
  2067. }else{
  2068. this.sysFarmer = {deptId:this.$store.state.user.loginDeptId,id:this.$store.state.user.userId};
  2069. }
  2070. this.getFormIntent();
  2071. this.getDetail();
  2072. // this.getLandCoord();
  2073. },
  2074. methods: {
  2075. guidProduct(){
  2076. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  2077. var r = Math.random() * 16 | 0,
  2078. v = c == 'x' ? r : (r & 0x3 | 0x8);
  2079. return v.toString(16);
  2080. });
  2081. },
  2082. isYiLong: function() {
  2083. return this.region === REGION.YI_LONG_XIAN;
  2084. },
  2085. // 打开工作流程
  2086. goFlow(){
  2087. this.flowVisible = true;
  2088. //window.location='flowChart?id='+this.id + '&processKey=WLHT';
  2089. },
  2090. // 初始化当前数据, 有ID则查询, 否则新增
  2091. getDetail(){
  2092. this.reset();
  2093. if(this.id)
  2094. {
  2095. if(this.type === "edit"){
  2096. this.proposerStatus = PROPOSER_EDIT;
  2097. }
  2098. allInformationWLHT(this.id).then(response => {
  2099. listHomeapplytype({deptId: response.data.deptId,status:"0"}).then(res => {
  2100. this.tytzList = res.rows;
  2101. for (let i = 0; i < res.rows.length; i++) {
  2102. //_this.infoList[i].push({text: response.rows[i].name, value: response.rows[i].code});
  2103. if(res.rows[i].id === response.data.tyhxt){
  2104. this.tytzName = res.rows[i].name;
  2105. }
  2106. }
  2107. });
  2108. this.init(response.data);
  2109. });
  2110. }
  2111. else
  2112. {
  2113. listHomeapplytype({deptId:this.sysFarmer.deptId,status:"0"}).then(response => {
  2114. let _this = this;
  2115. this.tytzList = response.rows;
  2116. this.init();
  2117. // this.getApplyerDetail(this.sysFarmer);
  2118. });
  2119. }
  2120. },
  2121. // 绘制申请地图
  2122. pointDarw(data) {
  2123. this.$nextTick(() => {
  2124. let map = this.$refs.pointDarwMap;
  2125. if(data === null)
  2126. if(this.applicationDetail.ydjfkg != null){
  2127. data = this.applicationDetail.ydjfkg.theGeomJson;
  2128. this.setMapData(map, data);
  2129. }
  2130. });
  2131. },
  2132. // 绘制验收地图
  2133. pointWrapAcceptance(data) {
  2134. this.$nextTick(() => {
  2135. let map = this.$refs.pointDarwAcceptanceMap;
  2136. if(data === null)
  2137. if(data === null)
  2138. {
  2139. if(this.applicationDetail.tHouseApplyEnd && this.applicationDetail.tHouseApplyEnd.theGeom)
  2140. data = this.applicationDetail.tHouseApplyEnd.theGeom;
  2141. else {
  2142. if(this.applicationDetail.tHouseApproveNatureOptions && this.applicationDetail.tHouseApproveNatureOptions.theGeom)
  2143. data = this.applicationDetail.tHouseApproveNatureOptions.theGeom;
  2144. }
  2145. }
  2146. this.setMapData(map, data);
  2147. });
  2148. },
  2149. // 绘制开工地图
  2150. paintStartNatureMap(data) {
  2151. this.$nextTick(() => {
  2152. let map = this.$refs.startNatureMap;
  2153. // if(data === null)
  2154. // {
  2155. // if(this.applicationDetail.tHouseApproveNatureOptions && this.applicationDetail.tHouseApproveNatureOptions.theGeom)
  2156. // data = this.applicationDetail.tHouseApproveNatureOptions.theGeom;
  2157. // else {
  2158. // if(this.applicationDetail.theGeom)
  2159. // data = this.applicationDetail.theGeom;
  2160. // }
  2161. // }
  2162. // this.setMapData(map, data);
  2163. });
  2164. },
  2165. // 绘制自然资源部门地图
  2166. pointDarwNature(data) {
  2167. this.$nextTick(() => {
  2168. let map = this.$refs.pointDarwNatureMap;
  2169. if(data === null)
  2170. {
  2171. if(this.applicationDetail.tHouseApproveNatureOptions && this.applicationDetail.tHouseApproveNatureOptions.theGeom)
  2172. data = this.applicationDetail.tHouseApproveNatureOptions.theGeom;
  2173. else {
  2174. if(this.applicationDetail.theGeom)
  2175. data = this.applicationDetail.theGeom;
  2176. }
  2177. }
  2178. this.setMapData(map, data);
  2179. });
  2180. },
  2181. // 通用设置地图数据函数
  2182. setMapData(map, data) {
  2183. //console.log(map, data ? true : false);
  2184. if(!map) return;
  2185. if(data)
  2186. {
  2187. map.setLayer('pointDarwLayer', data);
  2188. }
  2189. else {
  2190. this.getLandCoord((lng, lat) => {
  2191. map.setCoord(this.tGeoOrganizationLng, this.tGeoOrganizationLat);
  2192. });
  2193. }
  2194. },
  2195. // 点击流程步骤条, 切换流程表单页
  2196. onStepClicked(index) {
  2197. this.selectTab(index);
  2198. },
  2199. // 全局初始化
  2200. init(value) {
  2201. console.log(value);
  2202. const role = this.$store.getters.roles;
  2203. this.currentUserRole = role[0];
  2204. console.log("当前用户角色: " + role);
  2205. console.info(this.proposerStatus);
  2206. // 局部变量
  2207. let homeApplyStatus = value ? value.homeApplyStatus : -1;
  2208. let proposerId = value ? value.id : null;
  2209. let hasGroupLevel = false; //value.tHouseApplyProposer.hasOwnProperty('hasGroupLevel') ? value.tHouseApplyProposer.hasGroupLevel : this.isGroupLevel;
  2210. console.log("当前申请状态: " + homeApplyStatus);
  2211. this.formVisible.editVisible = false;
  2212. this.formVisible.baseApplyForm.groupFormVisible = false;
  2213. this.formVisible.baseApplyForm.villageFormVisible = false;
  2214. this.formVisible.baseApplyForm.townFormVisible = false;
  2215. this.formVisible.baseApplyForm.agricultureFormVisible = false;
  2216. this.formVisible.baseApplyForm.buildingFormVisible = false;
  2217. this.formVisible.baseApplyForm.nature_resourceFormVisible = false;
  2218. this.formVisible.landscopeVisible = false;
  2219. this.formVisible.landscopeForm.baseFormVisible = false;
  2220. this.formVisible.acceptingVisible = false;
  2221. this.formVisible.acceptingForm.baseFormVisible = false;
  2222. this.formVisible.acceptingForm.townFormVisible = false
  2223. this.formVisible.acceptingForm.agricultureFormVisible = false;
  2224. this.formVisible.acceptingForm.nature_resourceFormVisible = false;
  2225. this.formVisible.auditVisible = false;
  2226. this.formEnabled.baseApplyEnabled = false;
  2227. this.formEnabled.submitEnabled = false;
  2228. this.formEnabled.baseApplyForm.baseFormEnabled = false;
  2229. this.formEnabled.baseApplyForm.homesteadFormEnabled = false;
  2230. this.formEnabled.baseApplyForm.groupFormEnabled = false;
  2231. this.formEnabled.baseApplyForm.villageFormEnabled = false;
  2232. this.formEnabled.baseApplyForm.townFormEnabled = false;
  2233. this.formEnabled.baseApplyForm.agricultureFormEnabled = false;
  2234. this.formEnabled.baseApplyForm.buildingFormEnabled = false;
  2235. this.formEnabled.baseApplyForm.nature_resourceFormEnabled = false;
  2236. this.formEnabled.landscopeEnabled = false;
  2237. this.formEnabled.landscopeForm.baseFormEnabled = false;
  2238. this.formEnabled.acceptingEnabled = false;
  2239. this.formEnabled.acceptingForm.baseFormEnabled = false;
  2240. this.formEnabled.acceptingForm.townFormEnabled = false;
  2241. this.formEnabled.acceptingForm.agricultureFormEnabled = false;
  2242. this.formEnabled.acceptingForm.nature_resourceFormEnabled = false;
  2243. switch (this.proposerStatus) {
  2244. // 查看
  2245. case PROPOSER_VIEW:
  2246. this.formVisible.baseApplyForm.groupFormVisible = hasGroupLevel && this.isNotProposeStatus(homeApplyStatus, ["12", '13']);
  2247. this.formVisible.baseApplyForm.villageFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "14"]);
  2248. 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']);
  2249. 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']);
  2250. 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']);
  2251. 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']);
  2252. this.formVisible.landscopeVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", "19", "1C", "1D", "1F"]);
  2253. this.formVisible.landscopeForm.baseFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", "19", "1C", "1D", "1F"]);
  2254. this.formVisible.acceptingVisible = this.isProposeStatus(homeApplyStatus, ["71", "72", "74", "77", "79", "7C", "7F"]);
  2255. this.formVisible.acceptingForm.baseFormVisible = this.isProposeStatus(homeApplyStatus, ["71", "72", "74", "77", "79", "7C", "7F"]);
  2256. this.formVisible.acceptingForm.townFormVisible = this.isProposeStatus(homeApplyStatus, ["7C", "7F"]);
  2257. ;
  2258. this.formVisible.acceptingForm.agricultureFormVisible = this.isProposeStatus(homeApplyStatus, ["79", "7C", "7F"]);
  2259. this.formVisible.acceptingForm.nature_resourceFormVisible = this.isProposeStatus(homeApplyStatus, ["79", "7C", "7F"]);
  2260. this.formVisible.acceptingForm.buildingFormVisible = this.isProposeStatus(homeApplyStatus, ["79", "7C", "7F"]);
  2261. if (this.type == 'done') {
  2262. this.formVisible.editVisible = false;
  2263. }
  2264. console.info(value);
  2265. this.houseApplyUploadComp.full = true;
  2266. this.houseApplyUploadComp.readonly = true;
  2267. this.$set(this.houseApplyUploadComp, "proposerId", proposerId);
  2268. this.houseApplyUploadComp.homeApplyStatus = homeApplyStatus;
  2269. this.houseApplyUploadCompStart.full = true;
  2270. this.houseApplyUploadCompStart.readonly = true;
  2271. this.houseApplyUploadCompStart.proposerId = proposerId;
  2272. this.houseApplyUploadCompStart.houseApplyStatus = homeApplyStatus; // == '10' ? '12' : houseApplyStatus;
  2273. this.houseApplyUploadCompEnd.full = true;
  2274. this.houseApplyUploadCompEnd.readonly = true;
  2275. this.houseApplyUploadCompEnd.proposerId = proposerId;
  2276. this.houseApplyUploadCompEnd.houseApplyStatus = homeApplyStatus;
  2277. console.info(this.houseApplyUploadComp);
  2278. // // 初始化自然资源审批现场图
  2279. // this.uploadImgNature.fileList = value.tHouseApproveNatureOptions ? value.tHouseApproveNatureOptions.naturePlan : '';
  2280. // this.uploadImgNature.proposerId = value.tHouseApplyProposer.id;
  2281. // // 初始化农村农业部审批现场图
  2282. // this.uploadImgAgriculture.fileList = value.tHouseApproveAgricultureOptions ? value.tHouseApproveAgricultureOptions.agriculturePlan : '';
  2283. // this.uploadImgAgriculture.proposerId = value.tHouseApplyProposer.id;
  2284. // // 初始化其他部审批现场图
  2285. // this.uploadImgOther.fileList = value.tHouseApproveOtherOptions ? value.tHouseApproveOtherOptions.otherPlan : '';
  2286. // this.uploadImgOther.proposerId = value.tHouseApplyProposer.id;
  2287. // 初始化镇级审批现场图
  2288. // this.uploadImgTown.fileList = value.tHouseApproveTownOptions ? value.tHouseApproveTownOptions.townPlan : '';
  2289. // this.uploadImgTown.proposerId = value.tHouseApplyProposer.id;
  2290. // 初始化验收农村农业部审批现场图
  2291. // this.uploadImgEndNongyePlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.nongyePlan : '';
  2292. // this.uploadImgEndNongyePlan.proposerId = value.tHouseApplyProposer.id;
  2293. // // 初始化验收自然资源部审批现场图
  2294. // this.uploadImgEndNaturePlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.naturePlan : '';
  2295. // this.uploadImgEndNaturePlan.proposerId = value.tHouseApplyProposer.id;
  2296. // // 初始化验收其他部门审批现场图
  2297. // this.uploadImgEndBuildingPlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.buildingPlan : '';
  2298. // this.uploadImgEndBuildingPlan.proposerId = value.tHouseApplyProposer.id;
  2299. // // 初始化验收镇级审批现场图
  2300. // this.uploadImgEndZhenPlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.zhenPlan : '';
  2301. // this.uploadImgEndZhenPlan.proposerId = value.tHouseApplyProposer.id;
  2302. // 初始化申请平面图
  2303. this.uploadImg.fileList = value.ydjfsp ? value.ydjfsp.zjdzlpmwzt : '';
  2304. this.uploadImg.proposerId = this.applicationDetail.id;
  2305. // 初始化验收平面图
  2306. this.uploadImgAccepting.fileList = value.ydjfys ? value.ydjfys.jgpmjt : '';
  2307. this.uploadImgAccepting.proposerId = this.applicationDetail.id;
  2308. console.info(this.uploadImgAccepting);
  2309. //地图查看
  2310. this.applicationDetail = value;
  2311. this.pointDarw(null);
  2312. // this.pointDarwNature(null);
  2313. // this.pointWrapAcceptance(null);
  2314. // this.paintStartNatureMap(null);
  2315. // if(value.homeApplyStage == "1" ){
  2316. // if(this.applicationDetail.cjxzscyj !=null && this.applicationDetail.cjxzscyj !=''){
  2317. // this.formVisible.baseApplyForm.villageFormVisible = true;
  2318. // }
  2319. // console.info( this.formVisible.baseApplyForm.villageFormVisible);
  2320. // if(this.applicationDetail.ydjfsp != null && this.applicationDetail.ydjfsp.zfcxjsbmscyj !=null && this.applicationDetail.ydjfsp.zfcxjsbmscyj !=''){
  2321. // this.formVisible.baseApplyForm.buildingFormVisible = true;
  2322. // }
  2323. // if(this.applicationDetail.ydjfsp != null && this.applicationDetail.ydjfsp.nyncbmscyj !=null && this.applicationDetail.ydjfsp.nyncbmscyj !=''){
  2324. // this.formVisible.baseApplyForm.agricultureFormVisible = true;
  2325. // }
  2326. // if(this.applicationDetail.ydjfsp != null && this.applicationDetail.ydjfsp.zrzybmscyj !=null && this.applicationDetail.ydjfsp.zrzybmscyj !=''){
  2327. // this.formVisible.baseApplyForm.nature_resourceFormVisible = true;
  2328. // }
  2329. // if(this.applicationDetail.ydjfsp != null && this.applicationDetail.ydjfsp.xzzfshpzyj !=null && this.applicationDetail.ydjfsp.xzzfshpzyj !=''){
  2330. // this.formVisible.baseApplyForm.townFormVisible = true;
  2331. // }
  2332. // }
  2333. // if(value.homeApplyStage == "3" ){
  2334. // // if(this.applicationDetail.ydjfys.villageOption !=null && this.applicationDetail.ydjfys.villageOption !=''){
  2335. // // this.formVisible.baseApplyForm.villageFormVisible = true;
  2336. // // }
  2337. // // if(this.applicationDetail.tHouseApproveOtherOptions.approveOption !=null && this.applicationDetail.tHouseApproveOtherOptions.approveOption !=''){
  2338. // // this.formVisible.acceptingForm.baseFormVisible = false;
  2339. // // }
  2340. // if(this.applicationDetail.ydjfys.nyncbmysyj !=null && this.applicationDetail.ydjfys.nyncbmysyj !=''){
  2341. // this.formVisible.acceptingForm.agricultureFormVisible = true;
  2342. // }
  2343. // if(this.applicationDetail.ydjfys.zrzybmysyj !=null && this.applicationDetail.ydjfys.zrzybmysyj !=''){
  2344. // this.formVisible.acceptingForm.nature_resourceFormVisible = true;
  2345. // }
  2346. // if(this.applicationDetail.ydjfys.zfcxjsbmysyj !=null && this.applicationDetail.ydjfys.zfcxjsbmysyj !=''){
  2347. // this.formVisible.acceptingForm.buildingFormVisible = true;
  2348. // }
  2349. // if(this.applicationDetail.ydjfys.xzzfysyj !=null && this.applicationDetail.ydjfys.xzzfysyj !=''){
  2350. // this.formVisible.acceptingForm.townFormVisible = true
  2351. // }
  2352. // }
  2353. break;
  2354. // 编辑/审批
  2355. case PROPOSER_EDIT:
  2356. let handlerName = this.$store.getters.nickName;
  2357. let handlerTime = this.getDate();
  2358. this.applicationDetail = value;
  2359. if (this.type === "todo") {
  2360. if (this.isProposeStatus(homeApplyStatus, ["14"])) {
  2361. if (this.$route.query.electronicSignature != null) {
  2362. this.$set(this.applicationDetail, "cjxzscr", this.$route.query.electronicSignature);
  2363. } else {
  2364. this.$set(this.applicationDetail, "cjxzscr", this.$route.query.nickName);
  2365. }
  2366. } else if (this.isProposeStatus(homeApplyStatus, ["19"]) && this.isInRoles(role, ['nature_resource'])) {
  2367. if (this.$route.query.electronicSignature != null) {
  2368. this.$set(this.applicationDetail.ydjfsp, "zrzybmscrxm", this.$route.query.electronicSignature);
  2369. } else {
  2370. this.$set(this.applicationDetail.ydjfsp, "zrzybmscrxm", this.$route.query.nickName);
  2371. }
  2372. } else if (this.isProposeStatus(homeApplyStatus, ["19"]) && this.isInRoles(role, ['agriculture'])) {
  2373. if (this.$route.query.electronicSignature != null) {
  2374. this.$set(this.applicationDetail.ydjfsp, "nyncbmscrxm", this.$route.query.electronicSignature);
  2375. } else {
  2376. this.$set(this.applicationDetail.ydjfsp, "nyncbmscrxm", this.$route.query.nickName);
  2377. }
  2378. } else if (this.isProposeStatus(homeApplyStatus, ["19"]) && this.isInRoles(role, ['building'])) {
  2379. if (this.$route.query.electronicSignature != null) {
  2380. this.$set(this.applicationDetail.ydjfsp, "zfcxjsbmscrxm", this.$route.query.electronicSignature);
  2381. } else {
  2382. this.$set(this.applicationDetail.ydjfsp, "zfcxjsbmscrxm", this.$route.query.nickName);
  2383. }
  2384. } else if (this.isProposeStatus(homeApplyStatus, ["1C"]) && this.isInRoles(role, ['town_leader'])) {
  2385. if (this.$route.query.electronicSignature != null) {
  2386. this.$set(this.applicationDetail.ydjfsp, "xzzfshpzrxm", this.$route.query.electronicSignature);
  2387. } else {
  2388. this.$set(this.applicationDetail.ydjfsp, "xzzfshpzrxm", this.$route.query.nickName);
  2389. }
  2390. } else if (this.isProposeStatus(homeApplyStatus, ["79"]) && this.isInRoles(role, ['nature_resource'])) {
  2391. if (this.$route.query.electronicSignature != null) {
  2392. this.$set(this.applicationDetail.ydjfys, "zrzybmysjbrxm", this.$route.query.electronicSignature);
  2393. } else {
  2394. this.$set(this.applicationDetail.ydjfys, "zrzybmysjbrxm", this.$route.query.nickName);
  2395. }
  2396. } else if (this.isProposeStatus(homeApplyStatus, ["79"]) && this.isInRoles(role, ['agriculture'])) {
  2397. if (this.$route.query.electronicSignature != null) {
  2398. this.$set(this.applicationDetail.ydjfys, "nyncbmysjbrxm", this.$route.query.electronicSignature);
  2399. } else {
  2400. this.$set(this.applicationDetail.ydjfys, "nyncbmysjbrxm", this.$route.query.nickName);
  2401. }
  2402. } else if (this.isProposeStatus(homeApplyStatus, ["79"]) && this.isInRoles(role, ['building'])) {
  2403. if (this.$route.query.electronicSignature != null) {
  2404. this.$set(this.applicationDetail.ydjfys, "zfcxjsbmysjbrxm", this.$route.query.electronicSignature);
  2405. } else {
  2406. this.$set(this.applicationDetail.ydjfys, "zfcxjsbmysjbrxm", this.$route.query.nickName);
  2407. }
  2408. } else if (this.isProposeStatus(homeApplyStatus, ["7C"]) && this.isInRoles(role, ['town_leader'])) {
  2409. if (this.$route.query.electronicSignature != null) {
  2410. this.$set(this.applicationDetail.ydjfys, "xzzfysjbrxm", this.$route.query.electronicSignature);
  2411. } else {
  2412. this.$set(this.applicationDetail.ydjfys, "xzzfysjbrxm", this.$route.query.nickName);
  2413. }
  2414. }
  2415. }
  2416. if (this.isProposeStatus(homeApplyStatus, ["71", "72", "74", '77', "79", "7C"])) {
  2417. this.formEnabled.ysnrEnable = true;
  2418. }
  2419. this.formVisible.auditVisible = this.type === 'done' || this.type === 'todo';
  2420. // 申请-组级审批 初始化表单
  2421. if (hasGroupLevel) {
  2422. if (this.isProposeStatus(homeApplyStatus, ["32"])) {
  2423. let defaultGroupOption = this.form.groupOption
  2424. .replaceAll('{memberName}', this.applicationDetail.sqhhzxm)
  2425. ;
  2426. if (!value.tHouseApproveVillageOptions) {
  2427. this.$set(this.applicationDetail, 'tHouseApproveVillageOptions', {
  2428. groupLeader: handlerName,
  2429. groupTime: handlerTime,
  2430. groupOption: defaultGroupOption
  2431. });
  2432. } else {
  2433. if (!this.applicationDetail.tHouseApproveVillageOptions.groupLeader)
  2434. this.$set(this.applicationDetail.tHouseApproveVillageOptions, 'groupLeader', handlerName);
  2435. if (!this.applicationDetail.tHouseApproveVillageOptions.groupTime)
  2436. this.$set(this.applicationDetail.tHouseApproveVillageOptions, 'groupTime', handlerTime);
  2437. if (!this.applicationDetail.tHouseApproveVillageOptions.groupOption)
  2438. this.$set(this.applicationDetail.tHouseApproveVillageOptions, 'groupOption', defaultGroupOption);
  2439. }
  2440. }
  2441. }
  2442. // 申请-草稿
  2443. if (this.isProposeStatus(homeApplyStatus, ["11"])) {
  2444. this.formEnabled.baseApplyForm.baseFormEnabled = true;
  2445. this.formEnabled.baseApplyEnabled = true;
  2446. this.formEnabled.submitEnabled = true;
  2447. this.formVisible.editVisible = true;
  2448. }
  2449. // 申请-村级审核
  2450. else if (this.isProposeStatus(homeApplyStatus, ["14", "15", "17", "19"])) {
  2451. let neighbor = [];
  2452. if (this.applicationDetail.nsqzjdszd) neighbor.push(this.applicationDetail.nsqzjdszd);
  2453. if (this.applicationDetail.nsqzjdszx) neighbor.push(this.applicationDetail.nsqzjdszx);
  2454. if (this.applicationDetail.nsqzjdszn) neighbor.push(this.applicationDetail.nsqzjdszn);
  2455. if (this.applicationDetail.nsqzjdszb) neighbor.push(this.applicationDetail.nsqzjdszb);
  2456. neighbor = neighbor.join('、');
  2457. if(this.applicationDetail.cjxzscyj != null && this.applicationDetail.cjxzscyj !== "" ){
  2458. this.$set(this.applicationDetail, 'cjxzscyj', this.applicationDetail.cjxzscyj);
  2459. this.$set(this.applicationDetail, 'cjxzscsj', this.applicationDetail.cjxzscsj);
  2460. }else{
  2461. let defaultVillageOption = this.form.villageOption
  2462. .replaceAll('{sqhhzxm}', this.applicationDetail.sqhhzxm)
  2463. .replaceAll('{nsqzjddz}', this.applicationDetail.nsqzjddz)
  2464. .replaceAll('{isAdvice}', neighbor);
  2465. this.$set(this.applicationDetail, 'cjxzscyj', defaultVillageOption);
  2466. this.$set(this.applicationDetail, 'cjxzscsj', handlerTime);
  2467. }
  2468. }
  2469. // 申请-镇级审批
  2470. // else if(this.isProposeStatus(homeApplyStatus, ["19"]))
  2471. // {
  2472. // // 自然资源部门
  2473. // if(!value.tHouseApproveNatureOptions)
  2474. // {
  2475. // this.$set(this.applicationDetail, "tHouseApproveNatureOptions", {
  2476. // landArea: null,
  2477. // rightsType: null,
  2478. // east: null, // 东至
  2479. // west: null, // 西至
  2480. // south: null, // 南至
  2481. // north: null, // 北至
  2482. // //approveLeader: handlerName,
  2483. // approveLeader: null,
  2484. // approveOption: null,
  2485. // approveTime: handlerTime,
  2486. // theGeom: value.tHouseApplyProposedSituation.theGeom,
  2487. // naturePlan: null, //现场拍照
  2488. // theGeomPoint: null, //现场坐标点
  2489. // });
  2490. // }
  2491. // else {
  2492. // if(!this.applicationDetail.tHouseApproveNatureOptions.approveLeader)
  2493. // // this.$set(this.applicationDetail.tHouseApproveNatureOptions, 'approveLeader', handlerName);
  2494. // if(!this.applicationDetail.tHouseApproveNatureOptions.approveTime)
  2495. // this.$set(this.applicationDetail.tHouseApproveNatureOptions, 'approveTime', handlerTime);
  2496. // }
  2497. // // 农村农业部门
  2498. // if(!value.tHouseApproveAgricultureOptions)
  2499. // {
  2500. // this.$set(this.applicationDetail, "tHouseApproveAgricultureOptions", {
  2501. // isMembership: null,
  2502. // isOnehouse: null,
  2503. // isReviewmaterials: null,
  2504. // //approveLeader: handlerName,
  2505. // approveLeader: null,
  2506. // approveOption: null,
  2507. // approveTime: handlerTime,
  2508. // agriculturePlan: null, //现场拍照
  2509. // theGeomPoint: null, //现场坐标点
  2510. // });
  2511. // }
  2512. // else {
  2513. // if(!this.applicationDetail.tHouseApproveAgricultureOptions.approveLeader)
  2514. // //this.$set(this.applicationDetail.tHouseApproveAgricultureOptions, 'approveLeader', handlerName);
  2515. // if(!this.applicationDetail.tHouseApproveAgricultureOptions.approveTime)
  2516. // this.$set(this.applicationDetail.tHouseApproveAgricultureOptions, 'approveTime', handlerTime);
  2517. // }
  2518. // // 住建部
  2519. // if(!value.tHouseApproveOtherOptions)
  2520. // {
  2521. // this.$set(this.applicationDetail, "tHouseApproveOtherOptions", {
  2522. // buildingType: null,
  2523. // buildingArea: null,
  2524. // buildingFloors: null,
  2525. // buildingHight: null,
  2526. // buildingLandArea: null,
  2527. // designPaper: "1",
  2528. // east: null, // 东至
  2529. // west: null, // 西至
  2530. // south: null, // 南至
  2531. // north: null, // 北至
  2532. // //approveLeader: handlerName,
  2533. // approveLeader: null,
  2534. // approveOption: null,
  2535. // approveTime: handlerTime,
  2536. // otherPlan: null, //现场拍照
  2537. // theGeomPoint: null, //现场坐标点
  2538. // });
  2539. // }
  2540. // else {
  2541. // if(!this.applicationDetail.tHouseApproveOtherOptions.approveLeader)
  2542. // // this.$set(this.applicationDetail.tHouseApproveOtherOptions, 'approveLeader', handlerName);
  2543. // if(!this.applicationDetail.tHouseApproveOtherOptions.approveTime)
  2544. // this.$set(this.applicationDetail.tHouseApproveOtherOptions, 'approveTime', handlerTime);
  2545. // }
  2546. // // 镇政府
  2547. // if(!value.tHouseApproveTownOptions)
  2548. // {
  2549. // this.$set(this.applicationDetail, 'tHouseApproveTownOptions', {
  2550. // //approveLeader: handlerName,
  2551. // approveLeader: null,
  2552. // approveTime: handlerTime,
  2553. // townPlan: null, //现场拍照
  2554. // theGeomPoint: null, //现场坐标点
  2555. // });
  2556. // }
  2557. // else {
  2558. // if(!this.applicationDetail.tHouseApproveTownOptions.approveLeader)
  2559. // // this.$set(this.applicationDetail.tHouseApproveTownOptions, 'approveLeader', handlerName);
  2560. // if(!this.applicationDetail.tHouseApproveTownOptions.approveTime)
  2561. // this.$set(this.applicationDetail.tHouseApproveTownOptions, 'approveTime', handlerTime);
  2562. // }
  2563. // // 勘察
  2564. // if(!value.tHouseApproveLocationplanOptions)
  2565. // {
  2566. // this.$set(this.applicationDetail, 'tHouseApproveLocationplanOptions', {
  2567. // locationPlan: null,
  2568. // cartographicUnit: null,
  2569. // surveyPersonnel: handlerName,
  2570. // suveyTime: handlerTime,
  2571. // cartographer: handlerName,
  2572. // cartographicTime: handlerTime,
  2573. // });
  2574. // }
  2575. // else {
  2576. // if(!this.applicationDetail.tHouseApproveLocationplanOptions.surveyPersonnel)
  2577. // this.$set(this.applicationDetail.tHouseApproveLocationplanOptions, 'surveyPersonnel', handlerName);
  2578. // if(!this.applicationDetail.tHouseApproveLocationplanOptions.suveyTime)
  2579. // this.$set(this.applicationDetail.tHouseApproveLocationplanOptions, 'suveyTime', handlerTime);
  2580. // if(!this.applicationDetail.tHouseApproveLocationplanOptions.cartographer)
  2581. // this.$set(this.applicationDetail.tHouseApproveLocationplanOptions, 'cartographer', handlerName);
  2582. // if(!this.applicationDetail.tHouseApproveLocationplanOptions.cartographicTime)
  2583. // this.$set(this.applicationDetail.tHouseApproveLocationplanOptions, 'cartographicTime', handlerTime);
  2584. // }
  2585. // console.info(this.formVisible.auditVisible);
  2586. // }
  2587. // 开工申请
  2588. else if (this.isProposeStatus(homeApplyStatus, ["10"])) {
  2589. if (!this.applicationDetail.tHouseApplyStart) {
  2590. this.$set(this.applicationDetail, 'tHouseApplyStart', {
  2591. startDate: null,
  2592. endDate: null,
  2593. });
  2594. }
  2595. }
  2596. // 验收
  2597. // else if(this.isProposeStatus(homeApplyStatus, ["71"]))
  2598. // {
  2599. // if(!this.applicationDetail.tHouseApplyEnd)
  2600. // {
  2601. // this.$set(this.applicationDetail, 'tHouseApplyEnd', {
  2602. // //TODO: 开工结束时后台必定生成
  2603. // });
  2604. // }
  2605. // if(this.applicationDetail.tHouseApplyEnd.oldHouseStatus == '0')
  2606. // this.applicationDetail.tHouseApplyEnd.oldHouseStatus = null;
  2607. // }
  2608. // 开工二道场审批
  2609. else if (this.isProposeStatus(homeApplyStatus, ["39"])){
  2610. if(this.isInRoles(role, ['nature_resource']))
  2611. {
  2612. this.formVisible.landscopeForm.nature_resourceFormEnabled = true;
  2613. console.info(this.formVisible.landscopeForm.nature_resourceFormEnabled);
  2614. }
  2615. }
  2616. // 验收镇级审批
  2617. else if(this.isProposeStatus(homeApplyStatus, ["79","7C","7F"]))
  2618. {
  2619. if(this.isInRoles(role, ['town_leader']))
  2620. {
  2621. if(!this.applicationDetail.ydjfys.jgpmjtjbr) this.applicationDetail.ydjfys.jgpmjtjbr = handlerName;
  2622. if(!this.applicationDetail.ydjfys.xzzfysjbrxm) //this.applicationDetail.tHouseApplyEnd.zhenName = handlerName;
  2623. if(!this.applicationDetail.ydjfys.xzzfyssj) this.applicationDetail.ydjfys.xzzfyssj = handlerTime;
  2624. }
  2625. if(this.isInRoles(role, ['agriculture']))
  2626. {
  2627. if(!this.applicationDetail.ydjfys.nyncbmysjbrxm) //this.applicationDetail.tHouseApplyEnd.nongyeName = handlerName;
  2628. if(!this.applicationDetail.ydjfys.nyncbmyssj) this.applicationDetail.ydjfys.nyncbmyssj = handlerTime;
  2629. }
  2630. if(this.isInRoles(role, ['nature_resource']))
  2631. {
  2632. if(!this.applicationDetail.ydjfys.zrzybmysjbrxm) //this.applicationDetail.tHouseApplyEnd.natureName = handlerName;
  2633. if(!this.applicationDetail.ydjfys.zrzybmyssj) this.applicationDetail.ydjfys.zrzybmyssj = handlerTime;
  2634. }
  2635. if(this.isInRoles(role, ['building']))
  2636. {
  2637. if(!this.applicationDetail.ydjfys.zfcxjsbmysjbrxm) //this.applicationDetail.tHouseApplyEnd.natureName = handlerName;
  2638. if(!this.applicationDetail.ydjfys.zfcxjsbmyssj) this.applicationDetail.ydjfys.zfcxjsbmyssj = handlerTime;
  2639. }
  2640. if(0)
  2641. {
  2642. if(!this.applicationDetail.ydjfys.buildingName) //this.applicationDetail.tHouseApplyEnd.buildingName = handlerName;
  2643. if(!this.applicationDetail.ydjfys.buildingTime) this.applicationDetail.tHouseApplyEnd.buildingTime = handlerTime;
  2644. }
  2645. // if(0) {
  2646. // if (!this.applicationDetail.ydjfys.isProjectFinished) this.applicationDetail.tHouseApplyEnd.isProjectFinished = 'Y';
  2647. // if (!this.applicationDetail.ydjfys.isQualifiedQuality) this.applicationDetail.tHouseApplyEnd.isQualifiedQuality = 'Y';
  2648. // if (!this.applicationDetail.ydjfys.hasBuildingRecord) this.applicationDetail.tHouseApplyEnd.hasBuildingRecord = 'Y';
  2649. // if (!this.applicationDetail.ydjfys.isSignWarranty) this.applicationDetail.tHouseApplyEnd.isSignWarranty = 'Y';
  2650. // if (!this.applicationDetail.ydjfys.isHandleProblem) this.applicationDetail.tHouseApplyEnd.isHandleProblem = 'Y';
  2651. // if (!this.applicationDetail.ydjfys.isDesignPaperSame) this.applicationDetail.tHouseApplyEnd.isDesignPaperSame = 'Y';
  2652. // if (!this.applicationDetail.ydjfys.isOtherAcceptanceFinished) this.applicationDetail.tHouseApplyEnd.isOtherAcceptanceFinished = 'Y';
  2653. // }
  2654. }
  2655. // 可见/隐藏
  2656. this.formVisible.baseApplyForm.groupFormVisible = hasGroupLevel && this.isNotProposeStatus(homeApplyStatus, ["1","25"]);
  2657. this.formVisible.baseApplyForm.villageFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "31", "71"]);
  2658. if(this.isNotProposeStatus(homeApplyStatus, ["11", "14", "15","17", "31", "34", '71', '74']))
  2659. {
  2660. if(this.isInRoles(role, ['town_leader', 'agriculture']))
  2661. {
  2662. this.formVisible.baseApplyForm.agricultureFormVisible = true;
  2663. // this.applicationDetail.tHouseApproveAgricultureOptions.approveOption = null;
  2664. // this.applicationDetail.tHouseApproveAgricultureOptions.approveLeader = null;
  2665. this.applicationDetail.ydjfsp.nyncbmscsj = handlerTime;
  2666. }
  2667. if(this.isInRoles(role, ['town_leader', 'building']))
  2668. {
  2669. this.formVisible.baseApplyForm.buildingFormVisible = true;
  2670. // this.applicationDetail.tHouseApproveOtherOptions.approveOption = null;
  2671. // this.applicationDetail.tHouseApproveOtherOptions.approveLeader = null;
  2672. this.applicationDetail.ydjfsp.zfcxjsbmscsj = handlerTime;
  2673. }
  2674. if(this.isInRoles(role, ['town_leader', 'nature_resource']))
  2675. {
  2676. this.formVisible.baseApplyForm.nature_resourceFormVisible = true;
  2677. // this.applicationDetail.tHouseApproveNatureOptions.approveOption = null;
  2678. // this.applicationDetail.tHouseApproveNatureOptions.approveLeader = null;
  2679. this.applicationDetail.ydjfsp.zrzybmscsj = handlerTime;
  2680. }
  2681. if(this.isInRoles(role, ['town_leader']))
  2682. {
  2683. this.formVisible.baseApplyForm.townFormVisible = true;
  2684. // this.applicationDetail.tHouseApproveTownOptions.approveOption = null;
  2685. // this.applicationDetail.tHouseApproveTownOptions.approveLeader = null;
  2686. this.applicationDetail.ydjfsp.xzzfshpzsj = handlerTime;
  2687. this.applicationDetail.ydjfsp.zjdzlpmwzxctksj = handlerTime;
  2688. this.applicationDetail.ydjfsp.zckcsj = handlerTime;
  2689. this.wztUpdate = true;
  2690. }
  2691. }
  2692. this.formVisible.landscopeVisible = this.isNotProposeStatus(homeApplyStatus, ["12", "14", "15","19", "1C", "1D", '1F',]);
  2693. this.formVisible.landscopeForm.baseFormVisible = this.isNotProposeStatus(homeApplyStatus, ["1", "32", "2", "3", "31", '4', '5', '6', '7', '8', '9',"25"]);
  2694. //this.formVisible.baseApplyForm.townFormVisible = this.landscopeVisible
  2695. this.formVisible.acceptingVisible = this.isProposeStatus(homeApplyStatus, ["71", "72", "74","77", "79", "7C", "7F"]);
  2696. this.formVisible.acceptingForm.baseFormVisible = this.isProposeStatus(homeApplyStatus, ["71", "72", "74", "77","79", "7C", "7F"]);
  2697. // selectProposerNh({hzzjhm:this.applicationDetail.sqhhzsfzh,deptId:value.deptId}).then(res => {
  2698. // if(res.rows.length > 0){
  2699. // this.getMemberCurrentSituation(res.rows[0].id);
  2700. // }
  2701. // });
  2702. (this.isProposeStatus(homeApplyStatus, ["79", "7C","7F"]))
  2703. {
  2704. if(this.isInRoles(role, ['town_leader', 'agriculture']))
  2705. {
  2706. this.formVisible.acceptingForm.agricultureFormVisible = true;
  2707. }
  2708. if(this.isInRoles(role, ['town_leader', 'nature_resource']))
  2709. {
  2710. this.formVisible.acceptingForm.nature_resourceFormVisible = true;
  2711. }
  2712. if(this.isInRoles(role, ['town_leader', 'building']))
  2713. {
  2714. this.formVisible.acceptingForm.buildingFormVisible = true;
  2715. }
  2716. if(this.isInRoles(role, ['town_leader']))
  2717. {
  2718. this.formVisible.acceptingForm.townFormVisible = true;
  2719. }
  2720. }
  2721. // 禁用/启用
  2722. this.formEnabled.baseApplyForm.groupFormEnabled = hasGroupLevel && this.isProposeStatus(homeApplyStatus, ["12",'32',"72"]) && this.isInRoles(role, 'village_group_leader');
  2723. this.formEnabled.baseApplyForm.villageFormEnabled = this.isProposeStatus(homeApplyStatus, ["14","34","74"]) && this.isInRoles(role, 'village_leader');
  2724. // //驳回时审批意见及签名清空
  2725. // if(this.formEnabled.baseApplyForm.villageFormEnabled){
  2726. // this.applicationDetail.tHouseApproveVillageOptions.villageLeader = null;
  2727. // //this.applicationDetail.tHouseApproveVillageOptions.
  2728. // }
  2729. if(this.isProposeStatus(homeApplyStatus, ['19',"1C"]))
  2730. {
  2731. if(this.isInRoles(role, ['agriculture']))
  2732. {
  2733. this.formEnabled.baseApplyForm.agricultureFormEnabled = true;
  2734. }
  2735. if(this.isInRoles(role, ['building']))
  2736. {
  2737. this.formEnabled.baseApplyForm.buildingFormEnabled = true;
  2738. }
  2739. if(this.isInRoles(role, ['nature_resource']))
  2740. {
  2741. this.formEnabled.baseApplyForm.nature_resourceFormEnabled = true;
  2742. }
  2743. if(this.isInRoles(role, ['town_leader']))
  2744. {
  2745. this.formEnabled.baseApplyForm.townFormEnabled = true;
  2746. }
  2747. }
  2748. this.formEnabled.landscopeEnabled = this.isProposeStatus(homeApplyStatus, ['31']);
  2749. this.formEnabled.landscopeForm.baseFormEnabled = this.isProposeStatus(homeApplyStatus, ['31']);
  2750. this.formEnabled.acceptingEnabled = this.isProposeStatus(homeApplyStatus, ['71']);
  2751. this.formEnabled.acceptingForm.baseFormEnabled = this.isProposeStatus(homeApplyStatus, ['71']);
  2752. if(this.isProposeStatus(homeApplyStatus, ['79',"7C"]))
  2753. {
  2754. if(this.isInRoles(role, ['agriculture']))
  2755. {
  2756. this.formEnabled.acceptingForm.agricultureFormEnabled = true;
  2757. }
  2758. if(this.isInRoles(role, ['nature_resource']))
  2759. {
  2760. this.formEnabled.acceptingForm.nature_resourceFormEnabled = true;
  2761. }
  2762. if(this.isInRoles(role, ['building']))
  2763. {
  2764. this.formEnabled.acceptingForm.buildingFormEnabled = true;
  2765. }
  2766. if(this.isInRoles(role, ['town_leader']))
  2767. {
  2768. this.formEnabled.acceptingForm.townFormEnabled = true;
  2769. }
  2770. }
  2771. // this.applicationDetail.tHouseApplyProposer = value.tHouseApplyProposer;
  2772. // this.applicationDetail.tHouseApplyCurrentSituation = value.tHouseApplyCurrentSituation;
  2773. // this.applicationDetail.tHouseApplyProposedSituation = value.tHouseApplyProposedSituation;
  2774. //this.formEnabled.landscopeEnabled = value.startDraft;
  2775. //this.formVisible.baseApplyForm.townFormVisible = this.isLandscope(homeApplyStatus, ["12", "13", "14", "15", "16", "17", "28", "19", "18"]);
  2776. //this.formVisible.baseApplyForm.townFormVisible = this.isProposeStatus(houseApplyStatus, ["18", "20", "21", "22", "23", "24", "25", "30", "29", "26"]);
  2777. //this.applicationDetail.tHouseApplyProposer = this.isProposeStatus(houseApplyStatus, ["18", "20", "21", "22", "23", "24", "25", "30", "29", "26"]);
  2778. //this.formVisible.baseApplyForm.villageFormVisible = this.isProposeStatus(houseApplyStatus, ["18", "20", "21", "22", "23", "24", "25", "30", "29", "26"]);
  2779. //this.formVisible.acceptingVisible = this.isProposeStatus(houseApplyStatus, ["18", "20", "21", "22", "23", "24", "25", "30", "29", "26"]);
  2780. if (this.isLandscope()) {
  2781. this.houseApplyUploadComp.full = true;
  2782. this.houseApplyUploadCompStart.full = false;
  2783. this.houseApplyUploadCompEnd.full = false;
  2784. this.houseApplyUploadComp.readonly = homeApplyStatus != '11';
  2785. this.houseApplyUploadCompStart.readonly = false;
  2786. this.houseApplyUploadCompEnd.readonly = true;
  2787. } else if (this.isAccepting()) {
  2788. this.houseApplyUploadComp.full = true;
  2789. this.houseApplyUploadCompStart.full = true;
  2790. this.houseApplyUploadCompEnd.full = false;
  2791. this.houseApplyUploadComp.readonly = true;
  2792. this.houseApplyUploadCompStart.readonly = true;
  2793. this.houseApplyUploadCompEnd.readonly = false;
  2794. }
  2795. else { // this.isBaseApply()
  2796. this.houseApplyUploadComp.full = false;
  2797. this.houseApplyUploadCompStart.full = false;
  2798. this.houseApplyUploadCompEnd.full = false;
  2799. this.houseApplyUploadComp.readonly = false;
  2800. this.houseApplyUploadCompStart.readonly = homeApplyStatus == '11' ? false : true;
  2801. this.houseApplyUploadCompEnd.readonly = true;
  2802. }
  2803. this.houseApplyUploadComp.proposerId = proposerId;
  2804. this.houseApplyUploadComp.homeApplyStatus = homeApplyStatus == '12' ? '10' : homeApplyStatus; // 申请通过是10 被驳回是12;
  2805. this.houseApplyUploadCompStart.proposerId = proposerId;
  2806. this.houseApplyUploadCompStart.homeApplyStatus = homeApplyStatus == '10' ? '12' : homeApplyStatus; // 申请通过是10 被驳回是12
  2807. this.houseApplyUploadCompEnd.proposerId = proposerId;
  2808. this.houseApplyUploadCompEnd.homeApplyStatus = homeApplyStatus;
  2809. // 初始化村级审核现场图
  2810. this.uploadImgVillage.fileList = value.tHouseApproveVillageOptions ? value.tHouseApproveVillageOptions.villagePlan : '';
  2811. this.uploadImgVillage.proposerId = value.id;
  2812. // 初始化自然资源审批现场图
  2813. this.uploadImgNature.fileList = value.tHouseApproveNatureOptions ? value.tHouseApproveNatureOptions.naturePlan : '';
  2814. this.uploadImgNature.proposerId = value.id;
  2815. // 初始化其他部审批现场图
  2816. this.uploadImgOther.fileList = value.tHouseApproveOtherOptions ? value.tHouseApproveOtherOptions.otherPlan : '';
  2817. this.uploadImgOther.proposerId = value.id;
  2818. // 初始化农村农业部审批现场图
  2819. this.uploadImgAgriculture.fileList = value.tHouseApproveAgricultureOptions ? value.tHouseApproveAgricultureOptions.agriculturePlan : '';
  2820. this.uploadImgAgriculture.proposerId = value.id;
  2821. // 初始化镇级审批现场图
  2822. this.uploadImgTown.fileList = value.tHouseApproveTownOptions ? value.tHouseApproveTownOptions.townPlan : '';
  2823. this.uploadImgTown.proposerId = value.id;
  2824. // 初始化验收农村农业部审批现场图
  2825. this.uploadImgEndNongyePlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.nongyePlan : '';
  2826. this.uploadImgEndNongyePlan.proposerId = value.id;
  2827. // 初始化验收自然资源部审批现场图
  2828. this.uploadImgEndNaturePlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.naturePlan : '';
  2829. this.uploadImgEndNaturePlan.proposerId = value.id;
  2830. // 初始化验收其他部门审批现场图
  2831. this.uploadImgEndBuildingPlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.buildingPlan : '';
  2832. this.uploadImgEndBuildingPlan.proposerId = value.id;
  2833. // 初始化验收镇级审批现场图
  2834. this.uploadImgEndZhenPlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.zhenPlan : '';
  2835. this.uploadImgEndZhenPlan.proposerId = value.id;
  2836. // 初始化申请平面图
  2837. this.applicationDetail.tHouseApproveLocationplanOptions = value.tHouseApproveLocationplanOptions;
  2838. this.uploadImg.fileList = value.ydjfsp ? value.ydjfsp.zjdzlpmwzt : '';
  2839. this.uploadImg.proposerId = this.applicationDetail.id;
  2840. this.uploadImgAccepting.fileList = value.ydjfys ? value.ydjfys.jgpmjt : '';
  2841. this.uploadImgAccepting.proposerId = this.applicationDetail.id;
  2842. console.info("-------------------------"+role+"-------------------------");
  2843. //地图编辑
  2844. this.pointDarw(null);
  2845. // this.pointDarwNature(null);
  2846. // this.pointWrapAcceptance(null);
  2847. // this.paintStartNatureMap(null);
  2848. break;
  2849. // 新建
  2850. case PROPOSER_ADD:
  2851. this.formEnabled.baseApplyEnabled = true;
  2852. this.formEnabled.baseApplyForm.baseFormEnabled = true;
  2853. this.formEnabled.submitEnabled = true;
  2854. this.formVisible.editVisible = true;
  2855. this.houseApplyUploadComp.full = false;
  2856. this.houseApplyUploadComp.readonly = false;
  2857. this.houseApplyUploadComp.homeApplyStatus = '11';
  2858. this.houseApplyUploadComp.proposerId = -1;
  2859. this.$nextTick(()=>{
  2860. getWorkflow(this.sysFarmer.deptId).then((resp) => {
  2861. this.$set(this.applicationDetail, 'proposerActiveIndex', 0);
  2862. this.$set(this.applicationDetail, 'startActiveIndex', -1);
  2863. this.$set(this.applicationDetail, 'endActiveIndex', -1);
  2864. this.$set(this.applicationDetail, 'applyStepList', resp.data.applyStepList.name);
  2865. this.$set(this.applicationDetail, 'startStepList', resp.data.startStepList.name);
  2866. this.$set(this.applicationDetail, 'endStepList', resp.data.endStepList.name);
  2867. });
  2868. })
  2869. this.pointDarw();
  2870. //this.initData();
  2871. break;
  2872. }
  2873. // 通用设置
  2874. // if(this.type =='done' && this.applicationDetail.tHouseApplyEnd == null && this.applicationDetail.tHouseApplyEnd.taskId ==null){
  2875. if(this.type =='done' && this.applicationDetail.ydjfys == null){
  2876. if (this.isAccepting()) {
  2877. this.active = PROPOSER_STAGE_START;
  2878. this.selectedTabName = PROPOSER_STAGE_START;
  2879. this.processKeyField = PROPOSER_STAGE_START_ACTIVITY;
  2880. this.attachmentActive = PROPOSER_STAGE_START;
  2881. }else if(this.isLandscope()){
  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
  2887. { // this.isBaseApply()
  2888. this.active = PROPOSER_STAGE_BASE_APPLY;
  2889. this.selectedTabName = PROPOSER_STAGE_BASE_APPLY;
  2890. this.attachmentActive = PROPOSER_STAGE_BASE_APPLY;
  2891. // 编辑时且为申请通过状态 -> 填写开工
  2892. if(this.proposerStatus == PROPOSER_EDIT && homeApplyStatus == '10')
  2893. {
  2894. this.active = PROPOSER_STAGE_START;
  2895. this.selectedTabName = PROPOSER_STAGE_START;
  2896. this.attachmentActive = PROPOSER_STAGE_START;
  2897. }
  2898. this.processKeyField = PROPOSER_STAGE_BASE_APPLY_ACTIVITY;
  2899. }
  2900. } else {
  2901. console.info(this.applicationDetail);
  2902. if (this.isLandscope()) {
  2903. this.active = PROPOSER_STAGE_START;
  2904. this.selectedTabName = PROPOSER_STAGE_START;
  2905. this.processKeyField = PROPOSER_STAGE_START_ACTIVITY;
  2906. this.attachmentActive = PROPOSER_STAGE_START;
  2907. } else if (this.isAccepting()) {
  2908. this.active = PROPOSER_STAGE_END;
  2909. this.selectedTabName = PROPOSER_STAGE_END;
  2910. // 编辑时且为申请通过状态 -> 查看验收草稿
  2911. if(this.proposerStatus == PROPOSER_VIEW && this.isProposeStatus(homeApplyStatus, ["3F"])){
  2912. this.selectedTabName = PROPOSER_STAGE_START;
  2913. }
  2914. this.processKeyField = PROPOSER_STAGE_END_ACTIVITY;
  2915. this.attachmentActive = PROPOSER_STAGE_END;
  2916. }
  2917. else { // this.isBaseApply()
  2918. this.active = PROPOSER_STAGE_BASE_APPLY;
  2919. this.selectedTabName = PROPOSER_STAGE_BASE_APPLY;
  2920. this.attachmentActive = PROPOSER_STAGE_BASE_APPLY;
  2921. // 编辑时且为申请通过状态 -> 填写开工
  2922. if(this.proposerStatus == PROPOSER_EDIT && homeApplyStatus == '1F')
  2923. {
  2924. this.active = PROPOSER_STAGE_START;
  2925. this.selectedTabName = PROPOSER_STAGE_START;
  2926. this.attachmentActive = PROPOSER_STAGE_START;
  2927. }
  2928. this.processKeyField = PROPOSER_STAGE_BASE_APPLY_ACTIVITY;
  2929. }
  2930. }
  2931. },
  2932. onJflxChanged(val){
  2933. let _this = this;
  2934. this.jflxColumns.map(function(item){
  2935. if(item.dictValue === val){
  2936. _this.$set(_this.applicationDetail, 'projectName', item.dictLabel);
  2937. _this.$set(_this.applicationDetail, 'jflx', item.dictValue);
  2938. }
  2939. });
  2940. },
  2941. // 获取query的意图
  2942. getFormIntent() {
  2943. console.log(this.type);
  2944. switch (this.type) {
  2945. case 'done':
  2946. case 'view':
  2947. this.proposerStatus = PROPOSER_VIEW;
  2948. break;
  2949. case 'add':
  2950. this.proposerStatus = PROPOSER_ADD;
  2951. break;
  2952. case 'modify':
  2953. case 'audit':
  2954. case 'todo':
  2955. this.proposerStatus = PROPOSER_EDIT;
  2956. break;
  2957. default:
  2958. this.proposerStatus = PROPOSER_VIEW;
  2959. break;
  2960. }
  2961. return this.proposerStatus;
  2962. },
  2963. // 获取日期, yyyy-MM-dd
  2964. getDate(d) {
  2965. return formatDate(d ? d : new Date(), 'yyyy-MM-dd');
  2966. },
  2967. // 初始化基础表单
  2968. reset() {
  2969. this.applicationDetail = {
  2970. sqhhzxm: "",
  2971. sqhhzxb: "",
  2972. sqhhznl: "" /* 年龄*/,
  2973. sqhhzlxdh: "",
  2974. sqhhzsfzh: "",
  2975. sqhhzhkszd: "",
  2976. sqhjtzz: "",
  2977. members: 0, // 家庭人口数
  2978. applyTime: this.getDate(),
  2979. sqly: "",
  2980. houseSource: "建房申请来源{农户自制,协管代办}", // 字典
  2981. homeApplyStatus: "", // 字典
  2982. auditStatus: "", // 字典
  2983. taskId: "",
  2984. taskName: "",
  2985. instanceId: "",
  2986. processKey: "",
  2987. existHomestead: "N",
  2988. xzjdmj: null, //现宅基地面积
  2989. qszsh: null,//权属证书号
  2990. xjzmj: null,//现建筑面积
  2991. xzjdczqk: null,// 现宅基地处置情况
  2992. xzjdblmj: null, //现宅基地保留面积m²
  2993. xzjdqtqk: null,// 现宅基地其他情况
  2994. nsqzjddz: null, // 拟申请宅基地地址
  2995. nsqzjdmj: null, // 拟申请宅基地面积
  2996. nsqzjdszd: null, // 东至
  2997. nsqzjdszx: null, // 西至
  2998. nsqzjdszn: null, // 南至
  2999. nsqzjdszb: null, // 北至
  3000. nsqzjddldm: "10", // 地类
  3001. zfjzmj: null, // 建筑面积
  3002. jzcs: null, // 建筑层数
  3003. jzgd: null, // 建筑高度
  3004. sjtz: "1", // 设计图纸
  3005. sfzqxlqlryj: "1", // 是否征求相邻权利人意见
  3006. jflx: "4",
  3007. nsqfjzdmj: null, //房基占地面积
  3008. sqrjtcyList: [],
  3009. fileList: []
  3010. }
  3011. },
  3012. //是否有宅基地选项改变
  3013. existHomesteadChange(name){
  3014. console.log(name);
  3015. this.applicationDetail.sfzqxlqlryj =name;
  3016. // if (name == 'Y'){
  3017. // if (!this.applicationDetail.tHouseApplyCurrentSituation){
  3018. // //现宅基地情况
  3019. // this.$set(this.applicationDetail, 'tHouseApplyCurrentSituation', {
  3020. // //宅基地面积
  3021. // landArea: null,
  3022. // //人均宅基地面积
  3023. // landPerArea: null,
  3024. // //不动产单元号
  3025. // landCertificateNo: null,
  3026. // //农民房屋幢号
  3027. // houseCertificateNo: null,
  3028. // //建筑面积
  3029. // buildingArea: null,
  3030. // //人均建筑面积
  3031. // buildingPerArea: null,
  3032. // //现宅基地处置情况 字典 land_isposal
  3033. // landIsposal: null
  3034. // });
  3035. // }
  3036. // }
  3037. // else
  3038. // this.$set(this.applicationDetail, 'tHouseApplyCurrentSituation', null);
  3039. },
  3040. //添加家庭成员
  3041. addFamily(){
  3042. this.applicationDetail.tHouseApplyProposer.members++;
  3043. this.applicationDetail.tHomeapplySqrjtcys.push({
  3044. //applyProposerId: this.applicationDetail.tHouseApplyFamilyMembers[0].applyProposerId,
  3045. memberName:null,
  3046. age:null,
  3047. familyStatusName:null,
  3048. idcard :null,
  3049. householdRegister:null,
  3050. });
  3051. this.$nextTick(() => {
  3052. this.$refs.memberTabs.scrollTo(this.applicationDetail.tHomeapplySqrjtcys.length - 1);
  3053. });
  3054. },
  3055. //删除家庭成员
  3056. deleteFamily(index){
  3057. this.applicationDetail.tHouseApplyProposer.members--;
  3058. this.applicationDetail.tHomeapplySqrjtcys.splice(index,1)
  3059. this.$nextTick(() => {
  3060. this.$refs.memberTabs.scrollTo(Math.max(index - 1, 0));
  3061. });
  3062. },
  3063. remoteTransfereeMethod(val){
  3064. selectProposerNh({hzxm:val,deptId:this.sysFarmer.deptId}).then(res => {
  3065. this.nhxxList = res.rows;
  3066. this.showNhxx = true;
  3067. });
  3068. },
  3069. //返回上一步操作
  3070. goBack(){
  3071. // this.$router.push({path: '/sunVillage_info/homeApplication/applicationList'});
  3072. // this.$router.back(-1);
  3073. this.$router.push({name: this.$router.back(-1)});
  3074. },
  3075. // 当地图绘制完成时
  3076. onMapDrawFinished(data) {
  3077. console.info(data);
  3078. this.drawInsert = data;
  3079. },
  3080. // 当申请地图被重置时
  3081. onMapDrawReseted() {
  3082. this.drawInsert = null;
  3083. if(this.applicationDetail.ydjfkg.theGeomJson)
  3084. {
  3085. let lastData = JSON.parse(this.applicationDetail.ydjfkg.theGeomJson);
  3086. if(lastData.hasOwnProperty('coordinates')) // 从后台获取的
  3087. this.drawInsert = lastData.coordinates;
  3088. }
  3089. },
  3090. // 全局提交
  3091. onSubmit(intent){
  3092. console.log(this.applicationDetail, intent);
  3093. let chars = window.location.href.split("lat=")[1] || "";
  3094. if(chars !="" && chars != null && chars !=undefined){
  3095. this.mapBcZb =[window.location.href.split("lng=")[1] || "",(window.location.href.split("lat=")[1] || "").split("&lng=")[0] || ""];
  3096. this.mapZbQd();
  3097. }
  3098. switch (intent) {
  3099. case 'add':
  3100. case 'modify':
  3101. this.saveProposerApply();
  3102. break;
  3103. case 'submit':
  3104. this.submitApplyProposer();
  3105. break;
  3106. case 'save_and_submit':
  3107. this.saveProposerApply(true);
  3108. break;
  3109. case 'agree':
  3110. this.auditProposer(true);
  3111. break;
  3112. case 'reject':
  3113. this.$dialog.confirm({
  3114. message: '是否确认驳回此条申请',
  3115. }).then(() => {
  3116. this.auditProposer(false);
  3117. });
  3118. break;
  3119. case 'start':
  3120. this.startProposerApply();
  3121. break;
  3122. case 'start_and_submit':
  3123. this.startProposerApply(true);
  3124. break;
  3125. case 'end':
  3126. this.endProposerApply(true);
  3127. break;
  3128. default:
  3129. console.error('Unknown intent! ', intent);
  3130. break;
  3131. }
  3132. },
  3133. // 初次申请草稿的附件上传
  3134. onUploadFinished(fileIdList) {
  3135. console.info(fileIdList);
  3136. this.$set(this.applicationDetail, "fileList", fileIdList);
  3137. },
  3138. // 获取申请人信息
  3139. getApplyerDetail(val){
  3140. console.info(val)
  3141. getHomeMembers({idcard:val.hzzjhm}).then(res => {
  3142. if(res.data)
  3143. {
  3144. this.applicationDetail = res.data;
  3145. this.$set(this.applicationDetail, 'jflx', "4");
  3146. this.$set(this.applicationDetail, 'projectName', "分户新建");
  3147. this.$set(this.applicationDetail, 'nsqzjddldm', "10");
  3148. this.$set(this.applicationDetail, 'sfzqxlqlryj', "1");
  3149. this.$set(this.applicationDetail, 'xzjdczqk', "1");
  3150. this.$set(this.applicationDetail, 'suyqrdm', val.suyqrdm);
  3151. this.$set(this.applicationDetail, 'deptName', val.deptName);
  3152. this.$set(this.applicationDetail, 'createBy', val.memberName);
  3153. if(!this.applicationDetail.sfyyzjd)
  3154. this.applicationDetail.sfyyzjd = 'N';
  3155. this.applicationDetail.applyTime = this.getDate();
  3156. this.getMemberCurrentSituation(val.hzzjhm);
  3157. console.info(this.applicationDetail.sqrjtcyList);
  3158. if(this.applicationDetail.sqrjtcyList.length > 0)
  3159. {
  3160. for(let i = 0; i < this.applicationDetail.sqrjtcyList.length; i++)
  3161. {
  3162. this.updateMemberInfo(i);
  3163. }
  3164. }
  3165. }
  3166. });
  3167. this.showNhxx = false;
  3168. },
  3169. // 检查字符串, 不符合返回true
  3170. checkString(value, regexp) {
  3171. let res = value === undefined || value === null || value === '' || value.toString().trim().length === 0;
  3172. if(res)
  3173. return true;
  3174. if(regexp)
  3175. res = !value.match(regexp);
  3176. return res;
  3177. },
  3178. // 保存申请(是否提交)
  3179. saveProposerApply(submit) {
  3180. this.$refs.form.validate().then(() => {
  3181. let msg = this.validateBaseApplyFormBase();
  3182. console.info(msg)
  3183. if(msg)
  3184. {
  3185. this.notify(msg, 'danger');
  3186. return;
  3187. }
  3188. // //地图判断
  3189. // if (this.drawInsert != null) {
  3190. // this.applicationDetail.theGeom = JSON.stringify(this.drawInsert);
  3191. // }
  3192. // else
  3193. // {
  3194. // if(this.applicationDetail.sfyyzjd === 'Y' && this.applicationDetail.theGeom) // 新增时 && 已有宅基地时 && 重新画过图且被清理掉
  3195. // {
  3196. // this.applicationDetail.theGeom = this.convertGeom(this.applicationDetail.theGeom);
  3197. // }
  3198. // }
  3199. console.log("进行保存", this.applicationDetail);
  3200. this.$set(this.applicationDetail, 'applyUserId', this.sysFarmer.id);
  3201. this.$set(this.applicationDetail, 'auditStatus', "0");
  3202. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3203. if(submit)
  3204. {
  3205. this.id = response.data;
  3206. this.submitApplyProposer();
  3207. }
  3208. else
  3209. {
  3210. this.notify("保存成功", 'success');
  3211. this.goBack();
  3212. }
  3213. }).catch((e) => {
  3214. this.notify("保存失败!", 'danger');
  3215. }).finally(() => {
  3216. });
  3217. }).catch(e => {
  3218. let msg = this.validateBaseApplyFormBase();
  3219. if(msg)
  3220. {
  3221. this.notify(msg, 'danger');
  3222. return;
  3223. }
  3224. });
  3225. },
  3226. // 判断状态是否符合
  3227. isProposeStatus(target, arr) {
  3228. if(!Array.isArray(arr))
  3229. arr = arr.split(',');
  3230. return arr.indexOf(target) !== -1;
  3231. },
  3232. // 判断状态是否不符合
  3233. isNotProposeStatus(target, arr) {
  3234. return !this.isProposeStatus(target, arr);
  3235. },
  3236. // 是否当前是申请流程
  3237. isBaseApply() {
  3238. return ["11","12","13","14", "15","17", "19", "1C", "1D", "1F"].indexOf(this.applicationDetail.homeApplyStatus) !== -1;
  3239. },
  3240. // 是否当前是开工流程
  3241. isLandscope() {
  3242. return ["31", "32", "34", "3C", "3F","37", "39"].indexOf(this.applicationDetail.homeApplyStatus) !== -1;
  3243. },
  3244. // 是否当前是验收流程
  3245. isAccepting() {
  3246. return ["71", "72", "74","77", "79", "7C", "7F"].indexOf(this.applicationDetail.homeApplyStatus) !== -1;
  3247. },
  3248. // 获取当前申请人的宅基地信息
  3249. getMemberCurrentSituation(item) {
  3250. let _this = this;
  3251. let farmerCode = this.applicationDetail.nhdm;
  3252. checkDuplicateBuilding({farmerCode: farmerCode}).then(resp => {
  3253. if (resp.data) {
  3254. this.notify(resp.msg, 'danger');
  3255. } else {
  3256. checkDuplicateBuildingQuery(item).then(resp => {
  3257. if(resp.data !=null && resp.data !=""){
  3258. this.applicationDetail.sfyyzjd ="Y";
  3259. // 现宅基地及农房情况对象
  3260. if(resp.data.zjdzdxxList.length > 0){
  3261. this.zjdzdxxList = resp.data.zjdzdxxList;
  3262. this.applicationDetail.xzjdmj = resp.data.zjdzdxxList[0].zdmj; //宅基地面积
  3263. this.applicationDetail.xjzmj = resp.data.zjdzdxxList[0].scjzmj;
  3264. this.applicationDetail.qszsh = resp.data.zjdzdxxList[0].zsh;
  3265. this.showZjddm = resp.data.zjdzdxxList[0].zjddm;
  3266. this.$set(this.zjdzdxxDetailed, 'zdszd', resp.data.zjdzdxxList[0].zdszd);
  3267. this.$set(this.zjdzdxxDetailed, 'zdszn', resp.data.zjdzdxxList[0].zdszn);
  3268. this.$set(this.zjdzdxxDetailed, 'zdszx', resp.data.zjdzdxxList[0].zdszx);
  3269. this.$set(this.zjdzdxxDetailed, 'zdszb', resp.data.zjdzdxxList[0].zdszb);
  3270. this.$set(this.applicationDetail, 'sfyyzjd', "Y");
  3271. resp.data.zjdzdxxList.forEach(function(item){
  3272. _this.zjddmColumns.push({text:item.zjddm,value:item.zjddm});
  3273. })
  3274. }else{
  3275. this.$set(this.applicationDetail, 'sfyyzjd', "N");
  3276. }
  3277. // this.applicationDetail.tHouseApplyCurrentSituation.landPerArea= (resp.data.zdmj/(this.applicationDetail.tHouseApplyProposer.members +1)); //人均宅基地面积
  3278. // this.applicationDetail.tHouseApplyCurrentSituation.landCertificateNo= resp.data.bdcdyh; //不动产单元号
  3279. // this.applicationDetail.tHouseApplyCurrentSituation.buildingArea= resp.data.scjzmj; //建筑面积
  3280. // this.applicationDetail.tHouseApplyCurrentSituation.buildingPerArea= (resp.data.scjzmj/(this.applicationDetail.tHouseApplyProposer.members +1)); //人均建筑面积
  3281. // this.applicationDetail.tHouseApplyCurrentSituation.houseCertificateNo= resp.data.zrzh; //自然幢号
  3282. // this.applicationDetail.tHouseApplyCurrentSituation.landIsposal= null; // 现宅基地处置情况
  3283. // this.applicationDetail.tHouseApplyCurrentSituation.reservedArea= null; // 保留m²
  3284. // this.applicationDetail.tHouseApplyCurrentSituation.otherRemark= null; // 其他
  3285. // this.renderMapRegion(resp.data.theGeom);
  3286. } else {
  3287. // this.applicationDetail.sfyyzjd ="N";
  3288. // // 现宅基地及农房情况对象
  3289. // this.applicationDetail.tHouseApplyCurrentSituation.landArea = null; //宅基地面积
  3290. // this.applicationDetail.tHouseApplyCurrentSituation.landPerArea= null; //人均宅基地面积
  3291. // this.applicationDetail.tHouseApplyCurrentSituation.landCertificateNo= null; //权属证书号
  3292. // this.applicationDetail.tHouseApplyCurrentSituation.buildingPerArea= null; //人均建筑面积
  3293. // this.applicationDetail.tHouseApplyCurrentSituation.houseCertificateNo= null; //权属证书号
  3294. // this.applicationDetail.tHouseApplyCurrentSituation.landIsposal= null; // 现宅基地处置情况
  3295. // this.applicationDetail.tHouseApplyCurrentSituation.reservedArea= null; // 保留m²
  3296. // this.applicationDetail.tHouseApplyCurrentSituation.otherRemark= null; // 其他
  3297. // this.renderMapRegion(null);
  3298. }
  3299. });
  3300. }
  3301. });
  3302. },
  3303. // 绘制现有宅基地地图
  3304. renderMapRegion(json = null) { // json = theGeom
  3305. this.applicationDetail.tHouseApplyProposedSituation.theGeom = json;
  3306. if(json)
  3307. {
  3308. let obj = JSON.parse(json);
  3309. this.drawInsert = obj.coordinates;
  3310. }
  3311. else
  3312. this.drawInsert = null;
  3313. this.pointDarw(null);
  3314. },
  3315. // 提交申请
  3316. submitApplyProposer() {
  3317. if(this.applicationDetail.auditStatus == '2' && this.selectedTabName == 0){
  3318. updateOpretion(this.id).then();
  3319. }
  3320. customSubmitWLHT(this.id).then((resp) => {
  3321. this.notify("提交成功", 'success');
  3322. this.goBack();
  3323. }).catch((e) => {
  3324. this.notify("提交失败!", 'danger');
  3325. }).finally(() => {
  3326. });
  3327. },
  3328. // 判断角色是否符合
  3329. isInRoles(myRoles, requireRoles) {
  3330. if(!Array.isArray(myRoles))
  3331. myRoles = myRoles.split(',');
  3332. if(!Array.isArray(requireRoles))
  3333. requireRoles = requireRoles.split(',');
  3334. for(let r of requireRoles)
  3335. {
  3336. if(myRoles.indexOf(r) !== -1)
  3337. return true;
  3338. }
  3339. return false;
  3340. },
  3341. // 转换地图数据用于提交后台
  3342. convertGeom(json) {
  3343. let data = JSON.parse(json);
  3344. if(data.hasOwnProperty('coordinates'))
  3345. return JSON.stringify(data.coordinates);
  3346. return null;
  3347. },
  3348. zkshClick(){
  3349. if(this.zjdzdxxDetailedShow){
  3350. this.zjdzdxxDetailedShow = false;
  3351. }else{
  3352. this.zjdzdxxDetailedShow = true;
  3353. }
  3354. },
  3355. // 审批(同意/驳回)
  3356. auditProposer(pass) {
  3357. let _this = this;
  3358. switch (this.processKeyField) {
  3359. case PROPOSER_STAGE_BASE_APPLY_ACTIVITY: {
  3360. let comment;
  3361. const role = this.$store.getters.roles[0];
  3362. let msg = "";
  3363. switch (role) {
  3364. case "agriculture":
  3365. msg = this.validateAgricultureForm(pass);
  3366. if (msg) {
  3367. break;
  3368. }
  3369. comment = this.applicationDetail.ydjfsp.nyncbmscyj;
  3370. // if(this.$refs.pictureUploadApplyingTHouseApproveAgriculture && this.$refs.pictureUploadApplyingTHouseApproveAgriculture.isValid()) {
  3371. // this.submitHouseApproveAgricultureOptions().then(item=>{
  3372. if (msg) {
  3373. return;
  3374. }
  3375. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3376. this.complete(pass, comment);
  3377. }).catch(resp => {
  3378. this.notify(msg, 'danger');
  3379. this.notify("保存失败!", 'danger');
  3380. });
  3381. // });
  3382. // } else {
  3383. // if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.agriculturePlan)) {
  3384. // msg = "农村农业部门现场拍照不能为空";
  3385. // break;
  3386. // }
  3387. // }
  3388. break;
  3389. case "building":
  3390. msg = this.validateBuildingForm(pass);
  3391. comment = this.applicationDetail.ydjfsp.zfcxjsbmscyj;
  3392. // if(this.$refs.pictureUploadApplyingTHouseApproveOther && this.$refs.pictureUploadApplyingTHouseApproveOther.isValid()) {
  3393. // this.submitHouseApproveOtherOptions().then(item=>{
  3394. // setTimeout(() => {
  3395. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3396. this.complete(pass, comment);
  3397. }).catch(resp => {
  3398. this.notify(msg, 'danger');
  3399. this.notify("保存失败!", 'danger');
  3400. });
  3401. // }, 500);
  3402. // });
  3403. // } else {
  3404. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.otherPlan)) {
  3405. // msg = "住建部门现场拍照不能为空";
  3406. // break;
  3407. // }
  3408. // }
  3409. break;
  3410. case "nature_resource":
  3411. msg = this.validateNatureForm(pass);
  3412. if (msg) {
  3413. break;
  3414. }
  3415. this.$set(this.applicationDetail, 'tHouseApproveTownOptions', null);
  3416. this.$set(this.applicationDetail, 'tHouseApproveOtherOptions', null);
  3417. this.$set(this.applicationDetail, 'tHouseApproveAgricultureOptions', null);
  3418. comment = this.applicationDetail.ydjfsp.zrzybmscyj;
  3419. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3420. this.complete(pass, comment);
  3421. }).catch(resp => {
  3422. this.notify(msg, 'danger');
  3423. this.notify("保存失败!", 'danger');
  3424. });
  3425. break;
  3426. case "town_leader":
  3427. // msg = this.validateAgricultureForm(pass);
  3428. // if (msg) {
  3429. // break;
  3430. // }
  3431. // msg = this.validateNatureForm();
  3432. // if (msg) {
  3433. // break;
  3434. // }
  3435. //
  3436. // msg = this.validateBuildingForm();
  3437. // if (msg) {
  3438. // break;
  3439. // }
  3440. msg = this.validateTownForm();
  3441. if (msg) {
  3442. break;
  3443. }
  3444. comment = this.applicationDetail.ydjfsp.zfcxjsbmscyj;
  3445. // this.submitHouseApproveAgricultureOptions().then(item=>{
  3446. // _this.submitHouseApproveNatureplanOptions().then(item2=>{
  3447. // _this.submitHouseApproveOtherOptions().then(item3=>{
  3448. // if(_this.$refs.pictureUploadApplyingTHouseApproveTown && _this.$refs.pictureUploadApplyingTHouseApproveTown.isValid()) {
  3449. // _this.submitHouseApproveTownOptions().then(item4=>{
  3450. // //地图判断
  3451. // if (_this.drawInsert != null) {
  3452. // _this.applicationDetail.tHouseApproveNatureOptions.theGeom = JSON.stringify(_this.drawInsert);
  3453. // }
  3454. // else {
  3455. // if(_this.applicationDetail.tHouseApproveNatureOptions && _this.applicationDetail.tHouseApproveNatureOptions.theGeom == null){
  3456. // _this.applicationDetail.tHouseApproveNatureOptions.theGeom = _this.convertGeom(_this.applicationDetail.tHouseApplyProposedSituation.theGeom);
  3457. // }
  3458. // }
  3459. if(!pass){
  3460. comment = "驳回";
  3461. }
  3462. if(this.applicationDetail.ydjfsp.zjdzlpmwzt != null && this.applicationDetail.ydjfsp.zjdzlpmwzt !== "") {
  3463. // _this.submitHouseApproveLocationplanOptions(pass, comment).then(item5=>{
  3464. // _this.submitHouseApproveNatureplanOptions().then(item6=>{
  3465. // setTimeout(() => {
  3466. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3467. this.complete(pass, comment);
  3468. }).catch(resp => {
  3469. this.notify(msg, 'danger');
  3470. this.notify("保存失败!", 'danger');
  3471. });
  3472. // }, 500);
  3473. // });
  3474. // });
  3475. }else{
  3476. this.notify("宅基地坐落平面位置图不能为空", 'danger');
  3477. this.$refs.form.validate().then(() => {}).catch((e)=>{})
  3478. }
  3479. // });
  3480. // } else {
  3481. // if(!pass){
  3482. // comment = "驳回";
  3483. // }
  3484. // setTimeout(() => {
  3485. // saveHouseBaseInfo(_this.applicationDetail).then((response) => {
  3486. // _this.complete(pass, comment);
  3487. // }).catch(resp => {
  3488. // _this.notify(msg, 'danger');
  3489. // _this.notify("保存失败!", 'danger');
  3490. // });
  3491. // }, 500);
  3492. // }
  3493. // }
  3494. // });
  3495. // });
  3496. // });
  3497. break;
  3498. default:
  3499. if(this.checkString(this.applicationDetail.cjxzscyj))
  3500. msg = '村领导意见不能为空';
  3501. else
  3502. comment = this.applicationDetail.cjxzscyj;
  3503. if (this.checkString(this.applicationDetail.cjxzscr)) {
  3504. msg = "村级领导签名不能为空";
  3505. } else
  3506. if(this.$refs.pictureUploadApplyingTHouseApproveVillage && this.$refs.pictureUploadApplyingTHouseApproveVillage.isValid()) {
  3507. this.submitHouseApproveVillageplanOptions(pass, comment);
  3508. return;
  3509. } else {
  3510. setTimeout(() => {
  3511. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3512. this.complete(pass, comment);
  3513. }).catch(resp => {
  3514. this.notify(msg, 'danger');
  3515. this.notify("保存失败!", 'danger');
  3516. });
  3517. }, 500);
  3518. }
  3519. //}
  3520. // if(this.selectedTabName ==0){
  3521. // if(this.currentUserRole == 'village_leader'){
  3522. // //村级审核人员签字
  3523. // //if(this.checkString(this.applicationDetail.tHouseApproveVillageOptions.villageLeader))
  3524. // this.applicationDetail.tHouseApproveVillageOptions.villageLeader = res.fileName;
  3525. // } else if(this.currentUserRole == 'task_executor'){
  3526. // //自然资源部门签字
  3527. // if(this.checkString(this.applicationDetail.tHouseApproveNatureOptions.approveLeader))
  3528. // return '自然资源部门签字不能为空';
  3529. // this.applicationDetail.tHouseApproveNatureOptions.approveLeader = res.fileName;
  3530. // } else if (this.currentUserRole == ''){
  3531. // //其他部门签字
  3532. // if(this.checkString(this.applicationDetail.tHouseApproveOtherOptions.approveLeader))
  3533. // return '其他部门签字不能为空';
  3534. // this.applicationDetail.tHouseApproveOtherOptions.approveLeader = res.fileName;
  3535. // } else if (this.currentUserRole == ''){
  3536. // //农村农业部门签字
  3537. // if(this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.approveLeader))
  3538. // return '农村农业部门签字不能为空';
  3539. // this.applicationDetail.tHouseApproveAgricultureOptions.approveLeader = res.fileName;
  3540. // } else if (this.currentUserRole == ''){
  3541. // //镇级领导签字 tHouseApproveTownOptions
  3542. // if(this.checkString(this.applicationDetail.tHouseApproveTownOptions.approveLeader))
  3543. // return '镇级领导签字不能为空';
  3544. // this.applicationDetail.tHouseApproveTownOptions.approveLeader = res.fileName;
  3545. // }
  3546. // this.showesign =false;
  3547. // } else if(this.selectedTabName ==1){
  3548. //
  3549. // } else if (this.selectedTabName ==2){
  3550. //
  3551. // }
  3552. break;
  3553. }
  3554. if (msg) {
  3555. this.notify(msg, 'danger');
  3556. this.$refs.form.validate().then(() => {}).catch((e)=>{})
  3557. return;
  3558. }
  3559. }
  3560. break;
  3561. case PROPOSER_STAGE_START_ACTIVITY:
  3562. let _this = this;
  3563. const role = this.$store.getters.roles[0];
  3564. if(role === "nature_resource"){
  3565. if (this.drawInsert != null) {
  3566. this.applicationDetail.ydjfkg.theGeomJson = JSON.stringify(this.drawInsert);
  3567. }
  3568. else {
  3569. if(this.applicationDetail.ydjfkg.theGeomJson == null){
  3570. if(this.applicationDetail.ydjfkg.theGeom == null){
  3571. this.notify("请在地图上标注宅基地位置!", 'danger');
  3572. break;
  3573. }else{
  3574. this.applicationDetail.ydjfkg.theGeomJson = this.convertGeom(this.applicationDetail.ydjfkg.theGeom);
  3575. }
  3576. }
  3577. }
  3578. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3579. this.complete(pass);
  3580. }).catch(resp => {
  3581. this.notify(msg, 'danger');
  3582. this.notify("保存失败!", 'danger');
  3583. });
  3584. }else{
  3585. this.complete(pass);
  3586. }
  3587. break;
  3588. case PROPOSER_STAGE_END_ACTIVITY : {
  3589. let comment;
  3590. let msg = "";
  3591. const role = this.$store.getters.roles[0];
  3592. switch (role) {
  3593. case "agriculture":
  3594. msg = this.validateAcceptingFormTown(undefined, role);
  3595. if (msg) {
  3596. break;
  3597. }
  3598. comment = this.applicationDetail.ydjfys.nyncbmysyj;
  3599. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3600. this.complete(pass, comment);
  3601. }).catch(err => {
  3602. this.notify('保存失败', 'danger');
  3603. });
  3604. break;
  3605. case "nature_resource":
  3606. msg = this.validateAcceptingFormTown(undefined, role);
  3607. if (msg) {
  3608. break;
  3609. }
  3610. comment = this.applicationDetail.ydjfys.zrzybmysyj;
  3611. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3612. this.complete(pass, comment);
  3613. }).catch(err => {
  3614. this.notify('保存失败', 'danger');
  3615. });
  3616. break;
  3617. case "town_leader":
  3618. msg = this.validateAcceptingFormTown();
  3619. if (msg) {
  3620. break;
  3621. }
  3622. comment = this.applicationDetail.ydjfys.xzzfysyj;
  3623. if (this.applicationDetail.ydjfys.jgpmjt != null) {
  3624. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3625. this.complete(pass, comment);
  3626. }).catch(err => {
  3627. this.notify('保存失败', 'danger');
  3628. });
  3629. }else{
  3630. msg = "竣工平面简图不能为空";
  3631. }
  3632. break;
  3633. default:
  3634. comment = '同意';
  3635. if (this.applicationDetail.ydjfys.jgpmjt != null) {
  3636. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3637. this.complete(pass, comment);
  3638. }).catch(err => {
  3639. this.notify('保存失败', 'danger');
  3640. });
  3641. }else{
  3642. msg = "竣工平面简图不能为空";
  3643. }
  3644. break;
  3645. }
  3646. if (msg) {
  3647. this.notify(msg, 'danger');
  3648. this.$refs.form.validate().then(() => {}).catch(e=>{});
  3649. return;
  3650. }
  3651. // //农村农业部
  3652. // if (this.$refs.tHouseApplyEndNongye && this.$refs.tHouseApplyEndNongye.isValid()) {
  3653. // this.submitHouseApproveEndNongyeOptions();
  3654. // return;
  3655. // }
  3656. // //自然资源部
  3657. // if (this.$refs.pictureUploadAccepting && this.$refs.pictureUploadAccepting.isValid()) {
  3658. // this.submitHouseApproveEndNatureOptions();
  3659. // return;
  3660. // }
  3661. // //乡镇领导部
  3662. // if (this.$refs.pictureUploadAccepting && this.$refs.pictureUploadAccepting.isValid()) {
  3663. // this.submitHouseApproveEndBZhenOptions();
  3664. // return;
  3665. // }
  3666. console.log(this.applicationDetail.tHouseApplyEnd);
  3667. }
  3668. break;
  3669. default:
  3670. break;
  3671. }
  3672. },
  3673. //村级领导审批现场图片
  3674. submitHouseApproveVillageplanOptions(pass, commentText) {
  3675. this.applicationDetail.tHouseApproveVillageOptions.villagePlan = null;
  3676. return this.$refs.pictureUploadApplyingTHouseApproveVillage.updatePlanFiles().then((x) => {
  3677. let list = [];
  3678. x.data.forEach((f) => {
  3679. let item = {
  3680. id: f.id,
  3681. fileName: f.fileName,
  3682. fileUrl: f.fileUrl,
  3683. fileType: f.fileType,
  3684. tableId: f.tableId,
  3685. tableName: f.tableName,
  3686. };
  3687. list.push(item);
  3688. });
  3689. this.applicationDetail.tHouseApproveVillageOptions.villagePlan = JSON.stringify(list);
  3690. if (this.checkString(this.applicationDetail.tHouseApproveVillageOptions.villagePlan)) {
  3691. return "村级现场拍照不能为空";
  3692. } else {
  3693. saveHouseBaseInfo(this.applicationDetail).then((response) => {
  3694. this.complete(pass, commentText);
  3695. }).catch(resp => {
  3696. this.notify("保存失败!", 'danger');
  3697. });
  3698. }
  3699. }).catch((x) => {
  3700. this.notify("村级上传现场照片失败!", 'danger');
  3701. });
  3702. },
  3703. //自然资源部门审批现场图片
  3704. submitHouseApproveNatureplanOptions() {
  3705. this.applicationDetail.tHouseApproveNatureOptions.naturePlan = null;
  3706. return this.$refs.pictureUploadApplyingTHouseApproveNature.updatePlanFiles().then((x) => {
  3707. let list = [];
  3708. x.data.forEach((f) => {
  3709. let item = {
  3710. id: f.id,
  3711. fileName: f.fileName,
  3712. fileUrl: f.fileUrl,
  3713. fileType: f.fileType,
  3714. tableId: f.tableId,
  3715. tableName: f.tableName,
  3716. };
  3717. list.push(item);
  3718. });
  3719. this.applicationDetail.tHouseApproveNatureOptions.naturePlan = JSON.stringify(list);
  3720. if(this.checkString(this.applicationDetail.tHouseApproveNatureOptions.naturePlan)){
  3721. return "自然资源部门现场拍照不能为空";
  3722. }
  3723. }).catch((x) => {
  3724. this.notify("自然资源部门上传现场照片失败!", 'danger');
  3725. });
  3726. },
  3727. //农村农业部门审批现场图片
  3728. submitHouseApproveAgricultureOptions() {
  3729. this.applicationDetail.tHouseApproveAgricultureOptions.agriculturePlan = null;
  3730. return this.$refs.pictureUploadApplyingTHouseApproveAgriculture.updatePlanFiles().then((x) => {
  3731. let list = [];
  3732. x.data.forEach((f) => {
  3733. let item = {
  3734. id: f.id,
  3735. fileName: f.fileName,
  3736. fileUrl: f.fileUrl,
  3737. fileType: f.fileType,
  3738. tableId: f.tableId,
  3739. tableName: f.tableName,
  3740. };
  3741. list.push(item);
  3742. });
  3743. this.applicationDetail.tHouseApproveAgricultureOptions.agriculturePlan = JSON.stringify(list);
  3744. if(this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.agriculturePlan)){
  3745. return "农村农业部现场拍照不能为空";
  3746. }
  3747. }).catch((x) => {
  3748. this.notify("农村农业部上传现场照片失败!", 'danger');
  3749. });
  3750. },
  3751. //其他部门审批现场图片
  3752. submitHouseApproveOtherOptions() {
  3753. this.applicationDetail.tHouseApproveOtherOptions.otherPlan = null;
  3754. return this.$refs.pictureUploadApplyingTHouseApproveOther.updatePlanFiles().then((x) => {
  3755. let list = [];
  3756. x.data.forEach((f) => {
  3757. let item = {
  3758. id: f.id,
  3759. fileName: f.fileName,
  3760. fileUrl: f.fileUrl,
  3761. fileType: f.fileType,
  3762. tableId: f.tableId,
  3763. tableName: f.tableName,
  3764. };
  3765. list.push(item);
  3766. });
  3767. this.applicationDetail.tHouseApproveOtherOptions.otherPlan = JSON.stringify(list);
  3768. if(this.checkString(this.applicationDetail.tHouseApproveOtherOptions.otherPlan)){
  3769. return "其他部门现场拍照不能为空";
  3770. }
  3771. }).catch((x) => {
  3772. this.notify("其他部门上传现场照片失败!", 'danger');
  3773. });
  3774. },
  3775. //镇级领导审批现场图片
  3776. submitHouseApproveTownOptions() {
  3777. this.applicationDetail.tHouseApproveTownOptions.townPlan = null;
  3778. return this.$refs.pictureUploadApplyingTHouseApproveTown.updatePlanFiles().then((x) => {
  3779. let list = [];
  3780. x.data.forEach((f) => {
  3781. let item = {
  3782. id: f.id,
  3783. fileName: f.fileName,
  3784. fileUrl: f.fileUrl,
  3785. fileType: f.fileType,
  3786. tableId: f.tableId,
  3787. tableName: f.tableName,
  3788. };
  3789. list.push(item);
  3790. });
  3791. this.applicationDetail.tHouseApproveTownOptions.townPlan = JSON.stringify(list);
  3792. if(this.checkString(this.applicationDetail.tHouseApproveTownOptions.townPlan)){
  3793. return "镇级领导现场拍照不能为空";
  3794. }
  3795. }).catch((x) => {
  3796. this.notify("镇级领导上传现场照片失败!", 'danger');
  3797. });
  3798. },
  3799. //验收农业部门审批现场图片
  3800. submitHouseApproveEndNongyeOptions() {
  3801. this.applicationDetail.tHouseApplyEnd.nongyePlan = null;
  3802. return this.$refs.tHouseApplyEndNongye.updatePlanFiles().then((x) => {
  3803. let list = [];
  3804. x.data.forEach((f) => {
  3805. let item = {
  3806. id: f.id,
  3807. fileName: f.fileName,
  3808. fileUrl: f.fileUrl,
  3809. fileType: f.fileType,
  3810. tableId: f.tableId,
  3811. tableName: f.tableName,
  3812. };
  3813. list.push(item);
  3814. });
  3815. this.applicationDetail.tHouseApplyEnd.nongyePlan = JSON.stringify(list);
  3816. if(this.checkString(this.applicationDetail.tHouseApplyEnd.nongyePlan)){
  3817. return "农业部门现场拍照不能为空";
  3818. }
  3819. }).catch((x) => {
  3820. this.notify("农业部门上传现场照片失败!", 'danger');
  3821. });
  3822. },
  3823. //验收自然资源部门审批现场图片
  3824. submitHouseApproveEndNatureOptions() {
  3825. this.applicationDetail.tHouseApplyEnd.naturePlan = null;
  3826. return this.$refs.tHouseApplyEndNature.updatePlanFiles().then((x) => {
  3827. let list = [];
  3828. x.data.forEach((f) => {
  3829. let item = {
  3830. id: f.id,
  3831. fileName: f.fileName,
  3832. fileUrl: f.fileUrl,
  3833. fileType: f.fileType,
  3834. tableId: f.tableId,
  3835. tableName: f.tableName,
  3836. };
  3837. list.push(item);
  3838. });
  3839. this.applicationDetail.tHouseApplyEnd.naturePlan = JSON.stringify(list);
  3840. // if(this.checkString(this.applicationDetail.tHouseApplyEnd.naturePlan)){
  3841. // return "自然资源部门现场拍照不能为空";
  3842. // }
  3843. }).catch((x) => {
  3844. this.notify("自然资源部门上传现场照片失败!", 'danger');
  3845. });
  3846. },
  3847. //验收住建部门审批现场图片
  3848. submitHouseApproveEndBuildingOptions() {
  3849. this.applicationDetail.tHouseApplyEnd.buildingPlan = null;
  3850. this.$refs.tHouseApplyEndBuilding.updatePlanFiles().then((x) => {
  3851. let list = [];
  3852. x.data.forEach((f) => {
  3853. let item = {
  3854. id: f.id,
  3855. fileName: f.fileName,
  3856. fileUrl: f.fileUrl,
  3857. fileType: f.fileType,
  3858. tableId: f.tableId,
  3859. tableName: f.tableName,
  3860. };
  3861. list.push(item);
  3862. });
  3863. this.applicationDetail.tHouseApplyEnd.buildingPlan = JSON.stringify(list);
  3864. if(this.checkString(this.applicationDetail.tHouseApplyEnd.buildingPlan)){
  3865. return "住建部门现场拍照不能为空";
  3866. }
  3867. }).catch((x) => {
  3868. this.notify("住建部门上传现场照片失败!", 'danger');
  3869. });
  3870. },
  3871. //验收镇政府审批现场图片
  3872. submitHouseApproveEndBZhenOptions() {
  3873. this.applicationDetail.tHouseApplyEnd.zhenPlan = null;
  3874. return this.$refs.tHouseApplyEndZhen.updatePlanFiles().then((x) => {
  3875. let list = [];
  3876. x.data.forEach((f) => {
  3877. let item = {
  3878. id: f.id,
  3879. fileName: f.fileName,
  3880. fileUrl: f.fileUrl,
  3881. fileType: f.fileType,
  3882. tableId: f.tableId,
  3883. tableName: f.tableName,
  3884. };
  3885. list.push(item);
  3886. });
  3887. this.applicationDetail.tHouseApplyEnd.zhenPlan = JSON.stringify(list);
  3888. if(this.checkString(this.applicationDetail.tHouseApplyEnd.zhenPlan)){
  3889. return "镇政府现场拍照不能为空";
  3890. }
  3891. }).catch((x) => {
  3892. this.notify("镇政府上传现场照片失败!", 'danger');
  3893. });
  3894. },
  3895. // 带平面图附件上传的镇级申请审批
  3896. submitHouseApproveLocationplanOptions(pass, commentText) {
  3897. this.applicationDetail.ydjfsp.zjdzlpmwzt = null;
  3898. return this.$refs.pictureUploadApplying.updatePlanFiles().then((x) => {
  3899. let list = [];
  3900. x.data.forEach((f) => {
  3901. let item = {
  3902. id: f.id,
  3903. fileName: f.fileName,
  3904. fileUrl: f.fileUrl,
  3905. fileType: f.fileType,
  3906. tableId: f.tableId,
  3907. tableName: f.tableName,
  3908. };
  3909. list.push(item);
  3910. });
  3911. this.applicationDetail.ydjfsp.zjdzlpmwzt = list[0].fileUrl;
  3912. }).catch((x) => {
  3913. this.notify("上传宅基地坐落平面位置图失败!", 'danger');
  3914. });
  3915. },
  3916. fileUpdate(val){
  3917. console.info(val)
  3918. const params = new FormData();
  3919. params.append("tableId", this.applicationDetail.ydjfsp.id);
  3920. params.append("tableName", "t_homeapply_ydjfsp");
  3921. params.append("bizPath", "upload");
  3922. params.append("fileType", "0");
  3923. params.append('file', val.file);
  3924. attach(params).then((resp) => {
  3925. this.$set(this.applicationDetail.ydjfsp, 'zjdzlpmwzt',resp.fileUrl);
  3926. });
  3927. },
  3928. fileUpdatePmt(val){
  3929. console.info(val)
  3930. const params = new FormData();
  3931. params.append("tableId", this.applicationDetail.ydjfys.id);
  3932. params.append("tableName", "t_homeapply_ydjfsq");
  3933. params.append("bizPath", "upload");
  3934. params.append("fileType", "0");
  3935. params.append('file', val.file);
  3936. attach(params).then((resp) => {
  3937. this.$set(this.applicationDetail.ydjfys, 'jgpmjt',resp.fileUrl);
  3938. });
  3939. },
  3940. // 带平面图附件上传的镇级验收审批
  3941. submitHouseApplyEndLocationplanOptions(pass, commentText) {
  3942. return this.$refs.pictureUploadAccepting.updatePlanFiles()
  3943. .then((x) => {
  3944. let list = [];
  3945. x.data.forEach((f) => {
  3946. let item = {
  3947. id: f.id,
  3948. fileName: f.fileName,
  3949. fileUrl: f.fileUrl,
  3950. fileType: f.fileType,
  3951. tableId: f.tableId,
  3952. tableName: f.tableName,
  3953. };
  3954. list.push(item);
  3955. });
  3956. this.applicationDetail.tHouseApplyEnd.locationPlan = JSON.stringify(list);
  3957. }).catch((x) => {
  3958. this.notify("上传宅基地坐落平面位置图失败!", 'danger');
  3959. });
  3960. },
  3961. // 审批工具函数(同意/驳回, 意见)
  3962. complete(pass, comment) {
  3963. if(!this.taskId || !this.instanceId)
  3964. {
  3965. console.error(this.taskId, this.instanceId);
  3966. return false;
  3967. }
  3968. let data = {
  3969. taskId: this.taskId,
  3970. instanceId: this.instanceId,
  3971. variables: JSON.stringify({
  3972. pass: pass ? "true" : "false",
  3973. comment: comment ? comment : (pass ? '同意' : '驳回'),
  3974. }),
  3975. };
  3976. request({
  3977. url: "/activiti/process/complete",
  3978. method: "post",
  3979. params: data,
  3980. }).then((response) => {
  3981. this.notify("操作成功", 'success');
  3982. this.$router.go(0);
  3983. this.goBack();
  3984. }).catch(e => {
  3985. this.notify("操作失败!", 'danger');
  3986. });
  3987. return true;
  3988. },
  3989. // 请求结果提示工具函数
  3990. notify(message, type) {
  3991. Notify.clear();
  3992. Notify({ type: type || 'primary', message: message });
  3993. },
  3994. // 当自然资源部门地图绘制被重置时
  3995. onNatureMapDrawReseted() {
  3996. this.drawInsert = null;
  3997. if(this.applicationDetail.tHouseApproveNatureOptions.theGeom)
  3998. {
  3999. let lastData = JSON.parse(this.applicationDetail.tHouseApproveNatureOptions.theGeom);
  4000. if(lastData.hasOwnProperty('coordinates')) // 从后台获取的
  4001. this.drawInsert = lastData.coordinates;
  4002. }
  4003. },
  4004. // 当验收地图绘制被重置时
  4005. onAcceptanceMapDrawReseted() {
  4006. this.drawInsert = null;
  4007. if(this.applicationDetail.tHouseApplyEnd.theGeom)
  4008. {
  4009. let lastData = JSON.parse(this.applicationDetail.tHouseApplyEnd.theGeom);
  4010. if(lastData.hasOwnProperty('coordinates')) // 从后台获取的
  4011. this.drawInsert = lastData.coordinates;
  4012. }
  4013. },
  4014. // 打开附件树
  4015. openAttachment() {
  4016. this.attachmentVisible = true;
  4017. if(this.attachmentActive == this.active)
  4018. this.$nextTick(() => {
  4019. this.$refs.attachmentDialog.scrollTo(this.active);
  4020. });
  4021. },
  4022. // 选择步骤页面
  4023. selectTab(index) {
  4024. if(index <= this.active)
  4025. {
  4026. this.selectedTabName = index;
  4027. }
  4028. //console.log(index, this.active,this.selectedTabName);
  4029. },
  4030. // 保存开工(是否提交)
  4031. startProposerApply(submit) {
  4032. console.info(submit);
  4033. let msg = this.validateStartFormBase();
  4034. if (msg) {
  4035. this.notify(msg, 'danger');
  4036. return;
  4037. }
  4038. this.$set(this.applicationDetail, 'applyUserId', this.sysFarmer.id);
  4039. saveHomeBaseInfo(this.applicationDetail).then((resp) => {
  4040. if(submit)
  4041. {
  4042. submitStartWLHT(this.applicationDetail.id).then(resp => {
  4043. this.notify("操作成功", 'success');
  4044. this.goBack();
  4045. }).catch((e) => {
  4046. this.notify("操作失败!", 'danger');
  4047. });
  4048. }
  4049. else
  4050. {
  4051. this.notify("保存成功", 'success');
  4052. this.goBack();
  4053. }
  4054. }).catch((e) => {
  4055. this.notify('保存失败', 'danger');
  4056. });
  4057. },
  4058. // 保存验收(是否提交)
  4059. endProposerApply(submit) {
  4060. // this.$refs.form.validate().then(() => {
  4061. let msg = this.validateAcceptingFormBase();
  4062. if (msg) {
  4063. this.notify(msg, 'danger');
  4064. return;
  4065. }
  4066. // if (this.drawInsert != null) {
  4067. // this.applicationDetail.tHouseApplyEnd.theGeom = JSON.stringify(this.drawInsert);
  4068. // }
  4069. // else {
  4070. // if(this.applicationDetail.tHouseApplyEnd.theGeom == null){
  4071. // this.applicationDetail.tHouseApplyEnd.theGeom = this.convertGeom(this.applicationDetail.tHouseApproveNatureOptions.theGeom);
  4072. // }
  4073. // }
  4074. console.info(this.applicationDetail);
  4075. saveHomeBaseInfo(this.applicationDetail).then(resp => {
  4076. if(submit)
  4077. {
  4078. submitEndWLHT(this.applicationDetail.id).then(resp => {
  4079. this.notify("操作成功", 'success');
  4080. this.goBack();
  4081. }).catch(err => {
  4082. this.notify("操作失败!", 'danger');
  4083. });
  4084. }
  4085. else
  4086. {
  4087. this.notify("保存成功", 'success');
  4088. this.goBack();
  4089. }
  4090. }).catch(err => {
  4091. this.notify('保存失败', 'danger');
  4092. });
  4093. // }).catch(e => {
  4094. // let msg = this.validateAcceptingFormBase();
  4095. // if (msg) {
  4096. // this.notify(msg, 'danger');
  4097. // return;
  4098. // }
  4099. // });
  4100. },
  4101. // 获取登录人位置坐标
  4102. getLandCoord(func) {
  4103. if (func
  4104. && this.tGeoOrganizationLng !== null && this.tGeoOrganizationLng !== ''
  4105. && this.tGeoOrganizationLat !== null && this.tGeoOrganizationLat !== '') {
  4106. this.$nextTick(() => {
  4107. func(this.tGeoOrganizationLng, this.tGeoOrganizationLat);
  4108. })
  4109. }
  4110. else {
  4111. console.info(this.deptId);
  4112. getQueryLand(this.deptId).then((response) => {
  4113. if (response.code == 200) {
  4114. let InsertCode = response.data;
  4115. this.form.orgCode = InsertCode.orgCode;
  4116. this.tGeoOrganizationLat = InsertCode.lat;
  4117. this.tGeoOrganizationLng = InsertCode.lng;
  4118. if(func)
  4119. {
  4120. func(this.tGeoOrganizationLng, this.tGeoOrganizationLat);
  4121. }
  4122. }
  4123. });
  4124. }
  4125. },
  4126. validateBaseApplyFormBase() {
  4127. if (this.checkString(this.applicationDetail.sqhhzxm)) {
  4128. return "申请户主姓名不能为空";
  4129. }
  4130. if (this.checkString(this.applicationDetail.sqhhzxb)) {
  4131. return "户主性别不能为空";
  4132. }
  4133. if (this.checkString(this.applicationDetail.sqhhznl)) {
  4134. return "户主年龄不能为空";
  4135. }
  4136. if (this.checkString(this.applicationDetail.sqhhzlxdh, /(^\d{7}(\d{4})?$)/)) {
  4137. return "请填写有效的联系电话";
  4138. }
  4139. 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]$/)) {
  4140. return "请填写有效的身份证号";
  4141. }
  4142. if (this.checkString(this.applicationDetail.sqhhzhkszd)) {
  4143. return "户口所在地不能为空";
  4144. }
  4145. // if (this.checkString(this.applicationDetail.tHouseApplyProposer.familyAddress)) {
  4146. // return "家庭住址不能为空";
  4147. // }
  4148. // if (this.checkString(this.applicationDetail.tHouseApplyProposer.members)) {
  4149. // return "家庭人口数不能为空";
  4150. // }
  4151. // if (this.checkString(this.applicationDetail.tHouseApplyProposer.existHomestead)) {
  4152. // return "是否已有宅基地不能为空";
  4153. // }
  4154. for(let i in this.applicationDetail.sqrjtcyList)
  4155. {
  4156. let v = this.applicationDetail.sqrjtcyList[i];
  4157. console.info(v);
  4158. if (this.checkString(v.xm)) {
  4159. return "成员姓名不能为空";
  4160. }
  4161. if (this.checkString(v.nl)) {
  4162. return "年龄不能为空";
  4163. }
  4164. if (this.checkString(v.yhzgx)) {
  4165. return "与户主关系不能为空";
  4166. }
  4167. 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]$/)) {
  4168. return "请填写有效的家庭成员身份证";
  4169. }
  4170. if (this.checkString(v.hkszd)) {
  4171. return "户口所在地不能为空";
  4172. }
  4173. }
  4174. if(this.applicationDetail.sfyyzjd === 'Y')
  4175. {
  4176. if (this.checkString(this.applicationDetail.xzjdmj)) {
  4177. return "宅基地面积不能为空";
  4178. }
  4179. // if (this.checkString(this.applicationDetail.tHouseApplyCurrentSituation.landPerArea)) {
  4180. // return "人均宅基地面积不能为空";
  4181. // }
  4182. if (this.checkString(this.applicationDetail.xjzmj)) {
  4183. return "建筑面积不能为空";
  4184. }
  4185. // if (this.checkString(this.applicationDetail.tHouseApplyCurrentSituation.buildingPerArea)) {
  4186. // return "人均建筑面积不能为空";
  4187. // }
  4188. // if (this.checkString(this.applicationDetail.tHouseApplyCurrentSituation.landCertificateNo)) {
  4189. // return "不动产单元号不能为空";
  4190. // }
  4191. if (this.checkString(this.applicationDetail.xzjdczqk)) {
  4192. return "处置情况不能为空";
  4193. }
  4194. if(this.applicationDetail.xzjdczqk == '1')
  4195. {
  4196. if (this.checkString(this.applicationDetail.xzjdblmj)) {
  4197. return "保留面积不能为空";
  4198. }
  4199. }
  4200. else if(this.applicationDetail.xzjdczqk == '3')
  4201. {
  4202. if (this.checkString(this.applicationDetail.xzjdzqtqk)) {
  4203. return "处置情况不能为空";
  4204. }
  4205. }
  4206. }
  4207. if (this.checkString(this.applicationDetail.nsqzjdmj)) {
  4208. return "宅基地面积不能为空";
  4209. }
  4210. if (this.checkString(this.applicationDetail.nsqfjzdmj)) {
  4211. return "房基占地面积不能为空";
  4212. }
  4213. if (this.checkString(this.applicationDetail.nsqzjddz)) {
  4214. return "地址不能为空";
  4215. }
  4216. if (this.checkString(this.applicationDetail.nsqzjdszd)) {
  4217. return "东至不能为空";
  4218. }
  4219. if (this.checkString(this.applicationDetail.nsqzjdszx)) {
  4220. return "西至不能为空";
  4221. }
  4222. if (this.checkString(this.applicationDetail.nsqzjdszn)) {
  4223. return "南至不能为空";
  4224. }
  4225. if (this.checkString(this.applicationDetail.nsqzjdszb)) {
  4226. return "北至不能为空";
  4227. }
  4228. if (this.checkString(this.applicationDetail.zfjzmj)) {
  4229. return "住房建筑面积不能为空";
  4230. }
  4231. if (this.checkString(this.applicationDetail.jzcs)) {
  4232. return "建筑层数不能为空";
  4233. }
  4234. if (this.checkString(this.applicationDetail.jzgd)) {
  4235. return "建筑高度不能为空";
  4236. }
  4237. if (this.checkString(this.applicationDetail.sfzqxlqlryj)) {
  4238. return "征求相邻权利人意见不能为空";
  4239. }
  4240. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.housingStructure)) {
  4241. // return "房屋构造不能为空";
  4242. // }
  4243. if (this.checkString(this.applicationDetail.jflx)) {
  4244. return "建房类型不能为空";
  4245. }
  4246. if (this.checkString(this.applicationDetail.nsqzjddldm)) {
  4247. return "土地类型不能为空";
  4248. }
  4249. // if(this.applicationDetail.tHouseApplyProposedSituation.geographicType == '10')
  4250. // {
  4251. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.constructionLandArea)) {
  4252. // return "建设用地面积不能为空";
  4253. // }
  4254. // }
  4255. // else if(this.applicationDetail.tHouseApplyProposedSituation.geographicType == '20')
  4256. // {
  4257. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.unusedLandArea)) {
  4258. // return "未利用地不能为空";
  4259. // }
  4260. // }
  4261. // else
  4262. // {
  4263. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.agriculturalLandArea)) {
  4264. // return "农用地不能为空";
  4265. // }
  4266. // }
  4267. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.designPaper)) {
  4268. // return "设计图纸不能为空";
  4269. // }
  4270. // if(this.applicationDetail.tHouseApplyProposedSituation.designPaper == '2')
  4271. // {
  4272. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.houseTypeId)) {
  4273. // return "房屋户型不能为空";
  4274. // }
  4275. // }
  4276. if (this.checkString(this.applicationDetail.sqly)) {
  4277. return "申请理由不能为空";
  4278. }
  4279. return false;
  4280. },
  4281. onConfirmZjdxx(val){
  4282. let _this = this;
  4283. this.zjdzdxxList.map(function(item){
  4284. if(item.zjddm === val){
  4285. _this.applicationDetail.xzjdmj = item.zdmj; //宅基地面积
  4286. _this.applicationDetail.xjzmj = item.scjzmj;
  4287. _this.applicationDetail.qszsh = item.zsh;
  4288. _this.$set(_this.zjdzdxxDetailed, 'zdszd', item.zdszd);
  4289. _this.$set(_this.zjdzdxxDetailed, 'zdszn', item.zdszn);
  4290. _this.$set(_this.zjdzdxxDetailed, 'zdszx', item.zdszx);
  4291. _this.$set(_this.zjdzdxxDetailed, 'zdszb', item.zdszb);
  4292. }
  4293. });
  4294. this.showZjdzk = false;
  4295. },
  4296. validateNatureForm() {
  4297. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.landArea)) {
  4298. // return "用地面积不能为空";
  4299. // }
  4300. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.rightsType)) {
  4301. // return "土地权属不能为空";
  4302. // }
  4303. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.east)) {
  4304. // return "北至不能为空";
  4305. // }
  4306. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.west)) {
  4307. // return "西至不能为空";
  4308. // }
  4309. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.south)) {
  4310. // return "南至不能为空";
  4311. // }
  4312. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.north)) {
  4313. // return "北至不能为空";
  4314. // }
  4315. if (this.checkString(this.applicationDetail.ydjfsp.zrzybmscyj)) {
  4316. return "说明不能为空";
  4317. }
  4318. else if (this.checkString(this.applicationDetail.ydjfsp.zrzybmscrxm)) {
  4319. return "自然资源签名不能为空";
  4320. }
  4321. return false;
  4322. },
  4323. validateAgricultureForm(pass) {
  4324. // if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.isMembership)) {
  4325. // return "成员资格审查不能为空";
  4326. // }
  4327. //
  4328. // if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.isOnehouse)) {
  4329. // return "一户一宅情况不能为空";
  4330. // }
  4331. //
  4332. // if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.isReviewmaterials)) {
  4333. // return "村委会审查材料不能为空";
  4334. // }
  4335. if (this.checkString(this.applicationDetail.ydjfsp.nyncbmscyj)) {
  4336. return "说明不能为空";
  4337. }
  4338. if (this.checkString(this.applicationDetail.ydjfsp.nyncbmscrxm)) {
  4339. return "农村农业部门签名不能为空";
  4340. }
  4341. // if (this.checkString(this.applicationDetail.ydjfsp.theGeomPoint)) {
  4342. // return "农村农业部门现场定位不能为空";
  4343. // }
  4344. // 通过时检查打勾, 农业部门
  4345. if(pass)
  4346. {
  4347. // if(this.applicationDetail.tHouseApproveAgricultureOptions.isMembership != '1')
  4348. // {
  4349. // return "同意申请时需通过成员资格审查";
  4350. // }
  4351. // if(this.applicationDetail.tHouseApproveAgricultureOptions.isOnehouse != '1')
  4352. // {
  4353. // return "同意申请时需符合一户一宅情况";
  4354. // }
  4355. // if(this.applicationDetail.tHouseApproveAgricultureOptions.isReviewmaterials != '1')
  4356. // {
  4357. // return "同意申请时需齐全村委会审查材料";
  4358. // }
  4359. }
  4360. return false;
  4361. },
  4362. validateBuildingForm() {
  4363. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingType)) {
  4364. // return "建筑类型不能为空";
  4365. // }
  4366. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingArea)) {
  4367. // return "建筑面积不能为空";
  4368. // }
  4369. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingFloors)) {
  4370. // return "建筑层数不能为空";
  4371. // }
  4372. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingHight)) {
  4373. // return "建筑高度不能为空";
  4374. // }
  4375. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingLandArea)) {
  4376. // return "建筑占地面积不能为空";
  4377. // }
  4378. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions)) {
  4379. // return "图纸类型不能为空";
  4380. // }
  4381. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.east)) {
  4382. // return "东至不能为空";
  4383. // }
  4384. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.west)) {
  4385. // return "西至不能为空";
  4386. // }
  4387. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.south)) {
  4388. // return "南至不能为空";
  4389. // }
  4390. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.north)) {
  4391. // return "北至不能为空";
  4392. // }
  4393. if (this.checkString(this.applicationDetail.ydjfsp.zfcxjsbmscyj)) {
  4394. return "说明不能为空";
  4395. }
  4396. if (this.checkString(this.applicationDetail.ydjfsp.zfcxjsbmscrxm)) {
  4397. return "住建部门签名不能为空";
  4398. }
  4399. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.theGeomPoint)) {
  4400. // return "住建部门现场定位不能为空";
  4401. // }
  4402. return false;
  4403. },
  4404. validateTownForm() {
  4405. if (this.checkString(this.applicationDetail.ydjfsp.zfcxjsbmscyj)) {
  4406. return "镇政府审批意见不能为空";
  4407. }
  4408. if (this.checkString(this.applicationDetail.ydjfsp.xzzfshpzrxm)) {
  4409. return "镇政府审批签字不能为空";
  4410. }
  4411. // if (this.checkString(this.applicationDetail.tHouseApproveTownOptions.theGeomPoint)) {
  4412. // return "镇政府审批现场定位不能为空";
  4413. // }
  4414. return false;
  4415. },
  4416. validateAcceptingFormBase() {
  4417. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.houseCertificateNo)) {
  4418. // return "权属证书号(不动产)不能为空";
  4419. // }
  4420. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.landCertificateNo)) {
  4421. // return "权属证书号(宅基地)不能为空";
  4422. // }
  4423. if (this.checkString(this.applicationDetail.ydjfys.pjcg)) {
  4424. return "批建高度不能为空";
  4425. }
  4426. if (this.checkString(this.applicationDetail.ydjfys.pjcs)) {
  4427. return "批建层数不能为空";
  4428. }
  4429. if (this.checkString(this.applicationDetail.ydjfys.jggd)) {
  4430. return "竣工高度不能为空";
  4431. }
  4432. if (this.checkString(this.applicationDetail.ydjfys.jgcs)) {
  4433. return "竣工层数不能为空";
  4434. }
  4435. if (this.checkString(this.applicationDetail.ydjfys.pzzjdmj)) {
  4436. return "批准宅基地面积不能为空";
  4437. }
  4438. if (this.checkString(this.applicationDetail.ydjfys.syzjdmj)) {
  4439. return "实用宅基地面积不能为空";
  4440. }
  4441. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.buildingOtherArea)) {
  4442. // return "配套附属设施建筑面积不能为空";
  4443. // }
  4444. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.designPaper)) {
  4445. // return "建筑风貌不能为空";
  4446. // }
  4447. if (this.checkString(this.applicationDetail.ydjfys.cjhtzjdqk)) {
  4448. return "旧宅基地退还情况不能为空";
  4449. }
  4450. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.houseCost)) {
  4451. // return "住房造价不能为空";
  4452. // }
  4453. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.facadeColor)) {
  4454. // return "外立面颜色不能为空";
  4455. // }
  4456. if (this.checkString(this.applicationDetail.ydjfys.pzfjzdmj)) {
  4457. return "批准房基占地面积不能为空";
  4458. }
  4459. if (this.checkString(this.applicationDetail.ydjfys.sjfjzdmj)) {
  4460. return "实际房基占地面积不能为空";
  4461. }
  4462. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isEnjoySubsidy)) {
  4463. // return "是否享受住房建设补助政策不能为空";
  4464. // }
  4465. // if (this.applicationDetail.tHouseApplyEnd.isEnjoySubsidy === 'Y' && this.checkString(this.applicationDetail.tHouseApplyEnd.enjoySubsidyContent)) {
  4466. // return "享受住房建设补助政策不能为空";
  4467. // }
  4468. return false;
  4469. },
  4470. validateAcceptingFormTown(pass, role) {
  4471. //
  4472. // if(0)
  4473. // {
  4474. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isProjectFinished)) {
  4475. // return "是否已完成工程设计和合同约定的各项内容不能为空";
  4476. // }
  4477. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isQualifiedQuality)) {
  4478. // return "承揽人对完工住房质量自查是否合格不能为空";
  4479. // }
  4480. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.hasBuildingRecord)) {
  4481. // return "是否有施工记录资料不能为空";
  4482. // }
  4483. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isSignWarranty)) {
  4484. // return "建房村民和承揽人是否已经共同签署农村住房质量保修书不能为空";
  4485. // }
  4486. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isHandleProblem)) {
  4487. // return "住房城乡建设行政主管部门或乡(镇)人民政府责令整改的问题是否全部整改完毕不能为空";
  4488. // }
  4489. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isDesignPaperSame)) {
  4490. // return "建筑风貌是否与设计图基本一致不能为空";
  4491. // }
  4492. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isOtherAcceptanceFinished)) {
  4493. // return "法律、法规规定的其他验收条件完成情况不能为空";
  4494. // }
  4495. // }
  4496. if(!role || role === 'agriculture')
  4497. {
  4498. if (this.checkString(this.applicationDetail.ydjfys.nyncbmysyj)) {
  4499. return "乡镇农业农村部门意见不能为空";
  4500. }
  4501. if (this.checkString(this.applicationDetail.ydjfys.nyncbmysjbrxm)) {
  4502. return "乡镇农业农村部门经办人不能为空";
  4503. }
  4504. if (this.checkString(this.applicationDetail.ydjfys.nyncbmyssj)) {
  4505. return "乡镇农业农村部门经办时间不能为空";
  4506. }
  4507. }
  4508. if(!role || role === 'nature_resource')
  4509. {
  4510. if (this.checkString(this.applicationDetail.ydjfys.zrzybmysyj)) {
  4511. return "乡镇自然资源部门意见不能为空";
  4512. }
  4513. if (this.checkString(this.applicationDetail.ydjfys.zrzybmysjbrxm)) {
  4514. return "乡镇自然资源部门经办人不能为空";
  4515. }
  4516. if (this.checkString(this.applicationDetail.ydjfys.zrzybmyssj)) {
  4517. return "乡镇自然资源部门经办时间不能为空";
  4518. }
  4519. }
  4520. if(0)
  4521. {
  4522. if (this.checkString(this.applicationDetail.ydjfys.zfcxjsbmysyj)) {
  4523. return "乡镇住建部门意见不能为空";
  4524. }
  4525. if (this.checkString(this.applicationDetail.ydjfys.zfcxjsbmysjbrxm)) {
  4526. return "乡镇住建部门验收负责人不能为空";
  4527. }
  4528. if (this.checkString(this.applicationDetail.ydjfys.zfcxjsbmyssj)) {
  4529. return "乡镇住建部门验收时间不能为空";
  4530. }
  4531. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.buildingGeom)) {
  4532. // return "住建部门现场定位不能为空";
  4533. // }
  4534. // if(this.$refs.tHouseApplyEndBuilding && this.$refs.tHouseApplyEndBuilding.isValid()) {
  4535. // this.submitHouseApproveEndBuildingOptions();
  4536. // } else {
  4537. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.buildingPlan)) {
  4538. // return "住建部门现场拍照不能为空";
  4539. // }
  4540. // }
  4541. }
  4542. if(!role)
  4543. {
  4544. if (this.checkString(this.applicationDetail.ydjfys.jgpmjtjbr)) {
  4545. return "竣工平面简图经办人不能为空";
  4546. }
  4547. if (this.checkString(this.applicationDetail.ydjfys.xzzfysyj)) {
  4548. return "乡镇政府验收意见不能为空";
  4549. }
  4550. if (this.checkString(this.applicationDetail.ydjfys.xzzfysjbrxm)) {
  4551. return "乡镇政府验收负责人不能为空";
  4552. }
  4553. if (this.checkString(this.applicationDetail.ydjfys.xzzfyssj)) {
  4554. return "乡镇政府验收时间不能为空";
  4555. }
  4556. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.zhenGeom)) {
  4557. // return "乡镇政府现场定位不能为空";
  4558. // }
  4559. }
  4560. // 通过时检查打勾, 农业部门
  4561. if(pass)
  4562. {
  4563. // if(this.applicationDetail.tHouseApplyEnd.isProjectFinished != 'Y')
  4564. // {
  4565. // return "同意验收时需已完成工程设计和合同约定的各项内容";
  4566. // }
  4567. // if(this.applicationDetail.tHouseApplyEnd.isQualifiedQuality != 'Y')
  4568. // {
  4569. // return "同意验收时需承揽人对完工住房质量自查合格";
  4570. // }
  4571. // if(this.applicationDetail.tHouseApplyEnd.hasBuildingRecord != 'Y')
  4572. // {
  4573. // return "同意验收时需有施工记录资料";
  4574. // }
  4575. // if(this.applicationDetail.tHouseApplyEnd.isSignWarranty != 'Y')
  4576. // {
  4577. // return "同意验收时需建房村民和承揽人已经共同签署农村住房质量保修书";
  4578. // }
  4579. // if(this.applicationDetail.tHouseApplyEnd.isHandleProblem != 'Y')
  4580. // {
  4581. // return "同意验收时需住房城乡建设行政主管部门或乡(镇)人民政府责令整改的问题全部整改完毕";
  4582. // }
  4583. // if(this.applicationDetail.tHouseApplyEnd.isDesignPaperSame != 'Y')
  4584. // {
  4585. // return "同意验收时需建筑风貌是否与设计图基本一致";
  4586. // }
  4587. // if(this.applicationDetail.tHouseApplyEnd.isOtherAcceptanceFinished != 'Y')
  4588. // {
  4589. // return "同意验收时需法律、法规规定的其他验收条件完成情况";
  4590. // }
  4591. }
  4592. return false;
  4593. },
  4594. onConfirmTytz(val){
  4595. this.$set(this.applicationDetail, 'tyhxt', val.id);
  4596. this.tytzName = val.name;
  4597. this.showTyt = false;
  4598. },
  4599. validateStartFormBase() {
  4600. if (this.checkString(this.applicationDetail.ydjfkg.kgrq)) {
  4601. return "计划开工时间不能为空";
  4602. }
  4603. if (this.checkString(this.applicationDetail.ydjfkg.jgrq)) {
  4604. return "计划竣工时间不能为空";
  4605. }
  4606. return false;
  4607. },
  4608. parseIDCard(idcard) {
  4609. if(!idcard)
  4610. return false;
  4611. if(idcard.length !== 18)
  4612. return false;
  4613. 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))
  4614. return false;
  4615. let sex = (parseInt(idcard.substr(16, 1)) % 2) ^ 1;
  4616. let now = new Date().getFullYear();
  4617. let y = parseInt(idcard.substr(6, 4));
  4618. let age = Math.max(now - y, 0);
  4619. return [sex, age];
  4620. },
  4621. updateUserInfo() {
  4622. let res = this.parseIDCard(this.applicationDetail.tHouseApplyProposer.idcard);
  4623. if(res)
  4624. {
  4625. this.applicationDetail.tHouseApplyProposer.sex = res[0];
  4626. this.applicationDetail.tHouseApplyProposer.age = res[1];
  4627. }
  4628. },
  4629. updateMemberInfo(index) {
  4630. let res = this.parseIDCard(this.applicationDetail.sqrjtcyList[index].sfzh);
  4631. if(res)
  4632. {
  4633. this.$set(this.applicationDetail.sqrjtcyList[index], 'nl', res[1]);
  4634. }
  4635. },
  4636. searchCommit(data){
  4637. this.showesign = true;
  4638. this.onCliceQz = data;
  4639. console.info(this.$store.getters.baseRoutingUrl);
  4640. console.log(this.currentUserRole);
  4641. console.log(this.$store.getters.baseRoutingUrl);
  4642. console.info(this.applicationDetail.ydjfys.zrzybmysjbrxm);
  4643. if(this.selectedTabName ==0){
  4644. if(this.currentUserRole == 'village_leader' && this.onCliceQz =='cjxzscr' && this.applicationDetail.cjxzscr !='' && this.applicationDetail.cjxzscr !=null){
  4645. //村级审核人员签字
  4646. //if(this.checkString(this.applicationDetail.tHouseApproveVillageOptions.villageLeader))
  4647. this.resultImg = this.$store.getters.baseRoutingUrl+this.applicationDetail.cjxzscr;
  4648. } else if((this.currentUserRole == 'nature_resource') && this.onCliceQz =='ydjfsp.zrzybmscrxm' && this.applicationDetail.ydjfsp.zrzybmscrxm !='' && this.applicationDetail.ydjfsp.zrzybmscrxm !=null){
  4649. //自然资源部门签字
  4650. this.resultImg = this.$store.getters.baseRoutingUrl+this.applicationDetail.ydjfsp.zrzybmscrxm;
  4651. } else if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'building') && this.onCliceQz =='ydjfsp.zfcxjsbmscrxm' && this.applicationDetail.ydjfsp.zfcxjsbmscrxm !='' && this.applicationDetail.ydjfsp.zfcxjsbmscrxm !=null){
  4652. //住建部门签字
  4653. this.resultImg = this.$store.getters.baseRoutingUrl+this.applicationDetail.ydjfsp.zfcxjsbmscrxm;
  4654. } else if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'agriculture') && this.onCliceQz =='ydjfsp.nyncbmscrxm' && this.applicationDetail.ydjfsp.nyncbmscrxm !='' && this.applicationDetail.ydjfsp.nyncbmscrxm !=null){
  4655. //农村农业部门签字
  4656. this.resultImg = this.$store.getters.baseRoutingUrl+this.applicationDetail.ydjfsp.nyncbmscrxm;
  4657. } else if (this.currentUserRole == 'town_leader' && this.onCliceQz =='ydjfsp.xzzfshpzrxm' && this.applicationDetail.ydjfsp.xzzfshpzrxm !='' && this.applicationDetail.ydjfsp.xzzfshpzrxm !=null){
  4658. //镇级领导签字 tHouseApproveTownOptions
  4659. this.resultImg = this.$store.getters.baseRoutingUrl+this.applicationDetail.ydjfsp.xzzfshpzrxm;
  4660. } else {
  4661. this.resultImg = null
  4662. if(this.$refs.esign){
  4663. this.$refs.esign.reset();
  4664. }
  4665. }
  4666. } else if(this.selectedTabName ==1){
  4667. } else if (this.selectedTabName ==2) {
  4668. if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'agriculture') && this.onCliceQz =='ydjfys.nyncbmysjbrxm' && this.applicationDetail.ydjfys.nyncbmysjbrxm !='' && this.applicationDetail.ydjfys.nyncbmysjbrxm !=null){
  4669. //农村农业部门签字
  4670. this.resultImg = this.$store.getters.baseRoutingUrl+this.applicationDetail.ydjfys.nyncbmysjbrxm;
  4671. } else if ((this.currentUserRole == 'nature_resource' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.zrzybmysjbrxm' && this.applicationDetail.ydjfys.zrzybmysjbrxm != '' && this.applicationDetail.ydjfys.zrzybmysjbrxm != null) {
  4672. //自然资源部门签字
  4673. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfys.zrzybmysjbrxm;
  4674. } else if ((this.currentUserRole == 'building' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.zfcxjsbmysjbrxm' && this.applicationDetail.ydjfys.zfcxjsbmysjbrxm != '' && this.applicationDetail.ydjfys.zfcxjsbmysjbrxm != null) {
  4675. //镇级领导部门签字
  4676. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfys.zfcxjsbmysjbrxm;
  4677. } else if ((this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.xzzfysjbrxm' && this.applicationDetail.ydjfys.xzzfysjbrxm != '' && this.applicationDetail.ydjfys.xzzfysjbrxm != null) {
  4678. //镇级领导部门签字
  4679. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfys.xzzfysjbrxm;
  4680. } else {
  4681. this.resultImg = null
  4682. if (this.$refs.esign) {
  4683. this.$refs.esign.reset();
  4684. }
  4685. }
  4686. }
  4687. },
  4688. // 清空画板
  4689. handleReset() {
  4690. this.resultImg = null
  4691. if(this.$refs.esign){
  4692. this.$refs.esign.reset();
  4693. }
  4694. },
  4695. // 生成签字图
  4696. handleGenerate() {
  4697. this.$refs.esign
  4698. .generate() // 使用生成器调用把签字的图片转换成为base64图片格式
  4699. .then((res) => {
  4700. this.resultImg = res;
  4701. })
  4702. .catch((err) => {
  4703. // 画布没有签字时会执行这里提示一下
  4704. this.$message({
  4705. type: "warning",
  4706. message: "请签名后再生成签字图片",
  4707. });
  4708. });
  4709. // 在这里向后端发请求把转换后的base64文件传给后端,后端接收以后再转换成图片做静态图片存储
  4710. // 当然也可以把base64转成流文件blob格式的,类似上传给后端这样,具体哪种方式看后端要求
  4711. setTimeout(() => {
  4712. // 这里要使用定时器稍微延后以后就能取到base64数据了,当然也可以再加一个确认按钮,如:确认使用这张base64签名图片
  4713. // 点击确认以后,在其回调函数中,再把base64的签名图片传给后端用于存储
  4714. const blobBin = atob(this.resultImg.split(',')[1])
  4715. let d = []
  4716. for (let i=0;i<blobBin.length;i++){
  4717. d.push(blobBin.charCodeAt(i))
  4718. }
  4719. const data2 = new FormData();
  4720. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  4721. uploadFile(data2).then(res => {
  4722. console.log(res);
  4723. console.log(this.selectedTabName);
  4724. console.log(this.currentUserRole);
  4725. if(this.selectedTabName ==0){
  4726. if(this.currentUserRole == 'village_leader' && this.onCliceQz =='cjxzscr'){
  4727. //村级审核人员签字
  4728. //if(this.checkString(this.applicationDetail.tHouseApproveVillageOptions.villageLeader))
  4729. this.applicationDetail.cjxzscr = res.fileName;
  4730. } else if((this.currentUserRole == 'nature_resource' || this.currentUserRole == 'town_leader') && this.onCliceQz =='ydjfsp.zrzybmscrxm'){
  4731. //自然资源部门签字
  4732. this.applicationDetail.ydjfsp.zrzybmscrxm = res.fileName;
  4733. } else if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'building') && this.onCliceQz =='ydjfsp.zfcxjsbmscrxm'){
  4734. //其他部门签字
  4735. this.applicationDetail.ydjfsp.zfcxjsbmscrxm = res.fileName;
  4736. } else if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'agriculture') && this.onCliceQz =='ydjfsp.nyncbmscrxm'){
  4737. //农村农业部门签字
  4738. this.applicationDetail.ydjfsp.nyncbmscrxm = res.fileName;
  4739. } else if (this.currentUserRole == 'town_leader' && this.onCliceQz =='ydjfsp.xzzfshpzrxm'){
  4740. //镇级领导签字 tHouseApproveTownOptions
  4741. this.applicationDetail.ydjfsp.xzzfshpzrxm = res.fileName;
  4742. }
  4743. this.showesign =false;
  4744. } else if(this.selectedTabName ==1){
  4745. } else if (this.selectedTabName ==2){
  4746. if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'agriculture') && this.onCliceQz =='ydjfys.nyncbmysjbrxm'){
  4747. //农村农业部门签字
  4748. this.applicationDetail.ydjfys.nyncbmysjbrxm =res.fileName;
  4749. } else if ((this.currentUserRole == 'nature_resource' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.zrzybmysjbrxm') {
  4750. //自然资源部门签字
  4751. this.applicationDetail.ydjfys.zrzybmysjbrxm =res.fileName;
  4752. } else if ((this.currentUserRole == 'building' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.zfcxjsbmysjbrxm') {
  4753. //自然资源部门签字
  4754. this.applicationDetail.ydjfys.zfcxjsbmysjbrxm =res.fileName;
  4755. } else if ((this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.xzzfysjbrxm') {
  4756. //镇级领导部门签字
  4757. this.applicationDetail.ydjfys.xzzfysjbrxm =res.fileName;
  4758. }
  4759. this.showesign =false;
  4760. }
  4761. })
  4762. }, 200);
  4763. },
  4764. //定位当前位置
  4765. dingweiCommit(data){
  4766. //this.mapShow =true;
  4767. this.mapZbNow = data;
  4768. // saveHouseBaseInfo(this.applicationDetail).then((response) => {
  4769. // }).catch(resp => {
  4770. // this.notify("保存失败!", 'danger');
  4771. // });
  4772. console.log(document.cookie);
  4773. console.log(window.location.href);
  4774. let chars = window.location.href.split("lat=")[1] || "";
  4775. if(chars !="" && chars != null && chars !=undefined){
  4776. var urlZb = window.location.href.split("&lat=")[0];
  4777. window.location = `https://www.nongshen.net/static/tdtLocation/location.html?exiturl=${urlZb}`;
  4778. } else {
  4779. window.location = `https://www.nongshen.net/static/tdtLocation/location.html?exiturl=${window.location.href}`;
  4780. }
  4781. },
  4782. dingweiCommitLook(data){
  4783. this.mapShow =true;
  4784. var zb;
  4785. //定位坐标点查看
  4786. if(data == 'tHomeapplyYdjfkg'){
  4787. zb = this.applicationDetail.ydjfkg.theGeomJson;
  4788. }
  4789. setTimeout(() => {
  4790. var zbCl = zb.replace("POINT(","").replace(")","").replace(" ",",");
  4791. zbCl = JSON.stringify([zbCl]).replaceAll("\"","");
  4792. var vector_drawing;
  4793. let projection = new ol.proj.Projection({
  4794. //地图投影类型
  4795. code: "EPSG:3857",
  4796. units: "degrees",
  4797. //extent:extent
  4798. });
  4799. let aerial = new ol.layer.Tile({
  4800. source: new ol.source.XYZ({
  4801. url: "http://t0.tianditu.gov.cn/img_w/wmts?" +
  4802. "SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles" +
  4803. "&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=cc4aba6e967096098249efa069733067",
  4804. }),
  4805. isGroup: true,
  4806. name: "卫星影像图",
  4807. });
  4808. let yingxzi = new ol.layer.Tile({
  4809. source: new ol.source.XYZ({
  4810. url: "https://t0.tianditu.gov.cn/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=cc4aba6e967096098249efa069733067",
  4811. }),
  4812. isGroup: true,
  4813. name: "天地图文字标注--卫星影像图",
  4814. });
  4815. //加载地图
  4816. let map = new ol.Map({
  4817. controls: ol.control.defaults({attribution: false, zoom: false, rotate: false}).extend([]), //隐藏放大缩小按钮
  4818. layers: [aerial, yingxzi],
  4819. projection: projection,
  4820. target: 'uuidMap',
  4821. logo: 'false',
  4822. view: new ol.View({
  4823. center: ol.proj.fromLonLat(JSON.parse(zbCl)),
  4824. //zoom: false,
  4825. zoom: 17.9,
  4826. minZoom: 0, //地图缩小限制
  4827. maxZoom: 18.3, //地图放大限制
  4828. }),
  4829. });
  4830. var newcenterFeature = new ol.Feature({
  4831. geometry: new ol.geom.Point(ol.proj.fromLonLat(JSON.parse(zbCl))), //几何信息
  4832. name: "到场点",
  4833. });
  4834. var sourceMapLook = new ol.source.Vector({wrapX: false});
  4835. vector_drawing = new ol.layer.Vector({
  4836. source: sourceMapLook,
  4837. });
  4838. map.addLayer(vector_drawing);
  4839. newcenterFeature.setStyle(createLabelStyle()); //设置要素样式
  4840. sourceMapLook.addFeature(newcenterFeature);
  4841. //矢量标注样式设置函数,设置image为图标ol.style.Icon
  4842. function createLabelStyle() {
  4843. return new ol.style.Style({
  4844. image: new ol.style.Icon({
  4845. //设置图标偏移
  4846. anchor: [0.5, 1],
  4847. //标注样式的起点位置
  4848. anchorOrigin: "top-right",
  4849. //X方向单位:分数
  4850. anchorXUnits: "fraction",
  4851. //Y方向单位:像素
  4852. anchorYUnits: "pixels",
  4853. //偏移起点位置的方向
  4854. offsetOrigin: "top-right",
  4855. //透明度
  4856. opacity: 0.9,
  4857. //图片路径
  4858. src: require("../../../../assets/images/housesteadSurvey/mark.png"),
  4859. }),
  4860. zIndex: 9999,
  4861. });
  4862. }
  4863. },1000);
  4864. },
  4865. mapZbQx(){
  4866. },
  4867. mapZbQd(){
  4868. // //申请审批定位
  4869. // if(this.mapZbNow == 'tHouseApproveVillage' && this.formEnabled.baseApplyForm.villageFormEnabled){
  4870. // this.applicationDetail.tHouseApproveVillageOptions.theGeom = JSON.stringify(this.mapBcZb);
  4871. // }
  4872. // if (this.mapZbNow == 'tHouseApproveNature' && this.formEnabled.baseApplyForm.nature_resourceFormEnabled){
  4873. // this.applicationDetail.tHouseApproveNatureOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4874. // }
  4875. // if(this.mapZbNow == 'tHouseApproveAgriculture' && this.formEnabled.baseApplyForm.agricultureFormEnabled){
  4876. // this.applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4877. // }
  4878. // if(this.mapZbNow == 'tHouseApproveOther' && this.formEnabled.baseApplyForm.buildingFormEnabled){
  4879. // this.applicationDetail.tHouseApproveOtherOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4880. // }
  4881. // if(this.mapZbNow == 'tHouseApproveTown' && this.formEnabled.baseApplyForm.townFormEnabled){
  4882. // this.applicationDetail.tHouseApproveTownOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4883. // }
  4884. // //验收申请定位
  4885. // if(this.mapZbNow == 'tHouseApplyEndNongye' && this.formEnabled.acceptingForm.agricultureFormEnabled){
  4886. // this.applicationDetail.tHouseApplyEnd.nongyeGeom = JSON.stringify(this.mapBcZb);
  4887. // }
  4888. // if(this.mapZbNow == 'tHouseApplyEndNature' && this.formEnabled.acceptingForm.nature_resourceFormEnabled){
  4889. // this.applicationDetail.tHouseApplyEnd.natureGeom = JSON.stringify(this.mapBcZb);
  4890. // }
  4891. // if(this.mapZbNow == 'tHouseApplyEndZhen' && this.formEnabled.acceptingForm.townFormEnabled){
  4892. // this.applicationDetail.tHouseApplyEnd.zhenGeom = JSON.stringify(this.mapBcZb);
  4893. // }
  4894. //申请审批定位
  4895. if(this.formEnabled.baseApplyForm.villageFormEnabled){
  4896. this.applicationDetail.tHouseApproveVillageOptions.theGeom = JSON.stringify(this.mapBcZb);
  4897. }
  4898. if (this.formEnabled.baseApplyForm.nature_resourceFormEnabled){
  4899. this.applicationDetail.tHouseApproveNatureOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4900. }
  4901. if(this.formEnabled.baseApplyForm.agricultureFormEnabled){
  4902. this.applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4903. }
  4904. if(this.formEnabled.baseApplyForm.buildingFormEnabled){
  4905. this.applicationDetail.tHouseApproveOtherOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4906. }
  4907. if(this.formEnabled.baseApplyForm.townFormEnabled){
  4908. this.applicationDetail.tHouseApproveTownOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  4909. }
  4910. //验收申请定位
  4911. if(this.formEnabled.acceptingForm.agricultureFormEnabled){
  4912. this.applicationDetail.tHouseApplyEnd.nongyeGeom = JSON.stringify(this.mapBcZb);
  4913. }
  4914. if(this.formEnabled.acceptingForm.nature_resourceFormEnabled){
  4915. this.applicationDetail.tHouseApplyEnd.natureGeom = JSON.stringify(this.mapBcZb);
  4916. }
  4917. if(this.formEnabled.acceptingForm.townFormEnabled){
  4918. this.applicationDetail.tHouseApplyEnd.zhenGeom = JSON.stringify(this.mapBcZb);
  4919. }
  4920. },
  4921. },
  4922. watch: {
  4923. selectedTabName: function (newVal, oldVal) {
  4924. this.$nextTick(() => {
  4925. if(newVal == PROPOSER_STAGE_BASE_APPLY)
  4926. {
  4927. this.pointDarw(null);
  4928. // this.pointDarwNature(null);
  4929. this.$refs.pointDarwMap && this.$refs.pointDarwMap.update();
  4930. this.$refs.pointDarwNatureMap && this.$refs.pointDarwNatureMap.update();
  4931. }
  4932. else if(newVal == PROPOSER_STAGE_START) {
  4933. // this.paintStartNatureMap(null);
  4934. this.$refs.startNatureMap && this.$refs.startNatureMap.update();
  4935. }
  4936. else if(newVal == PROPOSER_STAGE_END) {
  4937. // this.pointWrapAcceptance(null);
  4938. this.$refs.pointDarwAcceptanceMap && this.$refs.pointDarwAcceptanceMap.update();
  4939. }
  4940. })
  4941. },
  4942. }
  4943. }
  4944. </script>
  4945. <style scoped lang="scss">
  4946. .app-container {
  4947. padding-bottom: 5%;
  4948. .header_main{
  4949. height: 116px;
  4950. background: url('../../../../assets/images/sunVillage_info/list_head.png') no-repeat;
  4951. background-size: 100% 100%;
  4952. position: fixed;
  4953. top: 0;
  4954. left: 0;
  4955. width: 100%;
  4956. font-size: 36px;
  4957. line-height: 116px;
  4958. text-align: center;
  4959. color: #fff;
  4960. position: relative;
  4961. .return_btn{
  4962. width: 24px;
  4963. height: 43.2px;
  4964. background: url('../../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  4965. background-size: 20px 36px;
  4966. position: absolute;
  4967. left: 38px;
  4968. top: 36px;
  4969. }
  4970. .add_btn{
  4971. width: 20PX;
  4972. height: 20PX;
  4973. background: url('../../../../../static/images/icon/icon_flow.png') center center no-repeat;
  4974. background-size: 20PX 20PX;
  4975. position: absolute;
  4976. right: 38px;
  4977. top: 36px;
  4978. }
  4979. }
  4980. }
  4981. .examine_box{
  4982. background-color: #1D6FE9!important;
  4983. padding: 0.18rem!important;
  4984. padding-left: 0!important;
  4985. border-radius: 0.15rem!important;
  4986. margin-top: 0.3rem!important;
  4987. }
  4988. .examine_box .van-col:first-child{
  4989. color: #FFF!important;
  4990. font-size: 0.45rem!important;
  4991. text-align: center!important;
  4992. }
  4993. .examine_box .van-col:last-child{
  4994. background-color: #FFF!important;
  4995. border-radius: 0.15rem!important;
  4996. overflow: hidden!important;
  4997. .van-radio-group--horizontal{
  4998. padding: 0.2rem 0;
  4999. border-bottom: 1px solid #eee;
  5000. }
  5001. }
  5002. #mapWrap{
  5003. width: 96%;
  5004. margin: 0 auto;
  5005. border-bottom-left-radius: 12px;
  5006. border-bottom-right-radius: 12px;
  5007. overflow: hidden;
  5008. }
  5009. .mapBox{
  5010. position: relative;
  5011. .mapBox_button{
  5012. position: absolute;
  5013. top: 0.2rem;
  5014. right: 2%;
  5015. }
  5016. }
  5017. .van-steps{
  5018. padding: 2% 6% 0;
  5019. }
  5020. .topTit{
  5021. margin-top: 0.4rem;
  5022. font-size: 0.45rem;
  5023. background-color: #1D6FE9;
  5024. color: #FFFFFF;
  5025. line-height: 58px;
  5026. text-align: center;
  5027. padding: 15px 0;
  5028. box-shadow: 0px 3px 6px 0px rgba(15,67,145,0.40);
  5029. }
  5030. .main_title{
  5031. font-size: 0.4rem;
  5032. color: #1D6FE9;
  5033. margin: 0.2rem 6%;
  5034. position: relative;
  5035. }
  5036. .main_box{
  5037. width: 96%;
  5038. margin: 0 auto;
  5039. border-radius: 6px;
  5040. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  5041. overflow: hidden;
  5042. background-color: #FFF;
  5043. }
  5044. .collapse{
  5045. width: 96%;
  5046. margin: 0 auto;
  5047. border-radius: 6px;
  5048. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  5049. overflow: hidden;
  5050. margin-bottom: 15px;
  5051. }
  5052. /deep/.van-radio--horizontal{
  5053. margin-left: 20px;
  5054. margin-right: 0;
  5055. }
  5056. .file-box{
  5057. padding: 2% 5% 0;
  5058. }
  5059. .submitButton{
  5060. width: 80%;
  5061. margin: 0 auto;
  5062. border-radius: 14px;
  5063. }
  5064. .timeTit{
  5065. text-align: center;
  5066. font-size: 16px;
  5067. line-height: 27px;
  5068. }
  5069. .action-box{
  5070. padding: 15px 0!important;
  5071. margin-top: 0.4rem;
  5072. }
  5073. .check-box{
  5074. margin-top: 0.4rem;
  5075. }
  5076. .addFamily{
  5077. position: absolute;
  5078. top: -2px;
  5079. right: 0;
  5080. border-radius: 50%;
  5081. display: inline-block;
  5082. width: 0.7rem;
  5083. height: 0.7rem;
  5084. }
  5085. .deleteFamily{
  5086. position: absolute;
  5087. top: -0.35rem;
  5088. right: 6%;
  5089. z-index: 9;
  5090. border-radius: 50%;
  5091. display: inline-block;
  5092. width: 0.7rem;
  5093. height: 0.7rem;
  5094. }
  5095. .familyList{
  5096. margin-top: 0.4rem;
  5097. position: relative;
  5098. }
  5099. .noModify{
  5100. .topTit{
  5101. background-color:#ABABAB ;
  5102. box-shadow: 0px 3px 6px 0px rgba(171,171,171,0.40);
  5103. }
  5104. .van-cell__title{
  5105. color: #B4B0B0;
  5106. }
  5107. }
  5108. .flow_main_box{
  5109. width: 96%;
  5110. margin: 0 auto;
  5111. border-radius: 6px;
  5112. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  5113. overflow: hidden;
  5114. background-color: #FFF;
  5115. margin-top: 2%;
  5116. padding: 5% 1%;
  5117. .van-col{
  5118. text-align: center;
  5119. }
  5120. .tit{
  5121. background: #1d6fe9;
  5122. border-radius: 12px;
  5123. font-size: 0.4rem;
  5124. font-family: Source Han Sans CN, Source Han Sans CN-Regular;
  5125. font-weight: 400;
  5126. color: #ffffff;
  5127. line-height: 0.65rem;
  5128. letter-spacing: 0px;
  5129. width: 70%;
  5130. margin: 0 auto;
  5131. }
  5132. .van-step--vertical{
  5133. padding-right: 0;
  5134. text-align: left;
  5135. }
  5136. .van-step--vertical:not(:last-child)::after{
  5137. border: none;
  5138. }
  5139. .van-step--finish{
  5140. color: #1d6fe9;
  5141. }
  5142. }
  5143. .van-goods-action {
  5144. justify-content: center;
  5145. }
  5146. .van-goods-action-button--first {
  5147. border-radius: 0.053333rem;
  5148. }
  5149. .van-goods-action-button--last {
  5150. border-radius: 0.053333rem;
  5151. }
  5152. .van-goods-action-button {
  5153. margin-left: 0.1rem;
  5154. }
  5155. .fuTitle {
  5156. border-top: 1px solid #e9e9e9;
  5157. text-align: center;
  5158. padding: 10px 0px 0px 0px;
  5159. font-size: 18px;
  5160. color: #999;
  5161. }
  5162. .zkshStyle{
  5163. margin: 0 50%;
  5164. }
  5165. #mapDiv {
  5166. width: 100%;
  5167. height: 400px
  5168. }
  5169. input,
  5170. b,
  5171. p {
  5172. margin-left: 5px;
  5173. font-size: 14px
  5174. }
  5175. </style>