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

332 wiersze
11 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-nav-bar
  4. left-arrow
  5. fixed
  6. placeholder
  7. @click-left="$router.back(-1)"
  8. >
  9. <template #title>
  10. <p style="font-weight: bold;">使用权抵押</p>
  11. </template>
  12. </van-nav-bar>
  13. <van-form ref="_Form">
  14. <div class="main_box">
  15. <van-field
  16. readonly
  17. clickable
  18. name="picker"
  19. v-model="circulation.zjddm"
  20. label="宅基地代码"
  21. placeholder="请选择"
  22. @click="showzjddm = true"
  23. input-align="right"
  24. right-icon="arrow-down" :rules="[{ required: true }]" required
  25. />
  26. <van-popup v-model="showzjddm" position="bottom">
  27. <van-picker
  28. show-toolbar
  29. :columns="zjdDictionaries"
  30. @confirm="onConfirmZjddm"
  31. @cancel="showzjddm = false"
  32. />
  33. </van-popup>
  34. <van-field v-model="circulation.bdcdyh" label="不动产单元号" placeholder="请输入不动产单元号" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  35. <van-field v-model="circulation.bdcqzh" label="不动产权证号" placeholder="请输入不动产权证号" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  36. <van-field v-model="circulation.bdcdydjywh" label="不动产抵押登记业务号" placeholder="请输入不动产抵押登记业务号" input-align="right" label-width="auto"/>
  37. <van-field v-model="circulation.zjjzwzl" label="在建建筑物坐落" placeholder="请输入在建建筑物坐落" input-align="right" label-width="auto"/>
  38. <van-field v-model="circulation.zjjzwdyfw" label="在建建筑物抵押范围" placeholder="请输入在建建筑物抵押范围" input-align="right" label-width="auto"/>
  39. <van-field
  40. readonly
  41. clickable
  42. name="picker"
  43. v-model="qszt"
  44. label="权属状态"
  45. placeholder="请选择权属状态"
  46. @click="showqszt = true"
  47. input-align="right"
  48. right-icon="arrow-down" :rules="[{ required: true }]" required
  49. />
  50. <van-popup v-model="showqszt" position="bottom">
  51. <van-picker
  52. show-toolbar
  53. :columns="qsztDictionaries"
  54. @confirm="onConfirmQszt"
  55. @cancel="showqszt = false"
  56. />
  57. </van-popup>
  58. </div>
  59. <div class="main_box">
  60. <van-field
  61. readonly
  62. clickable
  63. name="picker"
  64. v-model="dybdclx"
  65. label="抵押不动产类型"
  66. placeholder="请选择类型"
  67. @click="showdybdclx = true"
  68. input-align="right"
  69. right-icon="arrow-down"
  70. label-width="auto" :rules="[{ required: true }]" required
  71. />
  72. <van-popup v-model="showdybdclx" position="bottom">
  73. <van-picker
  74. show-toolbar
  75. :columns="dybdclxDictionaries"
  76. @confirm="onConfirmDybdclx"
  77. @cancel="showdybdclx = false"
  78. />
  79. </van-popup>
  80. <van-field v-model="circulation.dyr" label="抵押人" placeholder="请输入抵押人" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  81. <van-field
  82. readonly
  83. clickable
  84. name="picker"
  85. v-model="dyfs"
  86. label="抵押方式"
  87. placeholder="请选择抵押方式"
  88. @click="showdyfs = true"
  89. input-align="right"
  90. right-icon="arrow-down"
  91. label-width="auto" :rules="[{ required: true }]" required
  92. />
  93. <van-popup v-model="showdyfs" position="bottom">
  94. <van-picker
  95. show-toolbar
  96. :columns="dyfsDictionaries"
  97. @confirm="onConfirmDyfs"
  98. @cancel="showdyfs = false"
  99. />
  100. </van-popup>
  101. </div>
  102. <div class="main_box">
  103. <van-field
  104. readonly
  105. clickable
  106. name="picker"
  107. v-model="djlx"
  108. label="登记类型"
  109. placeholder="请选择登记类型"
  110. @click="showdjlx = true"
  111. label-width="auto"
  112. input-align="right"
  113. right-icon="arrow-down" :rules="[{ required: true }]" required
  114. />
  115. <van-popup v-model="showdjlx" position="bottom">
  116. <van-picker
  117. show-toolbar
  118. :columns="djlxDictionaries"
  119. @confirm="onConfirmDjlx"
  120. @cancel="showdjlx = false"
  121. />
  122. </van-popup>
  123. <van-field v-model="circulation.djyy" label="登记原因" placeholder="请输入登记原因" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  124. <van-field v-model="circulation.djjg" label="登记机构" placeholder="请输入登记机构" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  125. <van-field v-model="circulation.dbr" label="登薄人" placeholder="请输入登薄人" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  126. <van-field
  127. readonly
  128. clickable
  129. name="picker"
  130. v-model="circulation.djsj"
  131. label="登记时间"
  132. placeholder="选择登记时间"
  133. @click="showdjsj = true"
  134. input-align="right"
  135. right-icon="arrow-down" :rules="[{ required: true }]" required
  136. />
  137. <van-popup v-model="showdjsj" position="bottom">
  138. <van-datetime-picker
  139. v-model="currentDate"
  140. type="date"
  141. title="选择年月日"
  142. @confirm="onConfirmDjsj"
  143. />
  144. </van-popup>
  145. </div>
  146. <div class="main_box">
  147. <van-field label="附记" v-model="circulation.fj" placeholder="请输入内容" input-align="right" label-width="auto"/>
  148. <van-field label="备注" v-model="circulation.bz" placeholder="请输入内容" input-align="right" label-width="auto"/>
  149. </div>
  150. </van-form>
  151. <div style="padding: 16px 0;">
  152. <van-row>
  153. <van-col span="12" align="center">
  154. <van-button type="info" native-type="submit" class="submitButton" @click="goEdit">保存</van-button>
  155. </van-col>
  156. <van-col span="12" align="center">
  157. <van-button type="info" native-type="submit" class="submitButton" @click="goSubmit">提交</van-button>
  158. </van-col>
  159. </van-row>
  160. <div class="clear"></div>
  161. </div>
  162. </div>
  163. </template>
  164. <script>
  165. import { dyApply , getDy , dyEdit } from "@/api/onlineHome/homestead/mortgage";
  166. import { zjdzd, getByZjddm } from "@/api/onlineHome/homestead/circulation";
  167. import {Notify} from "vant";
  168. export default {
  169. name: "mortgageModify",
  170. data() {
  171. return {
  172. value: '',
  173. showdjsj: false,
  174. showdybdclx: false,
  175. showdyfs: false,
  176. showdjlx: false,
  177. showqszt: false,
  178. showzjddm: false,
  179. dybdclx: '',
  180. dyfs: '',
  181. djlx: '',
  182. qszt: '',
  183. zjddm: '',
  184. currentDate: new Date(),
  185. circulation:{},
  186. dybdclxDictionaries:[],//抵押不动产类型
  187. dyfsDictionaries:[],//抵押方式
  188. djlxDictionaries:[],//登记类型
  189. qsztDictionaries:[],//权属状态
  190. zjdDictionaries: [],//宅基地列表
  191. };
  192. },
  193. created() {
  194. this.getDictionaries();
  195. },
  196. methods: {
  197. getDictionaries(){
  198. getDy(this.$route.query.id).then(response => {
  199. //抵押不动产类型
  200. this.houseGetDicts("dybdclx").then((res) => {
  201. for(var i = 0 ; i < res.data.length ; i++){
  202. this.dybdclxDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  203. }
  204. this.dybdclx = this.selectDictLabel(res.data, response.data.dybdclx);
  205. });
  206. //抵押方式
  207. this.houseGetDicts("dyfs").then((res) => {
  208. for(var i = 0 ; i < res.data.length ; i++){
  209. this.dyfsDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  210. }
  211. this.dyfs = this.selectDictLabel(res.data, response.data.dyfs);
  212. });
  213. //登记类型
  214. this.houseGetDicts("djlx").then((res) => {
  215. for(var i = 0 ; i < res.data.length ; i++){
  216. this.djlxDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  217. }
  218. this.djlx = this.selectDictLabel(res.data, response.data.djlx);
  219. });
  220. //权属状态
  221. this.houseGetDicts("qszt").then((res) => {
  222. for(var i = 0 ; i < res.data.length ; i++){
  223. this.qsztDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  224. }
  225. this.qszt = this.selectDictLabel(res.data, response.data.qszt);
  226. });
  227. //宅基地代码
  228. zjdzd().then(zjdRes => {
  229. for( let i = 0 ; i < zjdRes.rows.length ; i++){
  230. this.zjdDictionaries.push(zjdRes.rows[i].zjddm);
  231. }
  232. });
  233. this.circulation = response.data;
  234. });
  235. },
  236. onConfirmZjddm(data){
  237. console.log(data)
  238. this.circulation.zjddm = data;
  239. this.showzjddm = false;
  240. getByZjddm({zjddm: data,}).then(qlrRes => {
  241. let data = qlrRes.data;
  242. console.log(data)
  243. this.$set(this.circulation, 'bdcdyh', data.bdcdyh);
  244. this.$set(this.circulation, 'bdcqzh', data.bdcqzh);
  245. this.$forceUpdate();
  246. });
  247. },
  248. onConfirmQszt(data){
  249. this.qszt = data.text;
  250. this.circulation.qszt = data.value;
  251. this.showqszt = false;
  252. },
  253. onConfirmDybdclx(data){
  254. this.dybdclx = data.text;
  255. this.circulation.dybdclx = data.value;
  256. this.showdybdclx = false;
  257. },
  258. onConfirmDyfs(data){
  259. this.dyfs = data.text;
  260. this.circulation.dyfs = data.value;
  261. this.showdyfs = false;
  262. },
  263. onConfirmDjlx(data){
  264. this.djlx = data.text;
  265. this.circulation.djlx = data.value;
  266. this.showdjlx = false;
  267. },
  268. onConfirmDjsj(data){
  269. this.circulation.djsj = this.getNowFormatDate(data).substr(0,10);
  270. this.showdjsj = false;
  271. },
  272. goEdit(){
  273. this.$refs._Form.validate().then(() => {
  274. dyEdit(this.circulation).then(response => {
  275. if(response.code = 200){
  276. this.$toast.success('保存成功');
  277. this.$router.back(-1);
  278. }
  279. })
  280. }).catch((e) => {
  281. Notify({ type: 'danger', message: '请填写完整的表单项' });
  282. });
  283. },
  284. goSubmit(){
  285. this.$refs._Form.validate().then(() => {
  286. dyApply(this.$route.query.id).then(response => {
  287. if(response.code = 200){
  288. this.$toast.success('保存成功');
  289. setTimeout(function(){
  290. this.$router.back(-1);
  291. },1000)
  292. }
  293. })
  294. }).catch((e) => {
  295. Notify({ type: 'danger', message: '请填写完整的表单项' });
  296. });
  297. }
  298. },
  299. }
  300. </script>
  301. <style scoped lang="scss">
  302. .app-container {
  303. }
  304. .main_title{
  305. font-size: 0.4rem;
  306. color: #1D6FE9;
  307. margin: 0.2rem 6%;
  308. position: relative;
  309. }
  310. .main_box{
  311. width: 96%;
  312. margin: 0 auto;
  313. border-radius: 6px;
  314. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  315. overflow: hidden;
  316. background-color: #FFF;
  317. margin-top:2%;
  318. }
  319. .submitButton{
  320. width: 80%;
  321. margin: 0 auto;
  322. background-color: #1D6FE9;
  323. }
  324. </style>